Announcement

Collapse
No announcement yet.

FFmpeg 3.1 Is Primed With New Features: Includes H.264/HEVC VA-API Encoding

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Originally posted by Azrael5 View Post
    Is it possible to implement ffmpeg into the browser and eventually how?
    Like video decoder fully written in JavaScript? Maybe emscripten?

    Comment


    • #12
      Originally posted by caligula View Post
      Like video decoder fully written in JavaScript?
      My CPU is very scared by this.

      Comment


      • #13
        Originally posted by grigi View Post
        Is the OpenMax encoder that is part of the Radeon OS stack any use at all? I have not been able to use it.
        I've been able to get it running, but it was a huge PITA to set up, and the benefits are not as exciting as I was hoping for. It's only really fast if the source material is already in a codec that can be decoded via OpenMAX (h264 and MPEG2 for radeon). For other codecs I had the issue that I needed to decode them in software, and I suspect (but am not certain) that the data transfer between main memory and GPU memory becomes a bottleneck in that situation. In any case, for source material that cannot be decoded by OpenMAX I get better performance with software encoding (x264)...
        If you still want to get it working, Gears on Gallium is pretty helpful for getting it running - they have config files that one can use as a template, as well as gstreamer command lines that more or less work.

        If I remember correctly, what I did to get it working was first to ensure that my kernel loads the VCE firmware (okay, that wasn't first - I realized it didn't after several hours of miraculous gstreamer errors). Then of course OpenMAX support has to be compiled in mesa. One mustn't forget to register all available omx components with omxil-bellagio. To get the gstreamer-omx plugin working (which one of course first has to install), one needs the /etc/xdg/gstomx.conf file (have a look at the files they have at gears on gallium). That should remove the blacklisting of the gst-omx plugin. Then one needs to figure how to write a gstreamer pipeline that works with gst-omx. It took me quite a while, and as I'm not at home, I sadly cannot look up how I got it working. Again, at gears on gallium they have some working gstreamer pipelines somewhere on their page...

        Comment


        • #14
          Originally posted by starshipeleven View Post

          I think there is a chromium-ffmpeg package in ubuntu repos, but it seems it is already statically-linked in chromium https://codereview.chromium.org/1141703002/

          Firefox uses ffmpeg since version 43 http://news.softpedia.com/news/firef...x-496213.shtml

          If that works or not... I don't know.
          thanks for the answer. I imagine that mozilla will upgrade that ffmpeg library for the subsequent releases, but chromium derivatives missed this libraries at least on windows.

          Comment


          • #15
            Originally posted by caligula View Post

            Like video decoder fully written in JavaScript? Maybe emscripten?
            I don't understand what you allude at.

            Comment


            • #16
              Originally posted by Gusar View Post
              In theory it's usable with gstreamer, with the gst-omx plugin to be exact.

              Beyond that, there's VAAPI encoding patches on the mesa mailing list, when those land you'll be able to use the radeon encoder with ffmpeg.
              Yes, it works with the mesa gallium VAAPI driver, note that some patches are needed before it's enabled and activated. See http://ffmpeg-users.933282.n4.nabble...td4676054.html

              Comment


              • #17
                Hello guys,

                It is working all right with Intel hardware (Haswell on my testbed) and I've written instructions to get it to work here: https://gist.github.com/Brainiarc7/9...b2931bed379219

                Comment


                • #18
                  Originally posted by zman0900 View Post
                  Anyone know what hardware will work with this va-api encoding? Just Intel?

                  You can now use VAAPI to accelerate H.264 encoding (as tested) in ffmpeg via the h264_vaapi encoder, and I've written instructions to get it to work here: https://gist.github.com/Brainiarc7/9...b2931bed379219

                  Comment

                  Working...
                  X