Opened 13 years ago
Closed 13 years ago
#3078 closed defect (fixed)
2-pass log file for ffv1 too large
| Reported by: | Carl Eugen Hoyos | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avcodec |
| Version: | git-master | Keywords: | ffv1 |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
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
Note:
See TracTickets
for help on using tickets.



Fixed in 1fb3b494fac70a51f48e94b5ae2d9f715b5d14e7