[FFmpeg-trac] #1338(undetermined:new): FFMPEG creating broken MP4/Audio files with LibXvid
FFmpeg
trac at avcodec.org
Mon May 21 15:45:38 CEST 2012
#1338: FFMPEG creating broken MP4/Audio files with LibXvid
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Type: defect
Status: new | Priority: important
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
The latest version of FFMPEG (N-40824-g31dfe20) is creating broken MP4
files when starting with a TS file.
The Audio is completely out of sync or creates no audio at all.
This is a regression bug so I'm marking it important.
This was working with FFMPEG build N-37915-g6cb2085 with no audio issues.
Attaching the link to the input file (it is 40MB in size unfortunately to
be able to replicate the issue).
http://www.mediafire.com/?5xwf84kbzp6ci4y
You can replace libvo_aacenc with ac3 and it still has the same problem.
If I put -vn the audio comes back (but there's no video). Some reason the
Audio/sync is broken after build N-37915-g6cb2085.
COMMMAND:
ffmpeg -i CSI.ts -ss 3 -vf yadif=0:-1,hqdn3d,crop=688:416:14:46 -vcodec
libx264 -b
1911111 -flags +loop -cmp +chroma -deblock -1:-1 -bt 256k -refs 8 -bf 3
-b_strategy 2 -coder 1 -me_method hex -me_range
16 -subq 8 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -weightb 1
-mixed-refs 1 -8x8dct 1 -g 25 -keyint_min 20 -lev
el 41 -trellis 1 -sc_threshold 40 -i_qfactor 0.71 -acodec libvo_aacenc -ab
192k -ac 2 csi.mp4
OUTPUT:
{{{
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 @ 02b9e3a0] Header missing
[mpeg2video @ 02b98140] mpeg_decode_postinit() failure
Last message repeated 7 times
[mpegts @ 02b7e860] 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
Please use -b:a or -b:v, -b is ambiguous
[buffer @ 035cef60] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:8/9
sws_param:flags=2
[buffersink @ 03657020] No opaque field provided
[yadif @ 035cecc0] mode:0 parity:-1 auto_enable:0
[hqdn3d @ 035cee20] ls:4.000000 cs:3.000000 lt:6.000000 ct:4.500000
[crop @ 035cee80] w:720 h:480 sar:8/9 -> w:688 h:416 sar:8/9
[abuffer @ 035ceee0] format:s16 layout:stereo rate:48000
[libx264 @ 03657860] using SAR=8/9
[libx264 @ 03657860] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 03657860] profile High, level 4.1
[libx264 @ 03657860] 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=8 deblock=1:-1:-1 analyse=0x3:0x113
me=hex subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threa
ds=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0
bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=13 scenecut=40
intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitra
te=1911 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, mp4, to 'csi.mp4':
Metadata:
encoder : Lavf54.5.100
Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 688x416 [SAR
8:9 DAR 172:117], q=-1--1, 1911 kb/s, 30k tbn,
29.97 tbc
Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, stereo, s16,
192 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 @ 02b9e3a0] Header missing
Error while decoding stream #0:1
ac-tex damaged at 32 137.0 size= 0kB time=00:00:00.00 bitrate=
0.0kbits/s
[mpeg2video @ 02b98140] Warning MVs not available
[mpeg2video @ 02b98140] concealing 765 DC, 765 AC, 765 MV errors
[mp2 @ 02b9e3a0] incomplete frame
Error while decoding stream #0:1
[libvo_aacenc @ 032d48a0] Trying to remove 1024 samples, but que empty
[mp4 @ 03657100] Encoder did not produce proper pts, making some up.
[libvo_aacenc @ 032d48a0] Trying to remove 1024 samples, but que empty
frame= 1308 fps= 35 q=-1.0 Lsize= 10692kB time=00:00:00.04
bitrate=2052801.5kbits/s dup=1 drop=0
video:10675kB audio:1kB global headers:0kB muxing overhead 0.143845%
[libx264 @ 03657860] frame I:62 Avg QP: 9.60 size: 38680
[libx264 @ 03657860] frame P:551 Avg QP:11.57 size: 10696
[libx264 @ 03657860] frame B:695 Avg QP:17.93 size: 3798
[libx264 @ 03657860] consecutive B-frames: 24.7% 6.0% 22.2% 47.1%
[libx264 @ 03657860] mb I I16..4: 23.6% 43.0% 33.4%
[libx264 @ 03657860] mb P I16..4: 5.2% 7.1% 2.4% P16..4: 31.9% 12.9%
11.0% 0.0% 0.0% skip:29.6%
[libx264 @ 03657860] mb B I16..4: 0.3% 1.3% 0.5% B16..8: 27.3% 7.6%
2.2% direct: 7.5% skip:53.4% L0:34.0% L1:4
9.9% BI:16.1%
[libx264 @ 03657860] final ratefactor: 13.28
[libx264 @ 03657860] 8x8 transform intra:47.5% inter:52.8%
[libx264 @ 03657860] coded y,uvDC,uvAC intra: 63.8% 82.3% 67.5% inter:
21.9% 25.3% 7.5%
[libx264 @ 03657860] i16 v,h,dc,p: 67% 13% 2% 17%
[libx264 @ 03657860] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 16% 14% 5% 7%
8% 8% 9% 9%
[libx264 @ 03657860] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 17% 12% 6% 9%
9% 8% 8% 9%
[libx264 @ 03657860] i8c dc,h,v,p: 40% 28% 18% 13%
[libx264 @ 03657860] Weighted P-Frames: Y:6.5% UV:4.2%
[libx264 @ 03657860] ref P L0: 74.8% 6.1% 11.7% 3.0% 1.8% 1.1% 0.8%
0.5% 0.2% 0.0%
[libx264 @ 03657860] ref B L0: 86.9% 9.0% 2.4% 0.8% 0.5% 0.3% 0.1%
[libx264 @ 03657860] ref B L1: 95.6% 4.4%
[libx264 @ 03657860] kb/s:2003.66
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1338>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list