[FFmpeg-trac] #3078(avcodec:new): 2-pass log file for ffv1 too large

FFmpeg trac at avcodec.org
Thu Oct 24 13:47:04 CEST 2013


#3078: 2-pass log file for ffv1 too large
--------------------------------------+---------------------------------
               Reporter:  cehoyos     |                  Owner:
                   Type:  defect      |                 Status:  new
               Priority:  normal      |              Component:  avcodec
                Version:  git-master  |               Keywords:  ffv1
             Blocked By:              |               Blocking:
Reproduced by developer:  0           |  Analyzed by developer:  0
--------------------------------------+---------------------------------
 http://thread.gmane.org/gmane.comp.video.ffmpeg.user/48560
 Using 2-pass ffv1 encoding leads to very large log files, for movie-length
 samples, the log file is too large to be read:
 {{{
 $ ffmpeg -f lavfi -i testsrc -pass 1 -vcodec ffv1 -t 3600 -f null -
 }}}
 {{{
 $ ffmpeg -f lavfi -i testsrc -pass 2 -vcodec ffv1 out.avi
 ffmpeg version N-57390-g210afae Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Oct 24 2013 13:18:47 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --cpu=corei7-avx
   libavutil      52. 47.101 / 52. 47.101
   libavcodec     55. 38.101 / 55. 38.101
   libavformat    55. 19.104 / 55. 19.104
   libavdevice    55.  5.100 / 55.  5.100
   libavfilter     3. 89.100 /  3. 89.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, lavfi, from 'testsrc':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240
 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
 [swscaler @ 0x1bc6f80] deprecated pixel format used, make sure you did set
 range correctly
 Could not allocate file buffer
 Error reading log file 'ffmpeg2pass-0.log' for pass-2 encoding
 }}}
 Work-around is to use -max_alloc but this fails for longer samples:
 {{{
 $ ls -l ffmpeg2pass-0.log
 -rw-r--r-- 1 cehoyos users 2965860816 Oct 24 13:39 ffmpeg2pass-0.log
 $ ffmpeg -max_alloc 3000000000 -f lavfi -i testsrc -pass 2 -vcodec ffv1
 out.avi
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3078>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list