New submission from Bram Avontuur <[email protected]>:
While trying to transcode a customer-uploaded mp4 file, ffmpeg spends
several hours encoding before exiting on an error status. I'd provide a
sample video, but it might be sensitive data and cutting up the video
using dd doesn't produce anything ffmpeg groks so I hope the following
information will do.
Command line: ffmpeg -i input.mp4 -vcodec libx264 -vpre fast -vpre
baseline -acodec libfaac -ac 2 -ar 44100 -ab 112k /tmp/dummy.mp4
ffmpeg verbose output:
ffmpeg -v 9 -loglevel 99 -i input.mp4
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Feb 18 2011 14:59:58 with gcc 4.3.2
configuration: --enable-gpl --enable-version3 --enable-nonfree --
enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --
enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libx264 --
enable-libvorbis --enable-libtheora --enable-avfilter --
prefix=/home/botr/botr/opt/encoder.new --extra-cflags='-I
/home/botr/botr/opt/encoder.new/include' --extra-ldflags='-L
/home/botr/botr/opt/encoder.new/lib' --arch=x86_32 --enable-runtime-
cpudetect --disable-ffplay --disable-ffserver --disable-ffprobe --
disable-doc --enable-libvpx
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
[NULL @ 0x8e42cc0] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8e42cc0] ISO: File Type Major Brand: mp42
[h264 @ 0x8e458c0] no picture
Last message repeated 1 times
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8e42cc0] max_analyze_duration reached
Seems stream 0 codec frame rate differs from container frame rate:
180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2011-02-10 04:18:27
encoder : HandBrake 0.9.5 2011010300
Duration: 00:14:23.76, start: 0.000000, bitrate: 929 kb/s
Chapter #0.0: start -0.083411, end 357.857500
Metadata:
title : Chapter 1
Chapter #0.1: start 357.857500, end 863.721156
Metadata:
title : Chapter 2
Stream #0.0(und), 117, 1/90000: Video: h264, yuv420p, 720x480 [PAR
32:27 DAR 16:9], 1/180000, 763 kb/s, 23.98 fps, 90k tbr, 90k tbn, 180k
tbc
Metadata:
creation_time : 2011-02-10 04:18:27
Stream #0.1(und), 237, 1/48000: Audio: aac, 48000 Hz, stereo, s16,
159 kb/s
Metadata:
creation_time : 2011-02-10 04:18:27
Stream #0.2(und), 0, 1/90000: Subtitle: text / 0x74786574
Metadata:
creation_time : 2011-02-10 04:18:27
At least one output file must be specified
mediainfo output:
General
Complete name : kuVogmqu.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 95.7 MiB
Duration : 14mn 23s
Overall bit rate : 929 Kbps
Encoded date : UTC 2011-02-10 04:18:27
Tagged date : UTC 2011-02-10 04:59:49
Writing application : HandBrake 0.9.5 2011010300
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 14mn 23s
Duration_LastFrame : 2mn 27s
Bit rate mode : Variable
Bit rate : 764 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 fps
Minimum frame rate : 19.965 fps
Maximum frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.092
Stream size : 78.7 MiB (82%)
Writing library : x264 core 112
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 /
analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 /
mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 /
deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=1 /
sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 /
constrained_intra=0 / bframes=2 / b_pyramid=2 / b_adapt=1 / b_bias=0 /
direct=1 / weightb=0 / open_gop=0 / weightp=2 / keyint=240 /
keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf
/ mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 /
ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2011-02-10 04:18:27
Tagged date : UTC 2011-02-10 04:59:49
Color primaries : BT.601-6 525, BT.1358 525, BT.1700
NTSC, SMPTE 170M
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.601-6 525, BT.1358 525, BT.1700
NTSC, SMPTE 170M
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Codec ID : 40
Duration : 14mn 23s
Bit rate mode : Variable
Bit rate : 160 Kbps
Maximum bit rate : 295 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 16.4 MiB (17%)
Encoded date : UTC 2011-02-10 04:18:27
Tagged date : UTC 2011-02-10 04:59:48
Text
ID : 3
Format : Apple text
Codec ID : text
Duration : 14mn 23s
Bit rate mode : Constant
Bit rate : 0
Stream size : 46.0 Bytes (0%)
Encoded date : UTC 2011-02-10 04:18:27
Tagged date : UTC 2011-02-10 04:59:49
----------
messages: 13720
priority: normal
status: new
substatus: new
title: ffmpeg stalls and finally fails on handbrake-generated mp4
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2617>
________________________________________________