id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
634,non monotonically increasing dts with v4l2,wim,,"errors when encoding webcam to video file

When using .avi container:

wim@wim-ubuntu:~/croncap$ ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -vcodec libx264 -preset medium -vprofile baseline blah.avi
ffmpeg version git-2011-11-03-988f585, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov  3 2011 20:03:33 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx
  libavutil    51. 23. 0 / 51. 23. 0
  libavcodec   53. 27. 0 / 53. 27. 0
  libavformat  53. 18. 0 / 53. 18. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 45. 3 /  2. 45. 3
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[video4linux2,v4l2 @ 0x1f188c0] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 422744.730718, bitrate: 18432 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 18432 kb/s, 15 tbr, 1000k tbn, 15 tbc
Incompatible pixel format 'yuyv422' for codec 'libx264', auto-selecting format 'yuv420p'
[buffer @ 0x1f1d060] w:320 h:240 pixfmt:yuyv422 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x1f1d4e0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x1f1dcc0] w:320 h:240 fmt:yuyv422 -> w:320 h:240 fmt:yuv420p flags:0x4
[libx264 @ 0x1f19dc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x1f19dc0] profile Constrained Baseline, level 1.2
Output #0, avi, to 'blah.avi':
  Metadata:
    ISFT            : Lavf53.18.0
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 320x240, q=-1--1, 15 tbn, 15 tbc
Stream mapping:
  Stream #0.0 -> #0.0 (rawvideo -> libx264)
Press [q] to stop, [?] for help
non-strictly-monotonic PTS.0 size= 1008450kB time=38:51:05.60 bitrate=  59.1kbits/s    
non-strictly-monotonic PTS.0 size= 1008451kB time=38:51:06.13 bitrate=  59.1kbits/s    
non-strictly-monotonic PTS.0 size= 1008451kB time=38:51:06.66 bitrate=  59.1kbits/s    
non-strictly-monotonic PTS.0 size= 1008452kB time=38:51:07.20 bitrate=  59.1kbits/s    
[libx264 @ 0x1f19dc0] non-strictly-monotonic PTS
non-strictly-monotonic PTS.0 size= 1008452kB time=38:51:07.73 bitrate=  59.1kbits/s    
non-strictly-monotonic PTS.0 size= 1008453kB time=38:51:08.26 bitrate=  59.1kbits/s    
non-strictly-monotonic PTS.0 size= 1008453kB time=38:51:08.80 bitrate=  59.1kbits/s    
[avi @ 0x1f19600] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 2098034 >= 2098034
av_interleaved_write_frame(): Invalid argument


When using .mkv container:


wim@wim-ubuntu:~/croncap$ ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -vcodec libx264 -preset medium -vprofile baseline eggs.mkv
ffmpeg version git-2011-11-03-988f585, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov  3 2011 20:03:33 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx
  libavutil    51. 23. 0 / 51. 23. 0
  libavcodec   53. 27. 0 / 53. 27. 0
  libavformat  53. 18. 0 / 53. 18. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 45. 3 /  2. 45. 3
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[video4linux2,v4l2 @ 0x164a8c0] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 2250.662157, bitrate: 18432 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 18432 kb/s, 15 tbr, 1000k tbn, 15 tbc
Incompatible pixel format 'yuyv422' for codec 'libx264', auto-selecting format 'yuv420p'
[buffer @ 0x164a7e0] w:320 h:240 pixfmt:yuyv422 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x164f720] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x164ff80] w:320 h:240 fmt:yuyv422 -> w:320 h:240 fmt:yuv420p flags:0x4
[libx264 @ 0x164bf60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x164bf60] profile Constrained Baseline, level 1.2
[libx264 @ 0x164bf60] 264 - core 119 r2106 07efeb4 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'eggs.mkv':
  Metadata:
    encoder         : Lavf53.18.0
    Stream #0:0: Video: h264, yuv420p, 320x240, q=-1--1, 1k tbn, 15 tbc
Stream mapping:
  Stream #0.0 -> #0.0 (rawvideo -> libx264)
Press [q] to stop, [?] for help
non-strictly-monotonic PTS.0 size=  796312kB time=38:50:38.66 bitrate=  46.6kbits/s    
non-strictly-monotonic PTS.0 size=  796312kB time=38:50:39.20 bitrate=  46.6kbits/s    
[libx264 @ 0x164bf60] non-strictly-monotonic PTS
non-strictly-monotonic PTS.0 size=  796312kB time=38:50:39.73 bitrate=  46.6kbits/s    
non-strictly-monotonic PTS.0 size=  796312kB time=38:50:40.26 bitrate=  46.6kbits/s    
non-strictly-monotonic PTS.0 size=  796312kB time=38:50:40.80 bitrate=  46.6kbits/s    
[libx264 @ 0x164bf60] non-strictly-monotonic PTS
non-strictly-monotonic PTS.0 size=  796312kB time=38:50:41.33 bitrate=  46.6kbits/s    
[matroska @ 0x164b600] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 139841733 >= 139841733
av_interleaved_write_frame(): Invalid argument
",defect,closed,normal,undetermined,git-master,fixed,av_interleaved_write_frame v4l2,,,,0,0
