[Ffmpeg-devel] [PATCH] DVB AC-3 support in mpegts.c

Wolfram Gloger wmglo
Wed Mar 15 11:30:42 CET 2006


> Nico Sabbi wrote:
> 
> > Andy Brown wrote:
> >
> >> This patch simply adds demuxing support for AC-3 streams in DVB TS 
> >> files.  In
> >> these streams AC-3 is given type 0x06 (private stream) and includes a
> >> descriptor with either tag 0x6A or 0x7A.  The code already handles 
> >> ATSC AC-3
...
> > I knew of 0x6a, but where is 0x71 defined? I don't remember I ever 
> > read it in
> > recent specifications published by ETSI
> >
> sorry, I meant 0x7a, not 0x71

Googling quickly gave:

http://webapp.etsi.org/action/OP/OP20060428/en_300468v010701o.pdf

and that lists 0x7a as "enhanced AC-3 descriptor".

Could we as a first step please add the currently hardcoded values to
mpegts.h, such as in the following patch?

Regards,
Wolfram.

--- ffmpeg/libavformat/mpegts.h	Mon Jan 16 10:00:09 2006
+++ ffmpeg-wg/libavformat/mpegts.h	Wed Mar 15 11:21:25 2006
@@ -33,7 +33,11 @@
 #define SDT_TID   0x42
 
 /* descriptor ids */
+#define DVB_LANGUAGE_DESCID         0x0a
+#define DVB_TELETEXT_DESCID         0x56
 #define DVB_SUBT_DESCID             0x59
+#define DVB_AC3_DESCID              0x6a
+#define DVB_ENHANCED_AC3_DESCID     0x7a
 
 #define STREAM_TYPE_VIDEO_MPEG1     0x01
 #define STREAM_TYPE_VIDEO_MPEG2     0x02
@@ -49,6 +53,7 @@
 #define STREAM_TYPE_AUDIO_DTS       0x8a
 
 #define STREAM_TYPE_SUBTITLE_DVB    0x100
+#define STREAM_TYPE_TELETEXT        0x101
 
 unsigned int mpegts_crc32(const uint8_t *data, int len);
 extern AVOutputFormat mpegts_mux;





More information about the ffmpeg-devel mailing list