[FFmpeg-devel] Patch for Trac ticket #2579
matt.leotta at kitware.com
Tue Jun 4 23:12:25 CEST 2013
I apologize for the delayed response. I was just notified that there was a
response to my e-mail, but I was not subscribed to ffmpeg-devel and did not
receive it. I am now subscribed.
From: Michael Niedermayer <michaelni <at> gmx.at>
Subject: Re: Patch for Trac ticket #2579
Date: 2013-05-18 00:14:14 GMT (2 weeks, 3 days, 20 hours and 29 minutes ago)
> why does turning unknown streams into data make a difference ?
Well, maybe it technically doesn't make a difference. I'm not an expert
with the ffmpeg API and I'm possibly not understanding correctly. I
assumed that unknown streams were ignored or otherwise treated differently
than data streams. If not, what is the difference between an unknown
stream and a data stream?
My current approach is to look for the first stream such that
(enc->codec_type == AVMEDIA_TYPE_DATA) and use that as my data stream.
Maybe I should just use (enc->codec_type == AVMEDIA_TYPE_DATA ||
enc->codec_type == AVMEDIA_TYPE_UNKNOWN)?
It would seem to be a better solution to make the unknown stream type into
a known data stream type, but I'm not sure what that requires.
More information about the ffmpeg-devel