Hello,
Sorry for the basic question, but I'm just starting to use Fedora 30 and cannot work out how to install the Libav and VA-API packages for GStreamer. (In pipelines I am wanting to use elements 'avdec_h264' and 'vaapidecodebin') With Ubuntu I used to use these commands:- sudo apt-get install gstreamer1.0-libav sudo apt-get install gstreamer1.0-vaapi Please can someone tell me the commands to achieve the same in Fedora 30? Thanks, Daniel Vernon -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le lun. 9 sept. 2019 07 h 56, Daniel Vernon <[hidden email]> a écrit : Hello, Fedora does not ship this one. You can use repository from rpmfusion.org, the package name is the gstreamer1-libav. sudo apt-get install gstreamer1.0-vaapi This one is named gstreamer1-vaapi sudo dnf install gstreamer1-vaapi Make sure the lower level is right by running vainfo, that will list driver and functions (codec and vpp) available for your hardware.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Nicolas,
Thanks for the reply. The command "sudo dnf install gstreamer1-vaapi" worked fine, but for gstreamer1-libav I kept getting "Error: Unable to find a match". I then found page https://rpmfusion.org/Configuration <https://rpmfusion.org/Configuration> and installed both "RPM Fusion free for Fedora 30" and "RPM Fusion nonfree for Fedora 30". After that the install for gstreamer1-libav appeared to work. Unfortunately I think there's still something missing, because I get vainfo: command not found. After more searching I've also installed these:- gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-plugins-good gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-nonfree But when I try running vainfo I still get vainfo: command not found. And when I try gst-launch commands, it still says no element "avdec_h264" or "vaapidecodebin" I just wondered if you can think of anything else that could be missing? Thanks, Daniel Vernon -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
You need to install the libva-utils package to get vainfo
For gstremaer-libav you should see its elements running gst-inspect-1.0 For further guidance regarding gstreamer-vaapi (gst-libav is a very different beast) you can check https://blogs.igalia.com/vjaquez/2018/03/28/gstreamer-va-api-troubleshooting/ vmjl On Mon, 09 Sep 2019 at 09:43, Daniel Vernon wrote: > Hi Nicolas, > > Thanks for the reply. > > The command "sudo dnf install gstreamer1-vaapi" worked fine, but for > gstreamer1-libav I kept getting "Error: Unable to find a match". > > I then found page https://rpmfusion.org/Configuration > <https://rpmfusion.org/Configuration> and installed both "RPM Fusion free > for Fedora 30" and "RPM Fusion nonfree for Fedora 30". After that the > install for gstreamer1-libav appeared to work. > > Unfortunately I think there's still something missing, because I get vainfo: > command not found. After more searching I've also installed these:- > > gstreamer1-plugins-bad-freeworld > gstreamer1-plugins-ugly > gstreamer1-plugins-good > gstreamer-plugins-bad-nonfree > gstreamer1-plugins-bad-nonfree > > But when I try running vainfo I still get vainfo: command not found. And > when I try gst-launch commands, it still says no element "avdec_h264" or > "vaapidecodebin" > > I just wondered if you can think of anything else that could be missing? > > Thanks, > > Daniel Vernon > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
Thanks for the reply. I followed your instructions (installed "libva-utils" and also "libva-intel-driver") and now vainfo is working and giving sensible output (copied below), so a step in the right direction. Unfortunately though I still have no "avdec_h264" or "vaapidecodebin":- [synx@localhost /]$ gst-inspect-1.0 avdec_h264 No such element or plugin 'avdec_h264' [synx@localhost /]$ gst-inspect-1.0 vaapidecodebin No such element or plugin 'vaapidecodebin' I then tried to check that the packages for those are installed:- [synx@localhost /]$ sudo dnf install gstreamer1-libav Last metadata expiration check: 0:00:18 ago on Mon 09 Sep 2019 22:53:46 BST. Package gstreamer1-libav-1.16.0-1.fc30.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! [synx@localhost /]$ sudo dnf install gstreamer1-vaapi Last metadata expiration check: 0:00:48 ago on Mon 09 Sep 2019 22:53:46 BST. Package gstreamer1-vaapi-1.16.0-1.fc30.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! - Both packages appear to be installed already. Please can anyone tell me what else could be missing or wrong with my system? Thanks, Daniel Vernon [synx@localhost /]$ vainfo libva info: VA-API version 1.4.1 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib64/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_4 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.4 (libva 2.4.0) vainfo: Driver version: Intel i965 driver for Intel(R) Broxton - 2.3.0 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264High : VAEntrypointEncSliceLP VAProfileH264MultiviewHigh : VAEntrypointVLD VAProfileH264MultiviewHigh : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileH264StereoHigh : VAEntrypointEncSlice VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileVP8Version0_3 : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello,
Can anyone please help with this problem? - Running gst-inspect-1.0 for "avdec_h264" or "vaapidecodebin" gives "No such element or plugin", even though the packages (gstreamer1-libav and gstreamer1-vaapi) are installed. Thanks, Daniel Vernon -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le mar. 10 sept. 2019 09 h 25, Daniel Vernon <[hidden email]> a écrit : Hello, Maybe a stalled cache ? But I don't think fedora is affected by this. Remove any GStreamer file in ~/.cache . Then check that /usr/lib64/gstreamer-1.0/ contains the libgstlibav.so and libgstvaapi.so plugins. Check that inspecting these files works properly.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello,
Thank you all for the help. I have now got GStreamer VA-API working on this Fedora system (currently just with a camera outputting H264 Main profile - I will look at our H264 Baseline problem again later). I think I had previously got my system into a mess, so first of all I re-installed Fedora from scratch. Here are the full steps I took, in case this is useful for anyone else:- 1. Install Fedora 30 from USB drive. 2. In browser (Firefox) go to https://rpmfusion.org/Configuration. Install "RPM Fusion free for Fedora 30" and "RPM Fusion nonfree for Fedora 30." 3. Open a terminal and run these commands:- sudo dnf update (This can take a long time to complete) sudo dnf upgrade -y (This may also take some time) sudo dnf config-manager --set-enabled rpmfusion-free rpmfusion-nonfree sudo dnf install gstreamer1-libav sudo dnf install gstreamer1-vaapi sudo dnf install libva-utils (Required for "vainfo" command) sudo dnf install libva-intel-driver (Required for "gst-inspect-1.0 vaapidecodebin" to work) Thanks, Daniel Vernon -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |