Skip to content

Instantly share code, notes, and snippets.

@kkartaltepe
Last active September 16, 2018 22:12
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 kkartaltepe/401b79556950a123f22f09aaec9a8fee to your computer and use it in GitHub Desktop.
Save kkartaltepe/401b79556950a123f22f09aaec9a8fee to your computer and use it in GitHub Desktop.
ffmpeg vaapi profile high test. use -profile 77 for Main
STREAM_KEY="Your Stream Key Here"
INPUT="Some file, maybe https://media.xiph.org/video/derf/webm/Johnny_1280x720_60.webm"
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi \
-i "$INPUT" -vf 'fps=30,scale_vaapi=w=640:h=-2:format=nv12' -c:v h264_vaapi \
-b:v 1M -maxrate 1M -profile 100 -bf 0 \
"rtmp://live-dfw.twitch.tv/app/$STREAM_KEY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment