Opened 11 years ago

Closed 11 years ago

#2494 closed defect (fixed)

Encoding large raw gbrp to jpegs fails with "Invalid timestamp"

Reported by: Zsbán Ambrus Owned by:
Priority: important Component: avformat
Version: git-master Keywords: regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:

I am trying to encode a large file containing raw video in a single file to jpeg images one file per image. The encoding processes the first 274 frames properly, then gives errors about "Invalid timestamps" and stops.

This behavior is strange because the input is raw and does not explicitly contain timestamps. The error seems to come up slightly after reading two gigabytes of input, which may be a coincidence because I have tested with only one image size. The input is 2560x1024 pixel images in raw gbrp format (green blue red 24 bit per pixel plane interplaced), thousands of images concatenated in a single large file. The output is jpeg images, one file per frame.

As a workaround, I could use the input option -s 2 to set the frame rate of input explicitly, which appears to make the bug go away. This should have no effect on the encoding because I use the -vsync passthrough option to write one input frame to exactly one output file, and the jpeg outputs include no timing information.

I am using ffmpeg built for windows x86_64, dynamic build from ffmpeg.zeranoe.com, on a windows 7 system. The bug does not seem exclusive to windows though, because I have met a similar error on amd64 linux too.

How to reproduce:

Get the ffmpeg build from http://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20130418-git-ee94362-win64-static.7z .

Create some dummy input composed of all zeros, with the following command.

e:\ambrus\f\fgbg\tmp>perl -we "binmode STDOUT or die; print pack qq(x).(2560*1024*3) for 1..1700" > zeros.dat

Then run ffmpeg with the following command.

e:\ambrus\f\fgbg\tmp>mkdir tout & ffmpeg -report -v 9 -loglevel 99 -f rawvideo -pix_fmt gbrp -s 2560x1024 -i zeros.dat -vsync passthrough tout\out-%05d.jpg

This writes only 274 frames of output (tout\out-00001.jpg to tout\out-00274.jpg inclusive) and gives the invalid timestamp errors you can see near the end of the verbose log output that follows.

Log output:

ffmpeg started on 2013-04-23 at 14:14:58
Report written to "ffmpeg-20130423-141458.log"
Command line:
"E:\\ambrus\\local\\ffmpeg-20130418-git-ee94362-win64-shared\\bin\\ffmpeg.exe" -report -v 9 -loglevel 99 -f rawvideo -pix_fmt gbrp -s 2560x1024 -i zeros.dat -vsync passthrough "tout\\out-%05d.jpg"
ffmpeg version N-52233-gee94362 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 18 2013 02:58:04 with gcc 4.8.0 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 56.103 /  3. 56.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'gbrp'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '2560x1024'.
Reading option '-i' ... matched as input file with argument 'zeros.dat'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument 'passthrough'.
Reading option 'tout\out-%05d.jpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option v (set logging level) with argument 9.
Applying option loglevel (set logging level) with argument 99.
Applying option vsync (video sync method) with argument passthrough.
Successfully parsed a group of options.
Parsing a group of options: input file zeros.dat.
Applying option f (force format) with argument rawvideo.
Applying option pix_fmt (set pixel format) with argument gbrp.
Applying option s (set frame size (WxH or abbreviation)) with argument 2560x1024.
Successfully parsed a group of options.
Opening an input file: zeros.dat.
[rawvideo @ 000000000056f920] File position before avformat_find_stream_info() is 0
[rawvideo @ 000000000056f920] All info found
[rawvideo @ 000000000056f920] Estimating duration from bitrate, this may be inaccurate
[rawvideo @ 000000000056f920] File position after avformat_find_stream_info() is 7864320
Input #0, rawvideo, from 'zeros.dat':
  Duration: 00:01:08.00, start: 0.000000, bitrate: 1572864 kb/s
    Stream #0:0, 1, 1/25: Video: rawvideo, gbrp, 2560x1024, 1/25, 1572864 kb/s, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file tout\out-%05d.jpg.
