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.ffm...@gmail.com>
Date: Wed, 14 Jan 2015 15:06:50 +0530
Subject: [PATCH] Enable data stream copy

Signed-off-by: Anshul Maheshwari <anshul.ffm...@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
>From d9bcc7761fe4f7d98be1b518bed95c177e7504cf Mon Sep 17 00:00:00 2001
From: Anshul Maheshwari <er.anshul.maheshw...@gmail.com>
Date: Sun, 8 Feb 2015 22:37:07 +0530
Subject: [PATCH] updated Data stream changes in APIChange

Signed-off-by: Anshul Maheshwari <er.anshul.maheshw...@gmail.com>
---
 doc/APIchanges | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/doc/APIchanges b/doc/APIchanges
index 65fd599..e46124a 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -19,6 +19,9 @@ API changes, most recent first:
   Add AV_PKT_DATA_AUDIO_SERVICE_TYPE and AV_FRAME_DATA_AUDIO_SERVICE_TYPE for
   storing the audio service type as side data.
 
+2015-01-16 - a47c933 - lavf 56.19.100 - avformat.h
+  Add data_codec and data_codec_id for storing codec of data stream
+
 2015-01-11 - 007c33d - lavd 56.4.100 - avdevice.h
   Add avdevice_list_input_sources().
   Add avdevice_list_output_sinks().
-- 
2.1.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to