Bug 289860 - Movies playing in gwenview are the wrong colours
Summary: Movies playing in gwenview are the wrong colours
Status: RESOLVED DUPLICATE of bug 272342
Alias: None
Product: phonon-backend-gstreamer
Classification: Unmaintained
Component: general (show other bugs)
Version: 4.5.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-26 14:35 UTC by Darin McBride
Modified: 2014-05-24 13:48 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
currupted video (776.53 KB, image/png)
2012-01-28 19:06 UTC, Diego
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darin McBride 2011-12-26 14:35:18 UTC
Version:           unspecified
OS:                Linux

Using kde 4.7.95, if I try to play movies made with my digital camera, all the reds become purple (Santa's costume is NOT purple, I'm sure of it!).  However, if I play the same movies with kmplayer, dragon, or vlc, they appear fine.  Well, as fine as they can, given my (lack of) talent in movie-making, anyway.

The smallest movie I have that exhibits this problem is about 1.1MB - if that'd help, I can upload it.  It was taken by accident anyway, and has only about one second of Santa, nothing else.

Reproducible: Always

Steps to Reproduce:
Select a movie, hit enter

Actual Results:  
Santa wearing a purple outfit.

Expected Results:  
Santa wearing a red outfit.

OS: Linux (x86_64) release 3.0.6-gentoo
Compiler: x86_64-pc-linux-gnu-gcc
Comment 1 Aurelien Gateau 2011-12-27 18:29:01 UTC
I can confirm this bug (and the color of Santa costume ;)). I think it is caused by the fact that Gwenview now embeds the Phonon::VideoWidget in a QGraphicsView. 

If I use the Kubuntu GStreamer backend (4:4.7.0really4.5.1-1ubuntu3) I can reproduce the bug.

If I build GStreamer backend myself, and use Phonon GIT, I get the correct color, but the aspect ratio is ignored: the video is square.
Comment 2 Darin McBride 2011-12-28 00:05:15 UTC
For the record, the only phonon backend I have compiled (Gentoo) is GStreamer, also 4.5.1.
Comment 3 Myriam Schweingruber 2011-12-28 14:43:46 UTC
Changing product.
Comment 4 Diego 2012-01-28 19:06:56 UTC
Created attachment 68281 [details]
currupted video

With phonon-vlc the video is totally corrupt and gwenview crashes
Comment 5 Diego 2012-01-28 19:07:43 UTC
(In reply to comment #4)
> Created an attachment (id=68281) [details]
> currupted video
> 
> With phonon-vlc the video is totally corrupt and gwenview crashes

sorry, phonon-vlc-0.4.1-1
Comment 6 Harald Sitter 2012-01-29 22:23:20 UTC
pgst implicitly switches to software rendering using qimage, which might explain the aspect bug, separate report for that would be cool.
The color issue is resolved in master.

pvlc also tries to do this (implicity ftw! -.-) but apparently fails to negotiate a video frame format that it then can use with qimage. A report for this would also be cool. Also this will only work somewhat sensibly with VLC 1.2 as 1.1 does not provide appropriate API to do what would need to be (implicitly) translated from a XV overlay rendering to QImage based software rendering whilst having the same frontend API.

*** This bug has been marked as a duplicate of bug 272342 ***
Comment 7 Pivert 2014-05-24 13:48:05 UTC
Same problem with Gwenview 4.13.0 (Kubuntu 14.04 LTS).
Installing the phonon-backend-vlc:i386 did fix the problem. (Not sure why it automatically installs the i386 version on my 64bits installation, but it immediately worked with the appropriate colors).

Regards,