[FFmpeg-devel] Enable stream copy of data

Anshul anshul.ffmpeg at gmail.com
Sun Feb 8 18:12:43 CET 2015


On 01/16/2015 07:21 AM, Michael Niedermayer wrote:
> On Wed, Jan 14, 2015 at 03:11:24PM +0530, Anshul wrote:
>> Hi
>>
>> I have enabled demuxing and muxing path for datat stream
>>
>> Please find attachment
>>
>> Thanks
>> Anshul
>>   ffmpeg.c                |    2 ++
>>   ffmpeg_opt.c            |   10 ++++++++++
>>   libavcodec/avcodec.h    |    1 +
>>   libavcodec/codec_desc.c |    6 ++++++
>>   libavformat/Makefile    |    1 +
>>   libavformat/avformat.h  |   17 +++++++++++++++++
>>   libavformat/format.c    |    2 ++
>>   libavformat/mpegts.c    |   43 +++++++++++++++++++++++++++++++++++++------
>>   libavformat/utils.c     |    1 +
>>   9 files changed, 77 insertions(+), 6 deletions(-)
>> 40306177e8bb3e95b98060f6202b38bb8acba26a  0001-Enable-data-stream-copy.patch
>>  From 99bcdef2bcd9aa5bd18a0a005e0826e22ad2cf63 Mon Sep 17 00:00:00 2001
>> From: Anshul Maheshwari <anshul.ffmpeg at gmail.com>
>> Date: Wed, 14 Jan 2015 15:06:50 +0530
>> Subject: [PATCH] Enable data stream copy
>>
>> Signed-off-by: Anshul Maheshwari <anshul.ffmpeg at gmail.com>
>> ---
>>   ffmpeg.c                |  2 ++
>>   ffmpeg_opt.c            | 10 ++++++++++
>>   libavcodec/avcodec.h    |  1 +
>>   libavcodec/codec_desc.c |  6 ++++++
>>   libavformat/Makefile    |  1 +
>>   libavformat/avformat.h  | 17 +++++++++++++++++
>>   libavformat/format.c    |  2 ++
>>   libavformat/mpegts.c    | 43 +++++++++++++++++++++++++++++++++++++------
>>   libavformat/utils.c     |  1 +
>>   9 files changed, 77 insertions(+), 6 deletions(-)
> applied the generic data stream handling improvments to libavformat
> and ffmpeg
>
> please update APIChanges
>
patch attached.
> also
> [...]
>> @@ -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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-updated-Data-stream-changes-in-APIChange.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150208/6d78ab8f/attachment.bin>


More information about the ffmpeg-devel mailing list