[FFmpeg-devel] Enable stream copy of data

Michael Niedermayer michaelni at gmx.at
Fri Jan 16 02:51:33 CET 2015


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

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

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150116/397c4965/attachment.asc>


More information about the ffmpeg-devel mailing list