[FFmpeg-user] need help with making an "in sync" screen recording.

Amon Gibson Albuquerque Nunes amon.nunes at hotmail.com
Wed Sep 23 14:58:46 EEST 2020


OK. so first of all i wanted to record some footage of a game i've bought from a digital storefront. as i experimented on which parameters and arguments i would use to record said footage i came up with this.

ffmpeg -thread_queue_size 2048 -f gdigrab -draw_mouse 0 -framerate 30 -show_region 0 -i desktop -thread_queue_size 2048 -f dshow -i audio="Mixagem estéreo (Conexant SmartAudio HD)" -vf "crop=512:303:0:40,scale=1024:606" -af "adelay=1000|1000" -f vob -codec:v mpeg2video -q 1 -g 1 -bitrate 40000000 -maxrate 50000000 -codec:a pcm_s16be gameplay_footage_01.mpg

however when playing up the recorded file(gameplay_footage_01.mpg) through ffplay the audio is out-of-sync *fast*, as in at one point the audio came up 4 seconds too early.

i want the video(gdigrab) and audio(stereo mix) part to be in sync with each other so i can have a decent recording in my hands. is there any way i can actually do that?


More information about the ffmpeg-user mailing list