So far i have tried

ffmpeg -f kmsgrab -i -  -f pulse -i 0  -framerate 20 -vf 'hwmap=derive_device=vaapi,hwdownload,format=bgr0'  -preset ultrafast  out6.mkv   

but it gave me errors like

[matroska @ 0x55f966294c00] Non-monotonous DTS in output stream 0:1; previous: 8895, current: 8127; changing to 8895. This may result in incorrect timestamps in the output file.
[libvorbis @ 0x55f966297ac0] Queue input is backward in timebitrate= 776.9kbits/s speed=1.46x    

the output video stutters and audio is not in sync with the video . How do i fix this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.