[FFmpeg-devel] FFv1.3 multipass: ffmpeg freezes in 2nd pass

Peter B. pb at das-werkstatt.com
Sun Nov 11 01:33:02 CET 2012


I'm having issues with "paris_qcif.y4m" [1]:

When I try to dual-pass encode it, ffmpeg freezes on 2nd pass encoding.

Here's commandline and output:

//------------------------------------
$ ffmpeg -i input/xiph-derf/bis_SD/paris_qcif.y4m -an -vcodec ffv1
-level 3 -context 1 -coder 1 -g 1 -threads 8 -strict experimental
-slices 30 -slicecrc 1 -pass 1 -passlogfile:0 test-pass paris_qcif-1p.avi
//------------------------------------
ffmpeg version N-46567-geb3dc23 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Nov 10 2012 15:33:26 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-version3 --enable-postproc --enable-swscale --enable-avfilter
--enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis
--enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png
--enable-encoder=png --enable-libfreetype --enable-libschroedinger
  libavutil      52.  5.100 / 52.  5.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[yuv4mpegpipe @ 0x2d7e240] Estimating duration from bitrate, this may be
inaccurate
Input #0, yuv4mpegpipe, from 'input/xiph-derf/bis_SD/paris_qcif.y4m':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144,
SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Output #0, avi, to 'paris_qcif-1p.avi':
  Metadata:
    ISFT            : Lavf54.36.100
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv420p, 176x144 [SAR
128:117 DAR 1408:1053], q=2-31, pass 1, 200 kb/s, 29.97 tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> ffv1)
Press [q] to stop, [?] for help
frame= 1065 fps=198 q=0.0 Lsize=   27900kB time=00:00:35.53
bitrate=6431.9kbits/s   
video:27869kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.111655%

//------------------------------------
$ ffmpeg -i input/xiph-derf/bis_SD/paris_qcif.y4m -an -vcodec ffv1
-level 3 -context 1 -coder 1 -g 1 -threads 8 -strict
experimental -slices 30 -slicecrc 1 -pass 2 -passlogfile:0 test-pass
paris_qcif-2p.avi
//------------------------------------
ffmpeg version N-46567-geb3dc23 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Nov 10 2012 15:33:26 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-version3 --enable-postproc --enable-swscale --enable-avfilter
--enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis
--enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png
--enable-encoder=png --enable-libfreetype --enable-libschroedinger
  libavutil      52.  5.100 / 52.  5.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[yuv4mpegpipe @ 0x192a240] Estimating duration from bitrate, this may be
inaccurate
Input #0, yuv4mpegpipe, from 'input/xiph-derf/bis_SD/paris_qcif.y4m':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144,
SAR 128:117 DAR 1408:1053, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
//------------------------------------

And then it just hangs and has to be killed (Ctrl+C won't work).
Any hints?

Regards,
Pb

PS: I've noticed that its pass-logfile is huge: it's bigger than the
original Y4M file! :)

== References:
[1] http://media.xiph.org/video/derf/y4m/paris_qcif.y4mffmpeg -i
input/xiph-derf/bis_SD/paris_qcif.y4m -an -vcodec ffv1


More information about the ffmpeg-devel mailing list