force audio alignment in mpv
explanation: - vf=setpts=PTS/1 ensures that each frame is shown at its correct time according to the video’s original timing. It does not affect the overall playback speed dictated by the frame rate setting. ( i use 20 fps to avoid getting drowsy ) - vf=setpts=PTS/1 is set to prevent issues like audio-video desynchronization or to ensure smooth playback, especially with variable frame rate (VFR) videos.main
parent
8b31e51c61
commit
78b45b3cb6
|
@ -234,6 +234,7 @@
|
||||||
("ls" . "ls -p --color=auto")
|
("ls" . "ls -p --color=auto")
|
||||||
("run_code" . "g++ -o main main.cc -Ofast -std=c++23 -s -flto -march=native -I ~/dev/ajatt/hakurei/include/ && ./main")
|
("run_code" . "g++ -o main main.cc -Ofast -std=c++23 -s -flto -march=native -I ~/dev/ajatt/hakurei/include/ && ./main")
|
||||||
("rgf" . "rg --files | rg")
|
("rgf" . "rg --files | rg")
|
||||||
|
("mpv" . "mpv --audio-pitch-correction=yes --vf=setpts=PTS/1")
|
||||||
("record" . "ffmpeg -f x11grab -r 23 -s 1366x768 -i $DISPLAY -f pulse -i nui_mic_remap -filter_complex '[1:a]volume=2.0[a]' -map 0:v -map '[a]' -c:v libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -y /tmp/output.mp4")
|
("record" . "ffmpeg -f x11grab -r 23 -s 1366x768 -i $DISPLAY -f pulse -i nui_mic_remap -filter_complex '[1:a]volume=2.0[a]' -map 0:v -map '[a]' -c:v libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -y /tmp/output.mp4")
|
||||||
("isolate" . "guix shell --container --network --preserve='^DISPLAY$' \
|
("isolate" . "guix shell --container --network --preserve='^DISPLAY$' \
|
||||||
--preserve='^XAUTHORITY$' --expose=$XAUTHORITY --expose=/etc/ssl/certs --no-cwd ")))
|
--preserve='^XAUTHORITY$' --expose=$XAUTHORITY --expose=/etc/ssl/certs --no-cwd ")))
|
||||||
|
|
Loading…
Reference in New Issue