[FFmpeg-user] Bug for bug file?

Benoit benoit at friry.net
Sun Oct 2 12:38:18 CEST 2011


Hi!

I wrote:
> I'm trying to convert mjpeg into h264.
> But ffmpeg is "killed" before finishing the job.
[...]

Same thing with webm

> ========================================
> My script and the file

> $ cat convert_h264.sh
> #!/bin/ksh
> time nice ffmpeg \
> 	-i $1 \
> 	-acodec libfaac -aq 120 \
> 	-vcodec libx264 -r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0" \
> 	-preset veryfast -profile $3 -crf 23 \
> 	-f mp4 $2

> myvideo.avi is a 7.2 GB file, grabbed from a VHS via a Dazzle device.

My webm script file:

time nice ffmpeg \
        -i $1 \
        -acodec libvorbis -aq 40 -ac 2 \
        -vcodec libvpx -r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0" \
        -g 200 -keyint_min 0 \
		-qmax 40 -rc_lookahead 16 -skip_threshold 0 -level 116 \
        -f webm  $2

> ========================================
> First test: profile main

> $ ./convert_h264.sh myvideo.avi myvideo.veryfast_main_23.mp4 main
> ffmpeg version 0.8.3, Copyright (c) 2000-2011 the FFmpeg developers
[...]
> Input #0, avi, from 'myvideo.avi':
>   Duration: 00:47:29.56, start: 0.000000, bitrate: 21670 kb/s
>     Stream #0.0: Video: mjpeg, yuvj420p, 720x576, 25 tbr, 25 tbn, 25 tbc
>     Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
> [buffer @ 0x1204a00] w:720 h:576 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
> [yadif @ 0x120bb20] mode:1 parity:0
> [crop @ 0x1207e20] w:720 h:576 -> w:696 h:568
> [libx264 @ 0x1203ae0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
> [libx264 @ 0x1203ae0] profile Main, level 3.1
> [libx264 @ 0x1203ae0] 264 - core 116 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 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=0 threads=1 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 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 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 'myvideo.veryfast_main_23.mp4':
>   Metadata:
>     encoder         : Lavf53.4.0
>     Stream #0.0: Video: libx264, yuvj420p, 696x568, q=2-31, 200 kb/s, 50 tbn, 50 tbc
>     Stream #0.1: Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #0.1 -> #0.1
> Press [q] to stop, [?] for help
> Killed 9261 fps= 22 q=31.0 size=  408590kB time=00:26:24.96 bitrate=2111.8kbits/s dup=6289 drop=0    
>  6138.46s real  5820.28s user    30.55s system

> ========================================
> Second test: profile baseline

[...]

> Killed 9557 fps= 15 q=31.0 size=  434826kB time=00:19:50.92 bitrate=2991.0kbits/s dup=4937 drop=0    
>  6632.78s real  5736.91s user    31.41s system

> ========================================
> Third test: profile baseline and without filter
> I remove [-r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0"] in the script

[...]

> Memory fault ps= 19 q=31.0 size=  185766kB time=00:06:23.14 bitrate=3971.9kbits/s dup=10522 drop=0
>  1658.33s real  1590.50s user    10.18s system

========================================
Fourth test: webm with command shown in the beginning of this mail

ffmpeg version 0.8.3, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 10 2011 13:42:49 with gcc 4.6.1
  configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-frei0r --enable-libopencv --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --libdir=/usr/lib/x86_64-linux-gnu --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, avi, from 'myvideo.avi':
  Duration: 00:47:29.56, start: 0.000000, bitrate: 21670 kb/s
    Stream #0.0: Video: mjpeg, yuvj420p, 720x576, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
Incompatible pixel format 'yuvj420p' for codec 'libvpx', auto-selecting format 'yuv420p'
[buffer @ 0x16ef660] w:720 h:576 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
[yadif @ 0x16ee1c0] mode:1 parity:0
[crop @ 0x16eab60] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed filter 0 yadif' and the filter 'Parsed filter 1 crop'
[scale @ 0x16eaf20] w:720 h:576 fmt:yuvj420p -> w:720 h:576 fmt:yuv420p flags:0x4
[crop @ 0x16eab60] w:720 h:576 -> w:696 h:568
[libvpx @ 0x16e8b80] v0.9.7-p1
Output #0, webm, to 'myvideo.webm':
  Metadata:
    encoder         : Lavf53.4.0
    Stream #0.0: Video: libvpx, yuv420p, 696x568, q=2-40, 200 kb/s, 1k tbn, 50 tbc
    Stream #0.1: Audio: libvorbis, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
Killed 5498 fps=  6 q=0.0 size=  131166kB time=00:09:28.38 bitrate=1890.5kbits/s     
 7030.15s real  5621.65s user    32.60s system

"Killed" :(

Incomplete webm file is 129M.


More information about the ffmpeg-user mailing list