Skip to content

Instantly share code, notes, and snippets.

@waltercool
Last active August 24, 2020 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waltercool/0723f53ed479c25061bcdb1178198c97 to your computer and use it in GitHub Desktop.
Save waltercool/0723f53ed479c25061bcdb1178198c97 to your computer and use it in GitHub Desktop.
ffmpeg personal swissknife
# Compress x265 with deinterlace using Cuda
ffmpeg -hwaccel cuvid -i <INPUT> -pix_fmt p010le -vf yadif -c:v hevc_nvenc -preset slow -acodec copy <OUTPUT> #NOT WORKING ANYMORE
ffmpeg -i <INPUT> -vf yadif=parity=auto -vcodec hevc_nvenc -acodec copy -preset slow <OUTPUT>
# Merge Video+Audio
ffmpeg -i <Video> -i <Audio> -codec copy -shortest <OUTPUT>
# Extract audio from Video under Mono
ffmpeg -i <VIDEO> -vn -ac 1 <Audio>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment