Skip to content

Instantly share code, notes, and snippets.

@Vigrond
Last active January 7, 2023 00:36
Show Gist options
  • Save Vigrond/300641898d10eda77e68404bb168365a to your computer and use it in GitHub Desktop.
Save Vigrond/300641898d10eda77e68404bb168365a to your computer and use it in GitHub Desktop.
ffmpeg vaapi chromecast

system info

Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz

Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy

ensure vaapi setup correctly

sudo apt-get install -y intel-media-va-driver-non-free vainfo

check codec encoding and decoding support

run vainfo

VAEntrypointVLD = decoding support

VAEntrypointEncSlice = encoding support

example ffmpeg command

ffmpeg -analyzeduration 200M -v verbose -y -hwaccel vaapi -hwaccel_output_format vaapi -i movie.mkv -t 100 -c:v:0 vp8_vaapi -vf "scale_vaapi=format=nv12" -c:a opus -strict -2 ./output.webm

chromecast notes

casting from a browser uses HTML5 webviews as both sender and reciever with an optional 3rd party stream.

https://developers.google.com/cast/docs/overview

jellyfin does not differentiate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment