[FFmpeg-devel] Enable stream copy of data

Michael Niedermayer michaelni at gmx.at
Sun Feb 15 12:53:24 CET 2015


On Sun, Feb 15, 2015 at 03:45:48PM +0530, Anshul wrote:
> 
> 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

>  ffmpeg_opt.c |   10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 7fae9010c853ed1cd00e62fe147bc150f9deb462  0001-Creating-new-data-stream-for-output-format-context.patch
> From b4480e70d6d18c2eebbbc65a0317b2b790a7ee49 Mon Sep 17 00:00:00 2001
> From: Anshul Maheshwari <er.anshul.maheshwari at gmail.com>
> Date: Sun, 15 Feb 2015 15:24:01 +0530
> Subject: [PATCH] Creating new data stream for output format context
> 
> Signed-off-by: Anshul Maheshwari <er.anshul.maheshwari at gmail.com>
> 
> if input codec Id match with expected data stream of output format context
> then only new stream with same codec id is created.
> ---
>  ffmpeg_opt.c | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- 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/20150215/0479bf20/attachment.asc>


More information about the ffmpeg-devel mailing list