[FFmpeg-devel] Enable stream copy of data

Anshul anshul.ffmpeg at gmail.com
Sun Feb 15 11:15:48 CET 2015


On 02/08/2015 11:10 PM, Michael Niedermayer wrote:
> On Sun, Feb 08, 2015 at 10:42:43PM +0530, Anshul wrote:
>> On 01/16/2015 07:21 AM, Michael Niedermayer wrote:
>> @@ -1927,6 +1932,11 @@ static int open_output_file(OptionsContext *o, const char *filename)
>>                   }
>>           }
>>           /* do something with data? */
>> +        if (!o->data_disable && av_guess_codec(oc->oformat, NULL, filename, NULL, AVMEDIA_TYPE_DATA) != AV_CODEC_ID_NONE) {
>> +            for (i = 0; i < nb_input_streams; i++)
>> +                if (input_streams[i]->st->codec->codec_type == AVMEDIA_TYPE_DATA)
>> +                    new_data_stream(o, oc, i);
>> +        }
>>> this probably needs something "more" to work, like we wouldnt
>>> want to matchup a data stream with GPS data to a scte_35 stream
>>> iam not sure how to best do this though
>>> for stream copy the codec_id could be used though i guess
>>>
>> working on it.
>>
>> -Anshul
I have attached new patch, using codec_id for match.
-Anshul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Creating-new-data-stream-for-output-format-context.patch
Type: text/x-patch
Size: 1449 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150215/d426734f/attachment.bin>


More information about the ffmpeg-devel mailing list