[FFmpeg-user] Application provided invalid, non monotonically increasing dts to muxer in stream

Claudiu Rad jazzman at misalpina.net
Wed Oct 14 19:10:52 CEST 2015



On 9/27/2015 1:00 PM, MrNice wrote:
> ./ffmpeg -debug 1 -xerror -f pulse -ar 44100 -ac 2 -channel_layout
> stereo -thread_queue_size 512 -itsoffset -0.20 -i
> alsa_input.pci-0000_00_14.2.analog-stereo -f v4l2 -ts mono2abs -channel
> 1 -video_size 720x576 -pix_fmt yuyv422 -thread_queue_size 512 -i
> /dev/video0 -vf
> drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:564:720:12:black at 1:t=max
> -c:v ffv1 -level 3 -g 1 -aspect 4:3 -pix_fmt yuv422p -c:a pcm_s16le
> /Store3/Test/t_`date +%Y%m%d_%H%M`.mkv -aspect 4:3 -f sdl "Dazzle output"
>
> I get errors, ie: 8133 input video packets (around 5 minutes) and drop=4
>
> [matroska @ 0x3910d80] Writing block at offset 2449025254, size 53920,
> pts 325664, dts 325664, duration 306, keyframe 1
> [matroska @ 0x3910d80] end duration = 325970
> [matroska @ 0x3910d80] stream 0 end duration = 325600
> [matroska @ 0x3910d80] stream 1 end duration = 325970
> frame= 8129 fps= 25 q=-0.0 Lq=-0.0 size= 2391845kB time=00:05:25.76
> bitrate=60146.9kbits/s dup=0 drop=4
> video:8923049kB audio:56154kB subtitle:0kB other streams:0kB global
> headers:0kB muxing overhead: unknown
> Input file #0 (alsa_input.pci-0000_00_14.2.analog-stereo):
>    Input stream #0:0 (audio): 1173 packets read (57501184 bytes); 1173
> frames decoded (14375296 samples);
>    Total: 1173 packets (57501184 bytes) demuxed
> Input file #1 (/dev/video0):
>    Input stream #1:0 (video): 8133 packets read (6745835520 bytes); 8133
> frames decoded;
>    Total: 8133 packets (6745835520 bytes) demuxed
> Output file #0 (/Store3/Test/t_20150927_0925.mkv):
>    Output stream #0:0 (video): 8129 frames encoded; 8129 packets muxed
> (2391366165 bytes);
>    Output stream #0:1 (audio): 1173 frames encoded (14375296 samples);
> 1173 packets muxed (57501184 bytes);
>    Total: 9302 packets (2448867349 bytes) muxed
> Output file #1 (Dazzle output):
>    Output stream #1:0 (video): 8133 frames encoded; 8133 packets muxed
> (6745835520 bytes);
>    Total: 8133 packets (6745835520 bytes) muxed
> 9306 frames successfully decoded, 0 decoding errors
> [AVIOContext @ 0x391da40] Statistics: 48794 seeks, 111065 writeouts
> Conversion failed!

what's your CPU? how's the CPU usage during encoding?
did you try another capture card?

not very familiar with capturing with capture cards under linux, but for 
sure if you need help you should try reproduce with a minimal amount of 
parameters. ./ffmpeg -debug 1 -xerror -f pulse -ar 44100 -ac 2 
-channel_layout stereo -thread_queue_size 512 -itsoffset -0.20 ... and I 
am already lost.

remove everything possible even if it is not exactly what you want but 
first we should see if it reproduces with the simplest command like
ffmpeg -i <audio_in> -i <video_in> out.mkv
of course, add parameters that are *really* required for input devices.
and then, try to add an -vf "scale=120x90" for the output to make sure 
we encode something small and we don't hit resource limits.

and if this works, work your way from there. also try another capture 
card. you should be able to isolate the problem.

and then come back for help.

-- 
Claudiu



More information about the ffmpeg-user mailing list