Skip to content

Instantly share code, notes, and snippets.

@djismgaming
Created July 17, 2019 18:49
Show Gist options
  • Select an option

  • Save djismgaming/09e6ebd576c53f12111b15a4e9cfaf0e to your computer and use it in GitHub Desktop.

Select an option

Save djismgaming/09e6ebd576c53f12111b15a4e9cfaf0e to your computer and use it in GitHub Desktop.
ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i "inputfile" -vf 'format=nv12,hwupload' -map 0:0 -map 0:1 -threads 2 -aspect 16:9 -y -f matroska -acodec copy -b:v 12500k -vcodec h264_vaapi "output file"
#for script
ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i "$1" -vf 'format=nv12,hwupload' -map 0:0 -map 0:1 -threads 2 -aspect 16:9 -y -f matroska -acodec copy -b:v 12500k -vcodec h264_vaapi "$1_video"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment