LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vlc displays video black and white, kaffeine with colors (https://www.linuxquestions.org/questions/linux-software-2/vlc-displays-video-black-and-white-kaffeine-with-colors-4175607038/)

JZL240I-U 05-31-2017 10:22 AM

vlc displays video black and white, kaffeine with colors
 
This is on openSUSE tumbleweed, vlc installed from packman, kaffeine from SUSE. In YAST install / remove software it says, kaffeine is a wrapper(?) for vlc. How to proceed to understand what is happening:
  • why black and white in vlc
  • how a wrapper creates colors
Any ideas appreciated :).

rtmistler 06-01-2017 07:21 AM

Kaffeine uses VLC libraries, but extends beyond VLC's capabilities somehow, I forget. Is there another media player where you can verify you can see color properly?

The only idea that comes to mind for me is to remove them both entirely and then try to re-install one at a time, seeing if you can get the problem cleared up.

mrmazda 06-02-2017 01:22 AM

Which video driver is Xorg using? TW, like most recent distros, provides an option to use neither proprietary nor ati nor amdgpu drivers with AMD gfx. In TW, there is a modeset(0) driver built into the Xorg server which normally will automatically be used if none of those three drivers are installed. Maybe give it a try.

Because Kaffeine is KDE, I'd try installing the VLC libs from default repos just to see if it makes a difference. If it does, file a bug with Packman, or at least bring it to attention on the Packman mailing list.

On my openSUSE systems I install both SMplayer and VLC (and Kaffeine not). Usually if one won't work right the other will.

JZL240I-U 06-03-2017 10:07 AM

Quote:

Originally Posted by rtmistler (Post 5717833)
...Is there another media player where you can verify you can see color properly?

I don't get this seeing color "properly"?!? Kaffeine plays videos in color (though the menus of the films can't be properly used with the mouse, since the pointer is not displayed and clicks don't work). vlc plays black-and-white with a few reddish patches where there are red parts in the picture, which is certainly not proper ;).
Quote:

Originally Posted by rtmistler (Post 5717833)
The only idea that comes to mind for me is to remove them both entirely and then try to re-install one at a time, seeing if you can get the problem cleared up.

That would mean to remove the libraries too but I don't know which those are (their names). I will try this as a last resort.

JZL240I-U 06-03-2017 10:11 AM

Quote:

Originally Posted by mrmazda (Post 5718159)
Which video driver is Xorg using? TW, like most recent distros, provides an option to use neither proprietary nor ati nor amdgpu drivers with AMD gfx. In TW, there is a modeset(0) driver built into the Xorg server which normally will automatically be used if none of those three drivers are installed...

How do I find out which driver is in use? And how can I change the option of what to run with AMD gfx?
Quote:

Originally Posted by mrmazda (Post 5718159)
Because Kaffeine is KDE, I'd try installing the VLC libs from default repos just to see if it makes a difference. If it does, file a bug with Packman, or at least bring it to attention on the Packman mailing list.

On my openSUSE systems I install both SMplayer and VLC (and Kaffeine not). Usually if one won't work right the other will.

I'll try that and come back with the results.

JZL240I-U 06-03-2017 10:22 AM

SMPlayer crashes with this error:

Code:

/usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-file=/dev/stdin --no-fs --hwdec=no --sub-auto=fuzzy --ao=pulse, --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=117440731 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --sub-ass-line-spacing=0 --sub-scale=1 --sub-font=Arial --sub-color=#ffffffff --sub-shadow-color=#ff000000 --sub-border-color=#ff000000 --sub-border-size=0.75 --sub-shadow-offset=2.5 --sub-font-size=50 --sub-bold=no --sub-italic=no --sub-codepage=ISO-8859-1 --sub-pos=100 --volume=55 --dvd-device=/dev/sr0 --cache=auto --osd-level=0 --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/matthias/Bilder/smplayer_screenshots --audio-channels=2 --audio-pitch-correction=yes --af-add=equalizer=0:0:0:0:0:0:0:0:0:0 --volume-max=110 --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-aspect}
INFO_VIDEO_FPS=${=container-fps:${=fps}}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_AUDIO_FORMAT=${=audio-codec-name}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-params/samplerate}
INFO_AUDIO_NCH=${=audio-params/channel-count}
INFO_LENGTH=${=duration:${=length}}
INFO_DEMUXER=${=current-demuxer:${=demuxer}}
INFO_SEEKABLE=${=seekable}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
INFO_STREAM_PATH=${stream-path}
 --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} VB: ${=video-bitrate:0} AB: ${=audio-bitrate:0} dvd://0

Error parsing option dvd-device (option not found)
Setting command line option '--dvd-device=/dev/sr0' failed.
Exiting... (Fatal error)

*sigh*

JZL240I-U 06-03-2017 10:40 AM

I installed from the default repos (SUSE tumbleweed) as well as from the vlc site. No changes :scratch:. What now?

mrmazda 06-03-2017 04:22 PM

Quote:

Originally Posted by JZL240I-U (Post 5718662)
How do I find out which driver is in use?

/var/log/Xorg.#.log (usually #=0) will have numerous lines repeating the driver name, mostly in sequence, such as RADEON(0) or modeset(0).
Quote:

And how can I change the option of what to run with AMD gfx?
Xorg will automatically select in preferential order according to which driver(s) is/are installed. It tries first proprietary, then amdgpu, then radeon, then modeset, then fbdev or vesa. With newer gfx devices, the content of /etc/X11/xorg_pci_ids/modesetting.ids can affect the outcome. /etc/X11/xorg.con* can be used to explicitly select a preferred driver, but usually is not necessary. IME with all recent distros, if neither proprietary nor ati nor amdgpu drivers are installed, the modeset(0) driver will automatically be used.

mrmazda 06-03-2017 04:33 PM

Quote:

Originally Posted by JZL240I-U (Post 5718675)
I installed from the default repos (SUSE tumbleweed) as well as from the vlc site. No changes :scratch:. What now?

IIRC from openSUSE mailing lists and forum, not using packages from the VLC site is recommended. I only ever use multimedia app packages from Packman or standard.

Is your problem on the laptop, the desktop or both?

If no one here comes up with a fix soon you probably need to ask on the opensuse-factory mailing list or one of the openSUSE forums. I don't have either of your gfxcards to try here.

AwesomeMachine 06-04-2017 05:16 PM

You might need to install the correct codecs.

JZL240I-U 06-05-2017 07:45 AM

@AwesomeMachine I use the packman packages. Which ones do you suggest?

@mrmazda I do use the multimedia app packages from Packman, they have this problem in the first place, as well as those from SUSE and vlc (videolan). So I'm beginning to believe that it is some driver.

This is on my PC. I have also Mint installed which plays videos with no problems, but I want to understand this.

I checked according to (your) post #8. X is loading (except fglrx) in sequence:

Code:

...
[    6.913] (==) Matched fglrx as autoconfigured driver 0
[    6.913] (==) Matched ati as autoconfigured driver 1
[    6.914] (==) Matched fglrx as autoconfigured driver 2
[    6.914] (==) Matched ati as autoconfigured driver 3
[    6.914] (==) Matched modesetting as autoconfigured driver 4
[    6.914] (==) Matched fbdev as autoconfigured driver 5
[    6.914] (==) Matched vesa as autoconfigured driver 6
[    6.914] (==) Assigned the driver to the xf86ConfigLayout
[    6.914] (II) LoadModule: "fglrx"
[    6.920] (WW) Warning, couldn't open module fglrx
[    6.920] (II) UnloadModule: "fglrx"
[    6.920] (II) Unloading fglrx
[    6.920] (EE) Failed to load module "fglrx" (module does not exist, 0)
[    6.920] (II) LoadModule: "ati"
[    6.920] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[    6.922] (II) Module ati: vendor="X.Org Foundation"
[    6.922]    compiled for 1.18.4, module version = 7.8.0
[    6.922]    Module class: X.Org Video Driver
[    6.922]    ABI class: X.Org Video Driver, version 20.0
[    6.922] (II) LoadModule: "radeon"
[    6.922] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[    6.936] (II) Module radeon: vendor="X.Org Foundation"
[    6.936]    compiled for 1.18.4, module version = 7.8.0
[    6.936]    Module class: X.Org Video Driver
[    6.936]    ABI class: X.Org Video Driver, version 20.0
[    6.936] (II) LoadModule: "modesetting"
[    6.937] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[    6.942] (II) Module modesetting: vendor="X.Org Foundation"
[    6.942]    compiled for 1.18.4, module version = 1.18.4
[    6.942]    Module class: X.Org Video Driver
[    6.942]    ABI class: X.Org Video Driver, version 20.0
[    6.942] (II) LoadModule: "fbdev"
[    6.942] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[    6.949] (II) Module fbdev: vendor="X.Org Foundation"
[    6.949]    compiled for 1.18.4, module version = 0.4.4
[    6.949]    Module class: X.Org Video Driver
[    6.949]    ABI class: X.Org Video Driver, version 20.0
[    6.950] (II) LoadModule: "vesa"
[    6.950] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[    6.955] (II) Module vesa: vendor="X.Org Foundation"
[    6.955]    compiled for 1.18.4, module version = 2.3.4
[    6.955]    Module class: X.Org Video Driver
[    6.955]    ABI class: X.Org Video Driver, version 20.0
...

So, as you can see, only fglrx fails to load. Is this a problem? And if I interpret this correctly modeset(0) is not chosen as primary driver?!?

mrmazda 06-05-2017 11:21 AM

Quote:

Originally Posted by JZL240I-U (Post 5719158)
So, as you can see, only fglrx fails to load. Is this a problem? And if I interpret this correctly modeset(0) is not chosen as primary driver?!?

No, I don't see. You didn't provide enough of the log. Xorg puts '(EE) Failed to load module "fglrx" (module does not exist, 0)' in every log when AMD/ATI gfx is used without a proprietary driver installed. The driver you see repeatedly mentioned in the vicinity of and following the strings 'onnected' is that used.

JZL240I-U 06-07-2017 11:59 AM

Sorry. Here it is:

Code:

me@PC:~> cat /var/log/Xorg.0.log | grep onnected
[    6.822] (II) RADEON(0): Output DisplayPort-0 disconnected
[    6.822] (II) RADEON(0): Output HDMI-0 disconnected
[    6.822] (II) RADEON(0): Output DVI-0 connected

Is this Radeon contained in "Mesa"?

mrmazda 06-07-2017 02:13 PM

Quote:

Originally Posted by JZL240I-U (Post 5720178)
Sorry. Here it is:

Code:

me@PC:~> cat /var/log/Xorg.0.log | grep onnected
[    6.822] (II) RADEON(0): Output DisplayPort-0 disconnected
[    6.822] (II) RADEON(0): Output HDMI-0 disconnected
[    6.822] (II) RADEON(0): Output DVI-0 connected

Is this Radeon contained in "Mesa"?

I don't understand what you're asking. RADEON(0) in Xorg.0.log is a consequence of using the gfxchip driver from the rpm xf86-video-ati. Maybe your question would be asked by a perusal of https://en.wikipedia.org/wiki/Mesa_%...er_graphics%29 or https://www.x.org/wiki/RadeonFeature/ ? AFAICT, all drivers for AMD/ATI gfxchips make use of various Mesa* rpms automatically installed along with the xorg-x11-server rpm.

JZL240I-U 06-08-2017 09:45 AM

Thanks for the Link (not that I now understand the Linux graphics stack ;) but my understanding is steadily improving -- I hope).

But would you say that everything concerning the loading of drivers is in order and as it should be? Then where should I look for the reasons of this misbehaviour?


All times are GMT -5. The time now is 08:24 AM.