[FFmpeg-user] Invalid audio in resulting MPEG-TS

Gord von Campe voncampeg at netscape.net
Sun Mar 4 18:54:52 CET 2012


Hello,

When I try to mux a video (MPEG-2) and audio (WAV, pcm_s16le
([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s) file into
a MPEG-TS container, the resulting file has an invalid audio stream (the
FFmpeg command used is "ffmpeg -fflags +genpts -i Video.m2v -i Audio.wav
-c:v copy -c:a copy -f mpegts MuxedAV.ts" and completes without error).
After muxing, the audio stream in the new file is not recognized by
FFmpeg (see below) or MediaInfo, and the MPEG-TS file plays without
sound in MPlayer or Media Player Classic. Muxing the same input video
and audio files using tsMuxeR results in a valid file with intact audio.
How can I make this work with FFmpeg? I am using the following ffmpeg
version on Windows:

ffmpeg version N-38292-ga4c22e3 Copyright (c) 2000-2012 the FFmpeg
developers
   built on Feb 27 2012 14:50:39 with gcc 4.6.2
   configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib
--enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      51. 41.100 / 51. 41.100
   libavcodec     54.  4.100 / 54.  4.100
   libavformat    54.  1.100 / 54.  1.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 62.101 /  2. 62.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  7.100 /  0.  7.100
   libpostproc    52.  0.100 / 52.  0.100

Output of "ffmpeg -i MuxedAV.ts":
[...]
[mpegts @ 0217A7C0] probed stream 1 failed
[mpegts @ 0217A7C0] max_analyze_duration 5000000 reached at 5005000
[mpegts @ 0217A7C0] decoding for stream 1 failed
[mpegts @ 0217A7C0] Could not find codec parameters (Unknown: none
                     ([6][0][0][0] / 0x0006))
Input #0, mpegts, from 'MuxedAV.ts':
   Duration: 00:00:59.99, start: 1.400000, bitrate: 6400 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] /
                         0x0002), yuv420p, 720x480 [SAR 32:27 DAR 16:9],
                         7500 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94
                         tbc
     Stream #0:1[0x101]: Unknown: none ([6][0][0][0] / 0x0006)

Thank you in advance for your help!

Gord


More information about the ffmpeg-user mailing list