[FFmpeg-trac] #1598(undetermined:new): MUX fail. X264 + AAC to TS.

FFmpeg trac at avcodec.org
Fri Aug 3 15:51:24 CEST 2012


#1598: MUX fail. X264 + AAC to TS.
-------------------------------------+-------------------------------------
             Reporter:  Mista_D      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  mpegts       |               Resolution:
  av_interleaved_write_frame         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Mista_D):

 ./ffmpeg -i movie.mpg -t 10 -s 320x240 -acodec libfaac -vcodec libx264
 10.ts

 ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Aug  3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat
 4.1.2-52)
   configuration: --enable-static --enable-postproc --enable-gpl --enable-
 avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-
 nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect
 --disable-devices --disable-avdevice --enable-libfaac --extra-
 ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-
 libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread
 -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc
 --enable-libvpx
   libavutil      51. 66.100 / 51. 66.100
   libavcodec     54. 48.100 / 54. 48.100
   libavformat    54. 22.100 / 54. 22.100
   libavfilter     3.  5.101 /  3.  5.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, mpegts, from 'movie.mpg':
   Duration: 00:06:27.52, start: 0.646122, bitrate: 15023 kb/s
   Program 1
     Stream #0:0[0x1e1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 13966 kb/s, 29.97 fps, 29.97 tbr,
 90k tbn, 59.94 tbc
     Stream #0:1[0x1e2](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
 stereo, s16, 192 kb/s
 [libx264 @ 0x106c2d80] using SAR=4/3
 [libx264 @ 0x106c2d80] using cpu capabilities: MMX2 SSE2Fast SSSE3
 FastShuffle SSE4.2
 [libx264 @ 0x106c2d80] profile High, level 1.3
 [mpegts @ 0x106cd600] muxrate VBR, pcr every 2 pkts, sdt every 200,
 pat/pmt every 40 pkts
 Output #0, mpegts, to '10.ts':
   Metadata:
     encoder         : Lavf54.22.100
     Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=-1--
 1, 90k tbn, 29.97 tbc
     Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video -> libx264)
   Stream #0:1 -> #0:1 (ac3 -> libfaac)
 Press [q] to stop, [?] for help
 frame=  300 fps=125 q=32766.0 Lsize=     535kB time=00:00:09.94 bitrate=
 440.8kbits/s dup=137 drop=0
 video:295kB audio:155kB subtitle:0 global headers:0kB muxing overhead
 18.794345%
 [libx264 @ 0x106c2d80] frame I:4     Avg QP:19.19  size:  3744
 [libx264 @ 0x106c2d80] frame P:162   Avg QP:27.61  size:  1627
 [libx264 @ 0x106c2d80] frame B:134   Avg QP:29.67  size:   174
 [libx264 @ 0x106c2d80] consecutive B-frames: 31.7% 25.3%  3.0% 40.0%
 [libx264 @ 0x106c2d80] mb I  I16..4: 47.2% 32.1% 20.8%
 [libx264 @ 0x106c2d80] mb P  I16..4:  3.7%  9.3%  4.2%  P16..4: 21.1%
 11.0%  5.0%  0.0%  0.0%    skip:45.6%
 [libx264 @ 0x106c2d80] mb B  I16..4:  0.1%  0.1%  0.1%  B16..8: 10.1%
 2.2%  0.7%  direct: 0.5%  skip:86.1%  L0:39.7% L1:50.4% BI: 9.9%
 [libx264 @ 0x106c2d80] 8x8 transform intra:51.0% inter:63.4%
 [libx264 @ 0x106c2d80] coded y,uvDC,uvAC intra: 57.2% 71.7% 45.0% inter:
 9.4% 9.0% 1.0%
 [libx264 @ 0x106c2d80] i16 v,h,dc,p: 34% 25%  5% 36%
 [libx264 @ 0x106c2d80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 17% 14%  5% 10%
 12%  8%  8%  7%
 [libx264 @ 0x106c2d80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 15% 15%  5%  8%
 10%  5%  7%  4%
 [libx264 @ 0x106c2d80] i8c dc,h,v,p: 44% 19% 23% 14%
 [libx264 @ 0x106c2d80] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x106c2d80] ref P L0: 67.1% 18.9%  8.9%  5.1%
 [libx264 @ 0x106c2d80] ref B L0: 91.2%  8.6%  0.2%
 [libx264 @ 0x106c2d80] ref B L1: 99.2%  0.8%
 [libx264 @ 0x106c2d80] kb/s:241.33




 ./ffmpeg -i 10.ts -acodec copy -vn 10.aac
 ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Aug  3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat
 4.1.2-52)
   configuration: --enable-static --enable-postproc --enable-gpl --enable-
 avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-
 nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect
 --disable-devices --disable-avdevice --enable-libfaac --extra-
 ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-
 libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread
 -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc
 --enable-libvpx
   libavutil      51. 66.100 / 51. 66.100
   libavcodec     54. 48.100 / 54. 48.100
   libavformat    54. 22.100 / 54. 22.100
   libavfilter     3.  5.101 /  3.  5.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 [mpegts @ 0x433a7a0] max_analyze_duration 5000000 reached at 5005000
 Input #0, mpegts, from '10.ts':
   Duration: 00:00:09.99, start: 1.378667, bitrate: 438 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 320x240 [SAR 4:3 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94
 tbc
     Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000
 Hz, stereo, s16, 247 kb/s
 Output #0, adts, to '10.aac':
   Metadata:
     encoder         : Lavf54.22.100
     Stream #0:0(eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, 247 kb/s
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     155kB time=00:00:10.02 bitrate= 127.0kbits/s
 video:0kB audio:155kB subtitle:0 global headers:0kB muxing overhead
 0.000000%



 ./ffmpeg -i 10.ts -vcodec copy -an 10.h264
 ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Aug  3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat
 4.1.2-52)
   configuration: --enable-static --enable-postproc --enable-gpl --enable-
 avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-
 nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect
 --disable-devices --disable-avdevice --enable-libfaac --extra-
 ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-
 libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread
 -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc
 --enable-libvpx
   libavutil      51. 66.100 / 51. 66.100
   libavcodec     54. 48.100 / 54. 48.100
   libavformat    54. 22.100 / 54. 22.100
   libavfilter     3.  5.101 /  3.  5.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 [mpegts @ 0x1bc5d7a0] max_analyze_duration 5000000 reached at 5005000
 Input #0, mpegts, from '10.ts':
   Duration: 00:00:09.99, start: 1.378667, bitrate: 438 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 320x240 [SAR 4:3 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94
 tbc
     Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000
 Hz, stereo, s16, 247 kb/s
 Output #0, h264, to '10.h264':
   Metadata:
     encoder         : Lavf54.22.100
     Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 320x240
 [SAR 4:3 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 frame=  300 fps=0.0 q=-1.0 Lsize=     297kB time=00:00:09.96 bitrate=
 243.9kbits/s
 video:297kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.000000%



 ./ffmpeg -i 10.aac -i 10.h264 -acodec copy -vcodec copy new_mux.ts
 ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Aug  3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat
 4.1.2-52)
   configuration: --enable-static --enable-postproc --enable-gpl --enable-
 avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-
 nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect
 --disable-devices --disable-avdevice --enable-libfaac --extra-
 ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-
 libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread
 -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc
 --enable-libvpx
   libavutil      51. 66.100 / 51. 66.100
   libavcodec     54. 48.100 / 54. 48.100
   libavformat    54. 22.100 / 54. 22.100
   libavfilter     3.  5.101 /  3.  5.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 [aac @ 0x165fa7a0] max_analyze_duration 5000000 reached at 5013333
 [aac @ 0x165fa7a0] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, aac, from '10.aac':
   Duration: 00:00:06.30, bitrate: 202 kb/s
     Stream #0:0: Audio: aac, 48000 Hz, stereo, s16, 202 kb/s
 [h264 @ 0x16616ae0] max_analyze_duration 5000000 reached at 5011233
 [h264 @ 0x16616ae0] Estimating duration from bitrate, this may be
 inaccurate
 Input #1, h264, from '10.h264':
   Duration: N/A, bitrate: N/A
     Stream #1:0: Video: h264 (High), yuv420p, 320x240 [SAR 4:3 DAR 16:9],
 29.50 fps, 29.97 tbr, 1200k tbn, 59.94 tbc
 [mpegts @ 0x16601500] muxrate VBR, pcr every 2 pkts, sdt every 200,
 pat/pmt every 40 pkts
 Output #0, mpegts, to 'new_mux.ts':
   Metadata:
     encoder         : Lavf54.22.100
     Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=2-31,
 29.50 fps, 90k tbn, 29.97 tbc
     Stream #0:1: Audio: aac, 48000 Hz, stereo, 202 kb/s
 Stream mapping:
   Stream #1:0 -> #0:0 (copy)
   Stream #0:0 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 0x16601500] first pts value must set
 av_interleaved_write_frame(): Invalid data found when processing input

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1598#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list