id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
1014,"[libvpx][mjpeg] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 67 >= 33",unikum,,"I tried encode mjpeg video with bp8 codec and get error.
I use following commands:
{{{
$ ffmpeg -pass 1 -i /tmp/video/video.avi -vf hqdn3d=2:1:2,format=yuv420p -pix_fmt yuv420p -an -vcodec libvpx -threads 4 -vprofile 0 -vb 1M -g 360 -keyint_min 0 -qmin 1 -qmax 51 -skip_threshold 0 -deadline good -cpu-used 0 -mb_threshold 0 -slices 2 -f rawvideo -y /dev/null
ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb  7 2012 10:34:18 with gcc 4.6.2 20120120 (prerelease)
  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 60.100 / 53. 60.100
  libavformat    53. 31.100 / 53. 31.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 60.100 /  2. 60.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from '/tmp/video/video.avi':
  Metadata:
    creation_time   : 2012-01-26 12:49:21
    encoder         : CanonMVI06
  Duration: 00:00:25.03, start: 0.000000, bitrate: 11340 kb/s
    Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
    Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s
[buffer @ 0x2282ec0] w:640 h:480 pixfmt:yuvj422p tb:1/1000000 sar:0/1 sws_param:
[hqdn3d @ 0x2281160] ls:2.000000 cs:1.000000 lt:2.000000 ct:1.000000
[hqdn3d @ 0x2281160] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'Parsed_hqdn3d_0'
[scale @ 0x22837a0] w:640 h:480 fmt:yuvj422p -> w:640 h:480 fmt:yuv420p flags:0x4
[libvpx @ 0x2282040] v1.0.0
Output #0, rawvideo, to '/dev/null':
  Metadata:
    creation_time   : 2012-01-26 12:49:21
    encoder         : Lavf53.31.100
    Stream #0:0: Video: vp8, yuv420p, 640x480, q=1-51, pass 1, 1000 kb/s, 90k tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libvpx)
Press [q] to stop, [?] for help
frame=  751 fps=134 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=   0.0kbits/s    
video:0kB audio:0kB global headers:0kB muxing overhead -nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

$ ffmpeg -pass 2 -i /tmp/video/video.avi -vf hqdn3d=2:1:2,format=yuv420p -pix_fmt yuv420p -an -vcodec libvpx -threads 4 -vprofile 0 -vb 1M -g 360 -keyint_min 0 -qmin 1 -qmax 51 -skip_threshold 0 -deadline good -cpu-used 0 -mb_threshold 0 -slices 2 -lag-in-frames 16 -minrate 100k -maxrate 2M -arnr-maxframes 7 -arnr-strength 5 -arnr-type centered -auto-alt-ref 1 -acodec libvorbis -ab 80k -ac 2 -ar 48000 -f webm -y test.webm
ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb  7 2012 10:34:18 with gcc 4.6.2 20120120 (prerelease)
  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 60.100 / 53. 60.100
  libavformat    53. 31.100 / 53. 31.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 60.100 /  2. 60.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from '/tmp/video/video.avi':
  Metadata:
    creation_time   : 2012-01-26 12:49:21
    encoder         : CanonMVI06
  Duration: 00:00:25.03, start: 0.000000, bitrate: 11340 kb/s
    Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
    Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s
[buffer @ 0x19f9e20] w:640 h:480 pixfmt:yuvj422p tb:1/1000000 sar:0/1 sws_param:
[hqdn3d @ 0x19faa80] ls:2.000000 cs:1.000000 lt:2.000000 ct:1.000000
[hqdn3d @ 0x19faa80] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'Parsed_hqdn3d_0'
[scale @ 0x1a011a0] w:640 h:480 fmt:yuvj422p -> w:640 h:480 fmt:yuv420p flags:0x4
[libvpx @ 0x19fbc20] v1.0.0
Output #0, webm, to 'test.webm':
  Metadata:
    creation_time   : 2012-01-26 12:49:21
    encoder         : Lavf53.31.100
    Stream #0:0: Video: vp8, yuv420p, 640x480, q=1-51, pass 2, 1000 kb/s, 1k tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libvpx)
Press [q] to stop, [?] for help
[webm @ 0x19fb2e0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 67 >= 33
av_interleaved_write_frame(): Invalid argument
}}}

My system is Archlinux x86_64 with recent updates. Packages versions:

{{{
ffmpeg 20120127-3
libvpx 1.0.0-1
}}}

",defect,closed,normal,undetermined,git-master,invalid,av_interleaved_write_frame libvpx,michael,,,1,0
