Last active
October 26, 2020 17:33
-
-
Save mariotpc/f3ed8017a117af2240db61a8ed5c456b to your computer and use it in GitHub Desktop.
Matroska - VAAPI H265 with AC3 Audio and VAAPI H264 with AAC Audio encoders
This file contains hidden or 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
gst-launch-1.0 ximagesrc use-damage=0 xid=$(xwininfo -tree | egrep 'Window id:' | cut -d ' ' -f4) ! queue ! videoconvert ! video/x-raw, format=I420 ! vaapih265enc ! matroskamux name=mux ! filesink location=/mnt/ramdisk/reunion2610.mkv pulsesrc device=alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1.monitor ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=2 ! avenc_ac3 bitrate=32000 ! mux. | |
gst-launch-1.0 ximagesrc use-damage=0 xid=$(xwininfo -tree | egrep 'Window id:' | cut -d ' ' -f4) ! queue ! videoconvert ! video/x-raw, format=I420 ! vaapih264enc ! matroskamux name=mux ! filesink location=/mnt/ramdisk/reunion2610.mkv pulsesrc device=alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1.monitor ! queue max-size-time=5000000000 max-size-buffers=10000 ! audio/x-raw, rate=32000, channels=2 ! avenc_aac bitrate=32000 ! mux. | |
First: | |
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
then: | |
sudo dnf install libva-intel-driver ffmpeg | |
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin | |
Credits to: seeker_moc | |
https://www.reddit.com/r/Fedora/comments/hhflig/vaapi_support_on_fedora/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment