I am running ffmpeg script that captures webcam video and microphone audio and then uses video compression before saving the audio/video mp4 file. The script works on my desktop but cause error on my Pi. ffmpeg does not crash but instead says two erros. 1) Queue input is backward in time. 2) Non-monotonous DTS in output stream 0:1; previous: 232, current: 218: changing to 232. This may result in incorrect timestamps in the output file.

ffmpeg command :

 ffmpeg -f v4l2 -thread_queue_size 5000 -framerate 25 -video_size 
 640x480 -i /dev/video0 -thread_queue_size 5000 -f alsa -i plughw:1,0 
 -c:v libx264 -ac 1 -ar 44100 -c:a aac -y 

Is there a fix or does the Pi no have enough ram or something? My ram levels are jumping between 80-98 percent when I run this command.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.