[FFmpeg-user] Debugging a broken mp4 (h.264/aac)
Mark J. Pearrow
mpearrow at csail.mit.edu
Fri Jun 26 19:55:57 CEST 2015
> Please provide command line and console output for
> a run that produces the broken output file and
> upload the output file.
Ok, the command line:
/opt/bin/ffmpeg -i rtsp://xxx.xxx.xxx.xxx/vbStream1S1 -acodec copy -vcodec h264 /scratch/2015_05_27_14_00_a8c7c31a8ea77601374a78c3a6c59ba6.mp4
The console output is this:
Input #0, rtsp, from 'rtsp://xxx.xxx.xxx.xxx/vbStream1S1':
Metadata:
title : \vbStream1S1
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp
[libx264 @ 0x3e69760] using SAR=1/1
[libx264 @ 0x3e69760] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x3e69760] profile High, level 4.0
[libx264 @ 0x3e69760] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/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 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_off
set=-2 threads=24 lookahead_threads=4 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 dire
ct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=
4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/scratch/2015_05_27_14_00_a8c7c31a8ea77601374a78c3a6c59ba6.mp4':
Metadata:
title : \vbStream1S1
encoder : Lavf55.36.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 30k tbn, 29.97 tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 173 fps= 48 q=29.0 size= 308kB time=00:00:06.31 bitrate= 370.7kbits/s dup=51 drop=0
frame= 279 fps= 39 q=29.0 size= 756kB time=00:00:09.34 bitrate= 662.4kbits/s dup=51 drop=0
…. then tons of lines like the ones immediately above, interspersed occasionally with errors almost identical to this:
[h264 @ 0x3d730c0] RTP: missed 5 packets1kB time=00:59:36.83 bitrate=1244.4kbits/s dup=51 drop=1
[h264 @ 0x9a25f20] out of range intra chroma pred mode at 52 49
[h264 @ 0x9a25f20] error while decoding MB 52 49
[h264 @ 0x9a25f20] concealing 2277 DC, 2277 AC, 2277 MV errors in I frame
The resulting file is about 1GB; I’m not sure where you want me to upload the file, but I could put it on Dropbox or something like it. Unfortunately, I cannot seem to create a damaged file on demand; the issue only happens in a small fraction of cases, otherwise I would make a much smaller example file.
Best,
mjp
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2457 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20150626/40ea2782/attachment.p7s>
More information about the ffmpeg-user
mailing list