[FFmpeg-user] FFV1 multi-pass: Could not allocate file buffer

Peter B. pb at das-werkstatt.com
Mon Oct 21 22:27:32 CEST 2013


Hello,

I've tried to run a 2-pass encoding with FFV1.3 on a 4h
computer-generated video, but I'm getting the following error message
when I try to run the 2nd pass:

"Could not allocate file buffer
Error reading log file 'ffv1_passlog-0.log' for pass-2 encoding"

The file exists, has around 7.2 GiB and is readable by the user running
the command.
Could the filesize of the pass-logfile be the problem?
I've never ran 2-pass tests on FFV1 videos of that size in one piece.

Running the same 2 commands, but adding duration limit (-t
00:30:00.000), 2-pass encoding works fine (logfile is "only" 1.6 GiB).


I'd be grateful for any hints about how to solve this,
Pb



Here's the commandline and full, uncut console output:


================================
  PASS 1
================================

$ ffmpeg -i 360000_frames.avi -an -c:v ffv1 -level 3 -coder 1 -context 1
-slices 24 -slicecrc 1 -pass 1 -passlogfile ffv1_passlog -threads 8
output_pass1.avi

ffmpeg version N-57294-gab2bfb8 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Oct 21 2013 18:16:55 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  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
--enable-libvpx --enable-libvorbis --enable-libx264 --enable-libfaac
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 37.102 / 55. 37.102
  libavformat    55. 19.103 / 55. 19.103
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.102 /  3. 88.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from '360000_frames.avi':
  Metadata:
    date            : 2013-10-20T23:39
    title           : DVA Fidelity-Analyzer Testvideo (v2.0)
    encoder         : Lavf55.19.100
    encoded_by      : Österreichische Mediathek
  Duration: 04:00:00.00, start: 0.000000, bitrate: 10896 kb/s
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, SAR
1:1 DAR 5:4, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
Output #0, avi, to 'output_pass1.avi':
  Metadata:
    ICRD            : 2013-10-20T23:39
    INAM            : DVA Fidelity-Analyzer Testvideo (v2.0)
    ITCH            : Österreichische Mediathek
    ISFT            : Lavf55.19.103
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576 [SAR
1:1 DAR 5:4], q=2-31, pass 1, 200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (ffv1 -> ffv1)
Press [q] to stop, [?] for help
frame=360000 fps=141 q=-1.0 Lsize= 7501157kB time=04:00:00.00
bitrate=4267.3kbits/s   
video:7494564kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.087971%


================================
  PASS 2
================================
$ ffmpeg -i 360000_frames.avi -c:a copy -c:v ffv1 -level 3 -coder 1
-context 1 -slices 24 -slicecrc 1 -pass 2 -passlogfile ffv1_passlog
-threads 8 output_pass2.avi

ffmpeg version N-57294-gab2bfb8 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Oct 21 2013 18:16:55 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  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
--enable-libvpx --enable-libvorbis --enable-libx264 --enable-libfaac
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 37.102 / 55. 37.102
  libavformat    55. 19.103 / 55. 19.103
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.102 /  3. 88.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from '360000_frames.avi':
  Metadata:
    date            : 2013-10-20T23:39
    title           : DVA Fidelity-Analyzer Testvideo (v2.0)
    encoder         : Lavf55.19.100
    encoded_by      : Österreichische Mediathek
  Duration: 04:00:00.00, start: 0.000000, bitrate: 10896 kb/s
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, SAR
1:1 DAR 5:4, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16, 1536 kb/s
Could not allocate file buffer
Error reading log file 'ffv1_passlog-0.log' for pass-2 encoding



More information about the ffmpeg-user mailing list