Bug 10193 - When graphic acceleration enabled on AMD graphics card, vlc shows negative image with h264 videos
Summary: When graphic acceleration enabled on AMD graphics card, vlc shows negative im...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-21 08:54 CEST by Francisco Manuel Mena Villena
Modified: 2015-03-31 16:05 CEST (History)
3 users (show)

See Also:
Source RPM: vlc
CVE:
Status comment:


Attachments

Description Francisco Manuel Mena Villena 2013-05-21 08:54:53 CEST
Description of problem:

Opening h264 videos with vlc with "enable hardware acceleration" enabled having AMD graphics card (I've tried with APU E-350 and A8-3870K with privative drivers)shows negative image colours, although playback is smooth and works ok.


Version-Release number of selected component (if applicable):


How reproducible:

Enable hardware acceleration on VLC having a AMD graphics hardware. Then open a file with h264 codec and you will enjoy movie in negative colours.


Steps to Reproduce:
1. Enable hardware acceleration on VLC
2. Open a movie with h264 video compression (most of *.mkv)
3. See how colours are shown in negative.


Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-05-21 09:27:37 CEST

CC: (none) => anssi.hannula, shlomif
Component: Release (media or process) => RPM Packages
Source RPM: (none) => vlc

Comment 1 Shlomi Fish 2013-05-21 12:03:44 CEST
Hi Fransisco,

I have enabled hardware acceleration in VLC (see http://www.ghacks.net/2013/03/05/how-to-enable-gpu-accelerated-decoding-in-vlc/ ) on my laptop with an ATI Mobility Radeon⢠HD 4570 (r700) and the video-radeon / video-ati drivers, on LXDE, and I am unable to reproduce your problem. The colours/colors of the video file are fine and not inverted. I tried this FLV:

* http://www.shlomifish.org/Files/files/video/Berry%20Sacharof%20-%20Mefaneh%20Maqom.flv

( short URL - http://is.gd/148Af7 ).

And this MKV:

* http://archive.org/details/dragonsJojos-08Hi10p.mkv

Can you give instructions for obtaining an example file that reproduces this problem? Also it may be a problem with the upstream project.

Regards,

-- Shlomi Fish
Comment 2 Francisco Manuel Mena Villena 2013-05-21 21:38:49 CEST
Thanks for fast reply. This is the issue:

AVI file with hardware acceleration on:

https://docs.google.com/file/d/0B1nf6AOu_6S9Q1dCaXRYNzUwMDg/edit?usp=sharing

AVI codec properties:

https://docs.google.com/file/d/0B1nf6AOu_6S9aDBYUXMxa0Mzblk/edit?usp=sharing

MKV file with hardware acceleration on:

https://docs.google.com/file/d/0B1nf6AOu_6S9NjdrcjRkblJnT2s/edit?usp=sharing

MKV file wihout hardware acceleration:

https://docs.google.com/file/d/0B1nf6AOu_6S9MjJBU29nZS1ITFU/edit?usp=sharing

MKV file codec properties

https://docs.google.com/file/d/0B1nf6AOu_6S9UFAxSHBnR0pNRUk/edit?usp=sharing

Your last suggested video, downloaded in mp4-h264, has same issue:

https://docs.google.com/file/d/0B1nf6AOu_6S9ajJPcjFUUVEtNzg/edit?usp=sharing

hwinfo about graphics card:

**********************************************************************
15: PCI 01.0: 0300 VGA compatible controller (VGA)
  [Created at pci.319]
  Unique ID: vSkL.UrFGPeccaw0
  SysFS ID: /devices/pci0000:00/0000:00:01.0
  SysFS BusID: 0000:00:01.0
  Hardware Class: graphics card
  Model: "ATI VGA compatible controller"
  Vendor: pci 0x1002 "ATI Technologies Inc"
  Device: pci 0x9640 
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x84c8 
  Driver: "fglrx_pci"
  Driver Modules: "fglrx"
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  I/O Ports: 0xf000-0xf0ff (rw)
  Memory Range: 0xfeb00000-0xfeb3ffff (rw,non-prefetchable)
  IRQ: 56 (2648205 events)
  I/O Ports: 0x3c0-0x3df (rw)
  Module Alias: "pci:v00001002d00009640sv00001043sd000084C8bc03sc00i00"
  Driver Info #0:
    Driver Status: radeon is not active
    Driver Activation Cmd: "modprobe radeon"
  Driver Info #1:
    Driver Status: fglrx is active
    Driver Activation Cmd: "modprobe fglrx"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
*****************************************************************************

vainfo output:

[******@******* ~]$ vainfo
libva info: VA-API version 0.33.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/fglrx_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.33 (libva 1.1.1)
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0
vainfo: Supported profile and entrypoints
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD


Hope it helps
Comment 3 Shlomi Fish 2013-05-21 23:23:59 CEST
I cannot reproduce this problem on KDE 4 on Mageia Linux 3 with video-radeon and with:

wget -c http://ia601209.us.archive.org/18/items/dragonsJojos-08Hi10p.mkv/dragonsJojos-08Hi10p.mp4

I see you are using fglrx - it may be an fglrx problem, because I'm using the open source radeon driver.

Regards,

-- Shlomi Fish
Comment 4 Francisco Manuel Mena Villena 2013-05-23 12:00:47 CEST
I tried open source driver, but I couldn't make HDMI audio works. Pulseaudio said it wasn't connected (like disconnected cable warning in networks wizzards) and I use HDMI (selecting optical output makes home cinema sound, so it's not a sound server issue, looks like driver issue but that will be another bug to report). That's why I am using fglrx driver.

It's a pitty this kind of regresion, because everything worked very well on Mageia 2 with same hardware components, same software and videos. Image and sound through HDMI/Optical worked better than Windows 7/8, out-of-the-box and quite easy, but now I've got this little issue.

Another interesting thing I saw is that vaapi-fglrx package is marked as "mga2" and not "mga3", could be a driver/library connection issue?. I doubt it because I had the same fglrx driver in Mageia 2 (downloaded from AMD website) before installing Mageia 3 and worked fine. If anyone thiks it has relation, I will investigate.

Any other suggestion will be very much appreciated.
Comment 5 Marja Van Waes 2015-03-31 16:05:31 CEST
Mageia 3 changed to end-of-life (EOL) status 4 months ago.
http://blog.mageia.org/en/2014/11/26/lets-say-goodbye-to-mageia-3/ 

Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

--
The Mageia Bugsquad

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.