[FFmpeg-user] how to mux AAC into mpeg program stream?

Pavel Koshevoy pkoshevoy at gmail.com
Sat Jan 4 00:16:49 CET 2014


Hi,

I am not sure whether ffmpeg is able to (re)mux AAC into mpeg-ps 
format.  Here is what I tried:

$ ffmpeg -i TimeCode-MPG-MC264-AAC-ES.264 -i 
TimeCode-MPG-MC264-AAC-ES.aac -c:a copy -c:v copy -f vob -y remux.mpg
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
   built on Aug  9 2013 15:47:47 with Microsoft (R) 32-bit C/C++ 
Optimizing Compiler Version 16.00.40219.01 for 80x86
   configuration: --toolchain=msvc --disable-debug 
--enable-memalign-hack --disable-ffplay --disable-static --enable-shared 
--prefix=/Developer/x86/ffmpeg --enable-version3 
--enable-libopencore-amrnb --enable-zlib 
--extra-ldflags='-NODEFAULTLIB:libcmt.lib -DEFAULTLIB:msvcrt.lib'
   libavutil      52. 41.100 / 52. 41.100
   libavcodec     55. 24.100 / 55. 24.100
   libavformat    55. 13.102 / 55. 13.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 82.100 /  3. 82.100
   libswscale      2.  4.100 /  2.  4.100
   libswresample   0. 17.103 /  0. 17.103
Input #0, h264, from 'TimeCode-MPG-MC264-AAC-ES.264':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: h264 (Baseline), yuv420p, 720x480 [SAR 1:1 DAR 
3:2], 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc
[aac @ 00D1EA40] Estimating duration from bitrate, this may be inaccurate
Input #1, aac, from 'TimeCode-MPG-MC264-AAC-ES.aac':
   Duration: 00:00:15.51, bitrate: 124 kb/s
     Stream #1:0: Audio: aac, 48000 Hz, stereo, fltp, 124 kb/s
[vob @ 02B04A80] VBV buffer size not set, muxing may fail
Output #0, vob, to 'remux.mpg':
   Metadata:
     encoder         : Lavf55.13.102
     Stream #0:0: Video: h264, yuv420p, 720x480 [SAR 1:1 DAR 3:2], 
q=2-31, 23.98 fps, 90k tbn, 23.98 tbc
     Stream #0:1: Audio: aac, 48000 Hz, stereo, 124 kb/s
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  362 fps=0.0 q=-1.0 Lsize=    2134kB time=00:00:15.09 
bitrate=1158.1kbits/s
video:1869kB audio:236kB subtitle:0 global headers:0kB muxing overhead 
1.380917%


ffprobe does not recognize the audio track of the output file produced 
by ffmpeg:

$ ffprobe remux.mpg
ffprobe version 2.0 Copyright (c) 2007-2013 the FFmpeg developers
   built on Aug  9 2013 15:47:47 with Microsoft (R) 32-bit C/C++ 
Optimizing Compiler Version 16.00.40219.01 for 80x86
   configuration: --toolchain=msvc --disable-debug 
--enable-memalign-hack --disable-ffplay --disable-static --enable-shared 
--prefix=/Developer/x86/ffmpeg --enable-version3 
--enable-libopencore-amrnb --enable-zlib 
--extra-ldflags='-NODEFAULTLIB:libcmt.lib -DEFAULTLIB:msvcrt.lib'
   libavutil      52. 41.100 / 52. 41.100
   libavcodec     55. 24.100 / 55. 24.100
   libavformat    55. 13.102 / 55. 13.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 82.100 /  3. 82.100
   libswscale      2.  4.100 /  2.  4.100
   libswresample   0. 17.103 /  0. 17.103
[mp2 @ 00EBEA40] Header missing
     Last message repeated 12 times
[mpeg @ 00EBDA20] decoding for stream 1 failed
[mpeg @ 00EBDA20] Could not find codec parameters for stream 1 (Audio: 
mp3, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options
Input #0, mpeg, from 'remux.mpg':
   Duration: 00:00:15.05, start: 0.500000, bitrate: 1161 kb/s
     Stream #0:0[0x1e0]: Video: h264 (Baseline), yuv420p, 720x480 [SAR 
1:1 DAR 3:2], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
     Stream #0:1[0x1c0]: Audio: mp3, 0 channels, s16p


Should I open a bug for this?

Thank you,
     Pavel.



More information about the ffmpeg-user mailing list