Opened 5 years ago

Last modified 7 months ago

#1009 open enhancement

XvBA - AMD Hardware acceleration

Reported by: freespacer Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: xvba
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

It would be nice if ffmpeg supports XvBA hardware acceleration because VA-API/XvBA fell into an unmaintained modus.

More Information about the hardware acceleration interface:
http://en.wikipedia.org/wiki/X-Video_Bitstream_Acceleration

XvBA SDK:
http://developer.amd.com/zones/opensource/Pages/default.aspx

An another project implements the XvBA interface:
http://www.phoronix.com/scan.php?page=news_item&px=MTAyODU

Attachments (1)

ffmpeg-1.0.4-xvba_support.patch (33.4 KB) - added by ryszardzonk 4 years ago.
ffmpeg-1.0.4-xvba_support.patch

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords xvba added
  • Priority changed from normal to wish
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:2 Changed 4 years ago by douglas

It looks like this works has already been performed in a fork:

Initial commit:
https://github.com/FernetMenta/xbmc/commit/b0ec4197be70d7d8d3d7dce2f8020f4aae62fb49#lib/ffmpeg

Level 41 bugfix:
https://github.com/FernetMenta/xbmc/commit/c3ea86a0de5ffd440ca9f3651409bed8ebef1e98#lib/ffmpeg

Any chance that these will make it into mainline any time soon?

comment:3 Changed 4 years ago by cehoyos

The chances are higher if a patch gets posted on ffmpeg-devel, ideally by a developer.
At least two hunks look like show-stoppers to me: The change to pixfmt.h breaks API and I don't think an XBMC developer worked on xvmc (in 2011).

Changed 4 years ago by ryszardzonk

ffmpeg-1.0.4-xvba_support.patch

comment:4 Changed 4 years ago by ryszardzonk

I am not a developer however I made the best effort I could porting the changes in the XBMC directly to the FFMPEG. It definetly misses something as after the configure process finishes the xvba_hwaccel options do not appear in the screen as enabled even when all appropriate parts seem to install just fine.

I have also problem with getting x264 content to work as XBMC compiled with external FFMPEG brings me only black screen

any review/hits/upgrades are welcome

PS The parts of the patch which are resposible for adding new files in libavcodec directory I copied directly from the https://github.com/FernetMenta/xbmc git tree as of 24/02/2013 so should be in the most recent version available

Last edited 4 years ago by ryszardzonk (previous) (diff)

comment:5 Changed 4 years ago by cehoyos

(As explained, the change to pixfmt.h is not acceptable as-is because it changes API, move the new entry to the end of the list.)

Does the patch apply to current git head of FFmpeg? If not, please update the patch.
In any case, please send patches to ffmpeg-devel, they receive much more attention there.

comment:6 Changed 4 years ago by cehoyos

Additionally, please use tools/patcheck, the current patch has some indentation problems (should be four spaces), patcheck should be able to show them.

comment:7 Changed 7 months ago by richardpl

Is this still relevant?

Note: See TracTickets for help on using tickets.