Capture with error msg: Application provided invalid, non monotonically increasing
|Reproduced by developer:
|Analyzed by developer:
Summary of the bug: I try to capture from a S-VHS player and Dazzle DVC100, audio directly connected from the player to the input line of the integrated audio card.
When I run the command I get the following pattern:
-Error message in red
Application provided invalid, non monotonically increasing dts to muxer in stream 0:
Then a frame is dropped
Then I get a lot of warning messages in yellow
Past duration 0.xxxxxx too large
where 0.xxxxxx increase from 0.6xxxx to 0.9xxxx
To test more accurately, I removed the tape from the player and got a blue, still image with the program number wrote in white. This still image is very stable, no static.
When I run the command to capture the still image I get the above pattern at regular time.
See the first log
Then I removed the last part of the command
-aspect 4:3 -f sdl "Dazzle output"
I get the above pattern WITHOUT the error message in red but still with the warning and frame drop.
See the second log
When I remove all related to audio (input / output) the error is still present.
How to reproduce:
./ffmpeg -report -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 -c:v ffv1 -level 3 -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"