[FFmpeg-user] Trouble with LPCM audio from D-VHS deck

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Feb 17 23:11:31 CET 2012

Mike Brown <brown <at> mrvideo.vidiot.com> writes:

> I have a D-VHS deck that will firewire the analog video to 
> MPEG-2 video conversion to my computer, via TSReader.  Within 
> the mux is a MPEG audio stream and a LPCM audio stream.
> The authors of the VideReDo program attempted to convert the 
> LPCM audio to a WAV file, but it was extremely distorted.

Probably s302m.

Following patch (inlined) allows to recognize audio (and 
I guess it produces the same distortion as the other decoder).

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 81649c7..cac4853 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -559,6 +559,7 @@ static const StreamType HDMV_types[] = {
 /* ATSC ? */
 static const StreamType MISC_types[] = {
     { 0x81, AVMEDIA_TYPE_AUDIO,   CODEC_ID_AC3 },
+    { 0x83, AVMEDIA_TYPE_AUDIO,   CODEC_ID_S302M },
     { 0 },

Please test and report back, Carl Eugen

More information about the ffmpeg-user mailing list