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.maheshw...@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.maheshw...@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.
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel