| Summary: | Vlc doesn't display the video for some .mpg files | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Philippe Didier <philippedidier> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | ouaurelien, rolfpedersen |
| Version: | 8 | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | vlc-3.0.11.1-6 | CVE: | |
| Status comment: | Fix: Setting VLC video output module to XCB in some cases for nVidia Graphic cards | ||
|
Description
Philippe Didier
2020-12-22 14:53:32 CET
Hi, thanks reporting this. I do thing a dup of Bug 27377 but, @reporter, can you try this: $ vlc --avcodec-hw none NAME_OF_PROBLEMATIC_FILE Can you also provide the output of: $ inxi -G CC:
(none) =>
ouaurelien Hi I don't think it's a dup of Bug 27377 because VLC displays every mp4 avi flv etc files The black screen happens only on some mpg (not all) and there's an easy workaround for these problematic files I'm gonna try what you suggest and give you the results Hi Aurelien Firstly I forgot to give a description of the hardware : CPU :AMD Athlon 4200 Graphic card : NVidia GeForce 210 (GT 218) 2 Western Digital internal hdd 1 USB hdd 1 FireWire HDD First display : DVI Philips 201B second Display : Sony TV (HDMI) Soundcard : SoundBlaster Live ! Wacom Intuos3 Webcam : Quickcam I tried $ vlc --avcodec-hw none NAME_OF_PROBLEMATIC_FILE and it works well here's the result of inxi -G Graphics: Device-1: NVIDIA GT218 [GeForce 210] driver: nvidia v: 340.108 Display: x11 server: Mageia X.org 1.20.10 driver: nvidia,v4l resolution: 1: 1280x960 2: 1280x720~60Hz OpenGL: renderer: GeForce 210/PCIe/SSE2 v: 3.3.0 NVIDIA 340.108 NB I found an other workaround without modifying VLC settings : In Plasma settings, compositing, I choose OpenGL 3.1 instead of openGL 2.0 and there's no more problem for displaying the video !!! It seems to be rather a plasma problem than a VLC problem ! (In reply to Philippe Didier from comment #4) > Hi Aurelien > > Firstly I forgot to give a description of the hardware : > CPU :AMD Athlon 4200 > Graphic card : NVidia GeForce 210 (GT 218) > I tried > $ vlc --avcodec-hw none NAME_OF_PROBLEMATIC_FILE > and it works well So, disabling hardware-based video decode help here. But: > here's the result of inxi -G > Graphics: > Device-1: NVIDIA GT218 [GeForce 210] driver: nvidia > v: 340.108 > Display: x11 server: Mageia X.org 1.20.10 > driver: nvidia,v4l resolution: 1: 1280x960 > 2: 1280x720~60Hz > OpenGL: renderer: GeForce 210/PCIe/SSE2 > v: 3.3.0 NVIDIA 340.108 > > NB > I found an other workaround without modifying VLC settings : > In Plasma settings, compositing, I choose OpenGL 3.1 instead of openGL 2.0 > and there's no more problem for displaying the video !!! > > It seems to be rather a plasma problem than a VLC problem ! No, the culprit is a combination of all elements: Plasma rendering at OpenGL 2.0 + nvidia Graphic Card + nvidia nonfree drivers. But, this is the default UPSTREAM developers recommend. They already know that they should support more recent OpenGL API, The best setting should be: 1) driver for NVIDIA cards 2) use of OpenGL 3.1 under Plasma, in Compositor Rendering. That's why testing Plasma under a VM (virtualbox masks the issue). On real hardware, the compositor (KWin) must use latest API to render well. This is a candidate to RELEASE_NOTES_8 Keywords:
(none) =>
FOR_RELEASENOTES8
Aurelien Oudelet
2020-12-23 14:21:16 CET
Status comment:
(none) =>
fixed by setting compositor to use OpenGL 3.1 in Compositor Settings Sorry : wrong diagnostic !! I wrote this : "I found an other workaround without modifying VLC settings : In Plasma settings, compositing, I choose OpenGL 3.1 instead of openGL 2.0 and there's no more problem for displaying the video !!! It seems to be rather a plasma problem than a VLC problem !" And it's wrong!!!! When I modified the plasma settings of OpenGL, I forgot to modify back the VLC settings of the output module to automatic, I had let it to XCB... I tried again VLC turned to automatic output module and plasma to OpenGL 3.1 and there's no display of the video for the problematic mpg files.. So it'not a Plasma problem but only VLC that seems not to accept hardware acceleration for some mpg files on old nVidia graphic cards The workaround (modify the video output module of VLC from automatic to XCB) may be added in the Mageia 8 notes in case of this problem occurs... unless a solution is found Status comment:
fixed by setting compositor to use OpenGL 3.1 in Compositor Settings =>
(none) Sorry for the wrong diagnostic and the wrong solution about Plasma You may change Status comment fixed by setting VLC video output module to XCB in some cases for nVidia Graphic cards PS I didn't test in VM but with the Live CD used as a LiveCD Adding the tainted VLC tainted rpms and plugins Using OpenGL 3.1 or 2.0 doesn't change anything in fact (a contrario what I wrote in comment 4) the workaround is only in VLC video output module set to XCB I do think it is not a packaging error.
We have switched to glvnd (vendor neutral dispatcher for openGL, VDPAU is for hardware-based codec/decode support. It should use nvidia on nvidia hardware with nonfree drivers only. If using AMD device, it should use amdgpu. On Intel, it uses Intel GPU to decode, through normal drivers.
All seems to run well on my side, even with some AVCHD files from a old camcorder.
Also, I suggest to try on a real hardware and an installed version on a harddrive, not a liveCD one.
Don't forget to add tainted repository.
But, I must point out that your hardware become obsolete:
Device-1: NVIDIA GT218 [GeForce 210] driver: nvidia
> v: 340.108
> Display: x11 server: Mageia X.org 1.20.10
> driver: nvidia,v4l resolution: 1: 1280x960
> 2: 1280x720~60Hz
> OpenGL: renderer: GeForce 210/PCIe/SSE2
> v: 3.3.0 NVIDIA 340.108
We provide fixes in order to have it compile on latest Kernel but the only NVIDIA-supported drivers for Hardware decoding with latest kernel is 455.55 series and onwards.
The 340 serie is EOL.
This association of hardware + drivers + software can produce bad user experience. In this case, for these particular file, the automatic choice made by VLC is a bad solution. You, as user, must select XCB as render for the video which is beyond the scope of packaging a RPM.
It is sad that nvidia only care about latest hardware...
So, closing this, sorry, but adding a comment in status.Status comment:
(none) =>
Fix: Setting VLC video output module to XCB in some cases for nVidia Graphic cards |