[FFmpeg-user] Bug for bug file?
Benoit
benoit at friry.net
Wed Sep 28 19:25:45 CEST 2011
Hello,
I'm trying to convert mjpeg into h264.
But ffmpeg is "killed" before finishing the job.
Details and outputs below.
I don't know how to investigate.
Should I open a bug report?
Can you please help me?
Thanks,
benoit
========================================
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.
========================================
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
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
[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
$ ./convert_h264.sh myvideo.avi myvideo.veryfast_baseline_23.mp4 baseline
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
[buffer @ 0x1d67a00] w:720 h:576 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
[yadif @ 0x1d6eb20] mode:1 parity:0
[crop @ 0x1d6ae20] w:720 h:576 -> w:696 h:568
[libx264 @ 0x1d66ae0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x1d66ae0] profile Constrained Baseline, level 3.1
[libx264 @ 0x1d66ae0] 264 - core 116 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 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=0 weightp=0 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_baseline_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 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
$ ./convert_h264.sh myvideo.avi myvideo.veryfast_baseline_23_nocropyadif.mp4 baseline
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
[buffer @ 0x19fdfa0] w:720 h:576 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
[libx264 @ 0x19fdae0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x19fdae0] profile Constrained Baseline, level 3.1
[libx264 @ 0x19fdae0] 264 - core 116 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 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=0 weightp=0 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_baseline_23_nocropyadif.mp4':
Metadata:
encoder : Lavf53.4.0
Stream #0.0: Video: libx264, yuvj420p, 720x576, 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
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
More information about the ffmpeg-user
mailing list