Skip to content

Instantly share code, notes, and snippets.

@allanlei
Created June 26, 2020 05:04
Show Gist options
  • Save allanlei/789f1caa795942ba78e954e8f5ca2b6b to your computer and use it in GitHub Desktop.
Save allanlei/789f1caa795942ba78e954e8f5ca2b6b to your computer and use it in GitHub Desktop.
FFMPEG using scale_npp
ffmpeg \
-vsync 0 \
-hwaccel cuvid -c:v h264_cuvid \
-i https://twitch-event-engineering-public.s3.amazonaws.com/sync-footage/Sync-Footage-V1-H264.mp4 \
-filter_complex " \
[0:v]scale_npp=1280:720[out]
" -map '[out]' -y -c:v h264_nvenc -y output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment