Last active
September 16, 2018 22:12
-
-
Save kkartaltepe/401b79556950a123f22f09aaec9a8fee to your computer and use it in GitHub Desktop.
ffmpeg vaapi profile high test. use -profile 77 for Main
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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