lateng.blogg.se

Install ffmpeg ubuntu 18
Install ffmpeg ubuntu 18








install ffmpeg ubuntu 18
  1. #Install ffmpeg ubuntu 18 install
  2. #Install ffmpeg ubuntu 18 driver
  3. #Install ffmpeg ubuntu 18 full
  4. #Install ffmpeg ubuntu 18 software

Install the ffmpeg command-line tool: $ sudo apt install -f ffmpeg.ts extension are also playable with the same hardware acceleration after a few extra steps: See the Future Roadmap below where we will try to fix those issues.

#Install ffmpeg ubuntu 18 software

VLC, Mplayer, Google Chrome and Firefox for example, will only use software decoding (much higher CPU) since they use FFmpeg directly rather than GStreamer. Other video player apps won't work anywhere near as efficiently. With Gnome Shell on Wayland you might need to force it: $ env -uDISPLAY mpv -hwdec -opengl-backend=wayland myvideo.mp4 MPV can also work fully accelerated on Wayland, but again it doesn't work automatically.

install ffmpeg ubuntu 18

It is known to be implemented and working properly in mpv only. The reason why mpv is recommended over other FFmpeg-based players is because FFmpeg hardware acceleration support is not automatically integrated and has to be implemented per application. Play your video with mpv hardware acceleration turned on (it's not turned on by default!): $ mpv -hwdec=vaapi myvideo.mp4 or using autodetection: $ mpv -hwdec myvideo.mp4

  • Install the missing packages: $ sudo apt install mpv.
  • You can also use totem to play videos accelerated, but compared to gst-play-1.0 or mpv it is more power hungry, less smooth and corrupt: $ env GST_GL_WINDOW=wayland totem myvideo.mp4 Play your video using gst-play-1.0 for the best performance: $ gst-play-1.0 myvideo.mp4 or if you are using a Gnome Shell Wayland session then the required syntax is: $ env GST_GL_WINDOW=wayland gst-play-1.0 -videosink glimagesink myvideo.mp4
  • Install the missing packages: $ sudo apt install gstreamer1.0-vaapi gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad.
  • Option 1: Accelerated playback using GStreamer It's not yet clear why, but you might need to reboot before the best performance is achievable.

    #Install ffmpeg ubuntu 18 full

  • Check that acceleration is installed and supported: $ vainfo You should see a list of video codec profiles that your system is capable of playing with full hardware acceleration.
  • #Install ffmpeg ubuntu 18 driver

  • Install the Intel acceleration driver and tools: $ sudo apt install vainfo i965-va-driver.
  • That is unless you're willing to use some ugly workarounds outlined below. Just don't use GNOME on Wayland because it's not yet fully working. This means either Unity 7 or GNOME is OK. Preferably you're using X and not Wayland.

    install ffmpeg ubuntu 18

    You may find that 17.10 or 17.04 is required in order to get a current acceleration driver that supports your hardware. If you need web browser video, or MKV files for example, then you should look at the Future Roadmap instead. What "works" well is limited to a couple of particular video players. Unfortunately we cannot recommend gnome-mpv right now. However totem has a few performance problems that are still yet to be fixed so for smoother playback and lower power usage we recommend mpv instead, which in Ubuntu 17.10 and later is configured to provide working hardware acceleration out-of-the-box: $ sudo apt install mpv You can verify this by installing the vainfo tool: $ sudo apt install vainfo You now have working hardware accelerated video playback in totem ("Videos" app) only. If you already have Ubuntu installed or failed to get third-party software installed because you weren't connected to the internet during setup then all you need to do to catch up is: $ sudo apt install ubuntu-restricted-addons.Assuming you have internet access while installing Ubuntu then simply ticking the "Install third-party software" option will install most of what you need. If you are installing Ubuntu from scratch, make sure you connect to wifi/network during the setup.Ubuntu 17.10 (beta 2) introduces out-of-the box support for video acceleration that's much simpler than previous Ubuntu releases. A working solution should play the video and decrease your CPU usage significantly. For example, in testing these instructions a properly configured Haswell desktop uses only 3% CPU to play 4K 60FPS H.264 video.Īlternate approaches do exist, but those have been observed to increase rather than decrease CPU usage when compared to the default software decoders. If it's much more than that then something has gone wrong. If it's working then you should be able to play modern 4K or full HD videos with around 20% CPU usage or less on a laptop and 10% or less on a desktop. It's important to know the difference between working and not working. This document aims to get you working efficient video playback on Ubuntu, as simply as possible, as well as outlining future plans. There's a lot of complicated stuff written on this topic. Note this document covers Intel CPU/GPUs only. Hardware-Accelerated Video Playback on Intel CPUs in Ubuntu










    Install ffmpeg ubuntu 18