Successfully parsed a group of options.
Opening an output file: tout\out-%05d.jpg.
Successfully opened the file.
[graph 0 input from stream 0:0 @ 00000000004b4d40] Setting 'video_size' to value '2560x1024'
[graph 0 input from stream 0:0 @ 00000000004b4d40] Setting 'pix_fmt' to value '82'
[graph 0 input from stream 0:0 @ 00000000004b4d40] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 00000000004b4d40] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 00000000004b4d40] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 00000000004b4d40] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 00000000004b4d40] w:2560 h:1024 pixfmt:gbrp tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
[format @ 00000000004b4c20] compat: called with args=[yuvj420p|yuvj422p|yuvj444p]
[format @ 00000000004b4c20] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p'
[auto-inserted scaler 0 @ 00000000004b4b00] Setting 'w' to value '0'
[auto-inserted scaler 0 @ 00000000004b4b00] Setting 'h' to value '0'
[auto-inserted scaler 0 @ 00000000004b4b00] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 00000000004b4b00] w:0 h:0 flags:'0x4' interl:0
[format @ 00000000004b4c20] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 000000000056cfe0] query_formats: 4 queried, 3 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 00000000004b4b00] picking yuvj444p out of 3 ref:gbrp alpha:0
[auto-inserted scaler 0 @ 00000000004b4b00] w:2560 h:1024 fmt:gbrp sar:0/1 -> w:2560 h:1024 fmt:yuvj444p sar:0/1 flags:0x4
[mjpeg @ 000000000049c280] detected 4 logical cores
[mjpeg @ 00000000004e6380] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 000000000314ef60] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 000000000314f400] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 000000000314f880] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 000000000049c280] intra_quant_bias = 96 inter_quant_bias = 0
Output #0, image2, to 'tout\out-%05d.jpg':
  Metadata:
    encoder         : Lavf55.2.100
    Stream #0:0, 0, 1/90000: Video: mjpeg, yuvj444p, 2560x1024, 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mjpeg)
Press [q] to stop, [?] for help
[AVIOContext @ 000000000055ff00] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=    4 fps=0.0 q=0.0 size=N/A time=00:00:00.12 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=    6 fps=5.0 q=0.0 size=N/A time=00:00:00.20 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   10 fps=5.5 q=0.0 size=N/A time=00:00:00.36 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   13 fps=5.6 q=0.0 size=N/A time=00:00:00.48 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   17 fps=5.8 q=0.0 size=N/A time=00:00:00.64 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   20 fps=5.6 q=0.0 size=N/A time=00:00:00.76 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   23 fps=5.6 q=0.0 size=N/A time=00:00:00.88 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   27 fps=5.9 q=0.0 size=N/A time=00:00:01.04 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   32 fps=6.2 q=0.0 size=N/A time=00:00:01.24 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   37 fps=6.5 q=0.0 size=N/A time=00:00:01.44 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   43 fps=6.9 q=0.0 size=N/A time=00:00:01.68 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   50 fps=7.4 q=0.0 size=N/A time=00:00:01.96 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   56 fps=7.6 q=0.0 size=N/A time=00:00:02.20 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   63 fps=7.9 q=0.0 size=N/A time=00:00:02.48 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   68 fps=8.0 q=0.0 size=N/A time=00:00:02.68 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   73 fps=8.0 q=0.0 size=N/A time=00:00:02.88 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   75 fps=7.4 q=0.0 size=N/A time=00:00:02.96 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   79 fps=7.4 q=0.0 size=N/A time=00:00:03.12 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   83 fps=7.5 q=0.0 size=N/A time=00:00:03.28 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   88 fps=7.5 q=0.0 size=N/A time=00:00:03.48 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=   94 fps=7.7 q=0.0 size=N/A time=00:00:03.72 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  100 fps=7.8 q=0.0 size=N/A time=00:00:03.96 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  106 fps=8.0 q=0.0 size=N/A time=00:00:04.20 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  112 fps=8.1 q=0.0 size=N/A time=00:00:04.44 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  118 fps=8.2 q=0.0 size=N/A time=00:00:04.68 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  125 fps=8.4 q=0.0 size=N/A time=00:00:04.96 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  132 fps=8.5 q=0.0 size=N/A time=00:00:05.24 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  139 fps=8.7 q=0.0 size=N/A time=00:00:05.52 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  146 fps=8.8 q=0.0 size=N/A time=00:00:05.80 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
frame=  147 fps=8.5 q=0.0 size=N/A time=00:00:05.84 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  152 fps=8.5 q=0.0 size=N/A time=00:00:06.04 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  156 fps=8.4 q=0.0 size=N/A time=00:00:06.20 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  160 fps=8.4 q=0.0 size=N/A time=00:00:06.36 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  166 fps=8.5 q=0.0 size=N/A time=00:00:06.60 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  173 fps=8.6 q=0.0 size=N/A time=00:00:06.88 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  179 fps=8.6 q=0.0 size=N/A time=00:00:07.12 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  186 fps=8.7 q=0.0 size=N/A time=00:00:07.40 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  192 fps=8.8 q=0.0 size=N/A time=00:00:07.64 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  198 fps=8.8 q=0.0 size=N/A time=00:00:07.88 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  203 fps=8.8 q=0.0 size=N/A time=00:00:08.08 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  208 fps=8.8 q=0.0 size=N/A time=00:00:08.28 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  214 fps=8.9 q=0.0 size=N/A time=00:00:08.52 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  218 fps=8.9 q=0.0 size=N/A time=00:00:08.68 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  222 fps=8.8 q=0.0 size=N/A time=00:00:08.84 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  226 fps=8.8 q=0.0 size=N/A time=00:00:09.00 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  230 fps=8.8 q=0.0 size=N/A time=00:00:09.16 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  235 fps=8.8 q=0.0 size=N/A time=00:00:09.36 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  240 fps=8.8 q=0.0 size=N/A time=00:00:09.56 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  246 fps=8.8 q=0.0 size=N/A time=00:00:09.80 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  252 fps=8.8 q=0.0 size=N/A time=00:00:10.04 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  256 fps=8.8 q=0.0 size=N/A time=00:00:10.20 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  262 fps=8.8 q=0.0 size=N/A time=00:00:10.44 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  267 fps=8.8 q=0.0 size=N/A time=00:00:10.64 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
frame=  273 fps=8.9 q=0.0 size=N/A time=00:00:10.88 bitrate=N/A    
Statistics: 0 seeks, 3 writeouts
[mjpeg @ 000000000314f400] Error, Invalid timestamp=-272, last=270
[AVIOContext @ 00000000031646e0] Statistics: 0 seeks, 3 writeouts
Video encoding failed
[mjpeg @ 000000000314f880] Error, Invalid timestamp=-271, last=271
[AVIOContext @ 000000000056fea0] Statistics: 2170552320 bytes read, 0 seeks

Change History (2)

comment:1 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavformat
Keywords: regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Regression since e066fb5 / aa3c779

$ ffmpeg -f rawvideo -pix_fmt gbrp -s 2560x1024 -i /dev/zero -vsync 0 out%4d.jpg
ffmpeg version N-52412-g7a617d6 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 23 2013 15:40:34 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 27.100 / 52. 27.100
  libavcodec     55.  6.100 / 55.  6.100
  libavformat    55.  3.100 / 55.  3.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 60.101 /  3. 60.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, rawvideo, from '/dev/zero':
  Duration: N/A, start: 0.000000, bitrate: 1572864 kb/s
    Stream #0:0: Video: rawvideo, gbrp, 2560x1024, 1572864 kb/s, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out%4d.jpg':
  Metadata:
    encoder         : Lavf55.3.100
    Stream #0:0: Video: mjpeg, yuvj444p, 2560x1024, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mjpeg)
Press [q] to stop, [?] for help
Error, Invalid timestamp=-272, last=266=00:00:10.64 bitrate=N/A
Video encoding failed
[mjpeg @ 0x24d31c0] Error, Invalid timestamp=-271, last=267

comment:2 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: openclosed

Fixed by Paul B Mahol in ad56535

Note: See TracTickets for help on using tickets.