[FFmpeg-trac] #1338(undetermined:new): FFMPEG creating broken MP4/Audio files with libx264
FFmpeg
trac at avcodec.org
Sun Aug 5 09:19:54 CEST 2012
#1338: FFMPEG creating broken MP4/Audio files with libx264
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Owner:
Type: defect | Status: new
Priority: important | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by ramitbhalla):
This command works fine, produces good audio
{{{
ffmpeg -i CSI.ts -crf 2 out.mp4
ffmpeg version N-40824-g31dfe20 Copyright (c) 2000-2012 the FFmpeg
developers
built on May 19 2012 00:45:59 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-
libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
libavutil 51. 53.100 / 51. 53.100
libavcodec 54. 21.101 / 54. 21.101
libavformat 54. 5.100 / 54. 5.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 74.101 / 2. 74.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 12.100 / 0. 12.100
libpostproc 52. 0.100 / 52. 0.100
[mp3 @ 02ec0e60] Header missing
[mpeg2video @ 01d3c840] mpeg_decode_postinit() failure
Last message repeated 7 times
[mpegts @ 01d3bb80] max_analyze_duration 5000000 reached at 5016000
Input #0, mpegts, from 'CSI.ts':
Duration: 00:00:46.61, start: 14.737000, bitrate: 8185 kb/s
Program 1
Stream #0:0[0x1100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 kb/s
, 31.22 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x1101]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16, 384 kb/s
[buffer @ 02fa0b60] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:8/9
sws_param:flags=2
[buffersink @ 02fa0e40] No opaque field provided
[abuffer @ 02ea66c0] format:s16 layout:stereo rate:48000
[libx264 @ 0311f5c0] using SAR=8/9
[libx264 @ 0311f5c0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0311f5c0] profile High, level 3.0
[libx264 @ 0311f5c0] 264 - core 120 r2164 da19765 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.or
g/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113
me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads
=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0
bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 we
ightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=2.
0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf54.5.100
Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x480 [SAR
8:9 DAR 4:3], q=-1--1, 30k tbn, 29.97 tbc
Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, stereo, s16,
128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (mp2 -> libvo_aacenc)
Press [q] to stop, [?] for help
[mp2 @ 02ec0e60] Header missing
Error while decoding stream #0:1
ac-tex damaged at 32 13.0 size= 93129kB time=00:00:44.67
bitrate=17075.9kbits/s dup=11 drop=0
[mpeg2video @ 01d3c840] Warning MVs not available
[mpeg2video @ 01d3c840] concealing 765 DC, 765 AC, 765 MV errors
[mp2 @ 02ec0e60] incomplete frame
Error while decoding stream #0:1
frame= 1398 fps= 19 q=-1.0 Lsize= 98213kB time=00:00:46.56
bitrate=17279.9kbits/s dup=12 drop=0
video:97436kB audio:727kB global headers:0kB muxing overhead 0.051065%
[libx264 @ 0311f5c0] frame I:26 Avg QP: 1.86 size:127652
[libx264 @ 0311f5c0] frame P:531 Avg QP: 3.23 size: 96782
[libx264 @ 0311f5c0] frame B:841 Avg QP: 5.09 size: 53584
[libx264 @ 0311f5c0] consecutive B-frames: 14.7% 11.4% 11.8% 62.1%
[libx264 @ 0311f5c0] mb I I16..4: 31.3% 34.3% 34.4%
[libx264 @ 0311f5c0] mb P I16..4: 21.2% 17.5% 15.1% P16..4: 23.1% 12.1%
9.5% 0.0% 0.0% skip: 1.5%
[libx264 @ 0311f5c0] mb B I16..4: 2.3% 3.2% 2.2% B16..8: 34.0% 11.5%
7.7% direct:36.2% skip: 2.9% L0:41.9% L1:3
7.0% BI:21.1%
[libx264 @ 0311f5c0] 8x8 transform intra:34.3% inter:60.0%
[libx264 @ 0311f5c0] coded y,uvDC,uvAC intra: 78.1% 98.2% 97.1% inter:
58.1% 86.7% 77.4%
[libx264 @ 0311f5c0] i16 v,h,dc,p: 51% 17% 19% 13%
[libx264 @ 0311f5c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 31% 2% 3%
3% 4% 4% 5%
[libx264 @ 0311f5c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 36% 15% 4% 4%
4% 4% 4% 5%
[libx264 @ 0311f5c0] i8c dc,h,v,p: 55% 19% 15% 11%
[libx264 @ 0311f5c0] Weighted P-Frames: Y:10.2% UV:7.5%
[libx264 @ 0311f5c0] ref P L0: 53.6% 11.4% 22.0% 11.8% 1.2%
[libx264 @ 0311f5c0] ref B L0: 81.7% 15.1% 3.2%
[libx264 @ 0311f5c0] ref B L1: 91.1% 8.9%
[libx264 @ 0311f5c0] kb/s:17111.43
}}}
Replying to [comment:11 cehoyos]:
> Does the following produce a working file or is it sufficient to produce
the broken file (or is a parameter missing for the encode to succeed)?
> $ ffmpeg -i CSI.ts -crf 2 out.mp4
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1338#comment:12>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list