Bug 33166

Summary: VLC crashes when starting to play a random video file from $HOME/Video/
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: NEEDINFO --- QA Contact:
Severity: critical    
Priority: Normal CC: lewyssmith, lovaren, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: vlc CVE:
Status comment:
Attachments: VLC crash output
Output playing the same video with Mplayer
Proof when playing the video with Mplayer

Description Kristoffer Grundström 2024-05-02 03:11:39 CEST
Description of problem: I'm having trouble playing any file using VLC, but I can play it with mplayer (I get no Audio though) from Terminal. I've attached full backtrace of the running VLC session. I have to add that the audio is working when playing music in Firefox so this seems to be a codec issue if I'm not mistaken.

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

How reproducible: All the time.

Steps to Reproduce:
1. Install VLC.
2. Download a video from YouTube.
3. Try playing that video with VLC, the player just disappears.
Comment 1 Kristoffer Grundström 2024-05-02 03:13:26 CEST
Created attachment 14522 [details]
VLC crash output

CC: (none) => lovaren

Comment 2 Kristoffer Grundström 2024-05-02 03:16:00 CEST
Created attachment 14523 [details]
Output playing the same video with Mplayer
Comment 3 Kristoffer Grundström 2024-05-02 03:25:24 CEST
Created attachment 14524 [details]
Proof when playing the video with Mplayer
Comment 4 Kristoffer Grundström 2024-05-02 03:34:35 CEST
alsamixer shows PulseAudio on both Card and Chip at start.
However if I press F6 to select sound card default0 it shows HD-Audio Generic and Realtek ALC662 v3 as chip.

My speakers are connected to the soundcard at the back of my PC which is:

    description: Desktop Computer
    product: 10125 (LENOVO_MT_1012)
    vendor: LENOVO
    version: Lenovo H515

           *-multimedia
                description: Audio device
                product: Caicos HDMI Audio [Radeon HD 6450 / 7450/8450/8490 OEM / R5 230/235/235X OEM]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0.1
                bus info: pci@0000:01:00.1
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: driver=snd_hda_intel latency=0
                resources: irq:39 memory:fea40000-fea43fff

No, I don't use HDMI to get audio and/or picture for that matter in case anyone wonders.
Comment 5 Kristoffer Grundström 2024-05-02 03:36:49 CEST
I upgraded from a fresh installation of Mageia 9 to Cauldron by just replacing with equivalent repos for Cauldron and the upgrade went just fine, meaning no errors or hickups/stops.
Comment 6 Kristoffer Grundström 2024-05-02 03:43:24 CEST
Even though I get this when playing the same video using Totem both the audio and video works just fine:

[kristoffer@localhost Video]$ totem UBports\ Q\&A\ 139\ \[TCyMGvyF0sI\].mp4

(totem:260656): Grilo-WARNING **: 03:41:06.194: [registry] ../src/grl-registry.c:1523: Plugin 'grl-local-metadata' not available

(totem:260656): Totem-WARNING **: 03:41:06.194: Failed to load grl-local-metadata plugin: Plugin ”grl-local-metadata” is not available

(totem:260656): Grilo-CRITICAL **: 03:41:16.433: grl_log_valist: assertion 'domain' failed
Comment 7 Kristoffer Grundström 2024-05-02 03:59:11 CEST
Anything more needed logwise?
Comment 8 Lewis Smith 2024-05-03 21:33:07 CEST
We need to try this.
Can you give the U-tube URL of a video which VLC does not like?
Does it work if you watch it directly on U-tube?
How do you "Download a video from YouTube"? I have never cracked that.

CC: (none) => lewyssmith

Comment 9 Kristoffer Grundström 2024-05-05 03:15:03 CEST
(In reply to Lewis Smith from comment #8)
> We need to try this.
> Can you give the U-tube URL of a video which VLC does not like?
> Does it work if you watch it directly on U-tube?
> How do you "Download a video from YouTube"? I have never cracked that.

Yes.
Choose any video on Youtube.
Yes, it works.
Use yt-dlp which can be found in our rpm database, but to make sure you use a working version of yt-dlp you do curl https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp $HOME/.local/ && sudo chmod a+x yt-dlp.

If $HOME/.local/ is in $HOME/.bashrc already go ahead and download any clip from Youtube using:

yt-dlp -f 22 YOUTUBE URL

Replace YOUTUBE URL with the full url.
Comment 10 sturmvogel 2024-05-05 18:10:30 CEST
Unfortunately this description contains several user errors. It is not reproducible.

Quote:
to make sure you use a working version of yt-dlp you do curl...

The provided version of yt-dlp 2024.03.10 works flawlessly. No need to download from external...

Quote:
yt-dlp -f 22 YOUTUBE URL

This command is useless, as "-f 22" defines the format. The format is defined by the video itself. Not all videos on youtube provides format 22. So you fail to provide a video URL which is able to be downloaded with format 22.


The available formats can be seen via "yt-dlp --list formats"

[test@testbox ~]$ /home/test/Downloads/yt-dlp --list-formats https://www.youtube.com/watch?v=xxxxxxx
[1] 52227
[test@testbox ~]$ [youtube] Extracting URL: https://www.youtube.com/watch?v=xxxxxxxx
[youtube] RrG2s1kN3hE: Downloading webpage
[youtube] RrG2s1kN3hE: Downloading ios player API JSON
[youtube] RrG2s1kN3hE: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from android clients (got player responses for video "xxxxxxxx" instead of "yyyyyyyyy")
[youtube] xxxxxx: Downloading m3u8 information
[info] Available formats for yyyyyyy:
ID  EXT   RESOLUTION FPS CH │    FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 48x27        1    │                   mhtml │ images                                  storyboard
sb1 mhtml 80x45        1    │                   mhtml │ images                                  storyboard
sb0 mhtml 160x90       1    │                   mhtml │ images                                  storyboard
233 mp4   audio only        │                   m3u8  │ audio only          unknown             Default
234 mp4   audio only        │                   m3u8  │ audio only          unknown             Default
139 m4a   audio only      2 │  1007.02KiB   49k https │ audio only          mp4a.40.5   49k 22k low, m4a_dash
249 webm  audio only      2 │   948.10KiB   46k https │ audio only          opus        46k 48k low, webm_dash
250 webm  audio only      2 │     1.23MiB   61k https │ audio only          opus        61k 48k low, webm_dash
140 m4a   audio only      2 │     2.61MiB  130k https │ audio only          mp4a.40.2  130k 44k medium, m4a_dash
251 webm  audio only      2 │     2.47MiB  123k https │ audio only          opus       123k 48k medium, webm_dash
602 mp4   256x144     13    │ ~   1.85MiB   92k m3u8  │ vp09.00.10.08   92k video only
269 mp4   256x144     25    │ ~   3.41MiB  169k m3u8  │ avc1.4D400C    169k video only
160 mp4   256x144     25    │     1.51MiB   75k https │ avc1.4D400C     75k video only          144p, mp4_dash
603 mp4   256x144     25    │ ~   3.30MiB  164k m3u8  │ vp09.00.11.08  164k video only
278 webm  256x144     25    │     1.56MiB   77k https │ vp09.00.11.08   77k video only          144p, webm_dash
229 mp4   426x240     25    │ ~   6.23MiB  309k m3u8  │ avc1.4D4015    309k video only
133 mp4   426x240     25    │     3.09MiB  154k https │ avc1.4D4015    154k video only          240p, mp4_dash
604 mp4   426x240     25    │ ~   6.21MiB  308k m3u8  │ vp09.00.20.08  308k video only
242 webm  426x240     25    │     2.88MiB  143k https │ vp09.00.20.08  143k video only          240p, webm_dash
230 mp4   640x360     25    │ ~  14.66MiB  728k m3u8  │ avc1.4D401E    728k video only
134 mp4   640x360     25    │     5.56MiB  276k https │ avc1.4D401E    276k video only          360p, mp4_dash
18  mp4   640x360     25  2 │ ≈   8.16MiB  405k https │ avc1.42001E         mp4a.40.2       44k 360p
605 mp4   640x360     25    │ ~  13.45MiB  667k m3u8  │ vp09.00.21.08  667k video only
243 webm  640x360     25    │     6.52MiB  324k https │ vp09.00.21.08  324k video only          360p, webm_dash
231 mp4   854x480     25    │ ~  20.33MiB 1009k m3u8  │ avc1.4D401E   1009k video only
135 mp4   854x480     25    │     9.80MiB  487k https │ avc1.4D401E    487k video only          480p, mp4_dash
606 mp4   854x480     25    │ ~  23.27MiB 1155k m3u8  │ vp09.00.30.08 1155k video only
244 webm  854x480     25    │     9.54MiB  474k https │ vp09.00.30.08  474k video only          480p, webm_dash
232 mp4   1280x720    25    │ ~  50.72MiB 2517k m3u8  │ avc1.4D401F   2517k video only
136 mp4   1280x720    25    │    23.90MiB 1188k https │ avc1.4D401F   1188k video only          720p, mp4_dash
609 mp4   1280x720    25    │ ~  39.70MiB 1971k m3u8  │ vp09.00.31.08 1971k video only
247 webm  1280x720    25    │    16.28MiB  809k https │ vp09.00.31.08  809k video only          720p, webm_dash



When downloading via "yt-dlp -f 18 https://www.youtube.com/watch?v=xxxxxxx" produces a mp4 file which plays flawlessly in VLC.
Comment 11 Lewis Smith 2024-05-05 21:09:10 CEST
Thanks for the detailed check.
So '-f X' is the first field listed by '--list-formats' headed 'ID'. Obvious!
ID  EXT   RESOLUTION FPS CH │    FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR ASR MORE INFO
18  mp4   640x360     25  2 │ ≈   8.16MiB  405k https │ avc1.42001E         mp4a.40.2       44k 360p
Comment 12 Kristoffer Grundström 2024-05-05 21:27:29 CEST
(In reply to sturmvogel from comment #10)
> Unfortunately this description contains several user errors. It is not
> reproducible.
> 
> Quote:
> to make sure you use a working version of yt-dlp you do curl...
> 
> The provided version of yt-dlp 2024.03.10 works flawlessly. No need to
> download from external...
> 
No disrespect towards you, my fellow Mageian friend, but just because it works for you doesn't mean that it works for all, remember that Cauldron behaves different from Mageia 9.

Plus.......try to perform yt-dlp -U with the Mageia Cauldron package of yt-dlp too see if there's a newer release to update to and you'll get a message that it's up-to-date, but it won't update if there's a new version relesed on Github.

If you need to use newer code to confirm if the problem has been fixed upstream, you can't do that with the Mageia package even though the -U flag exist for it.
Comment 13 sturmvogel 2024-05-05 21:54:58 CEST
I did the test on MGA9 and cauldron. Both provided yt-dlp versions from Mageia and VLC work flawlessly there.


And you did miss some development discussions. It is indeed intented that you can't upgrade via yt-dlp -U inside of Mageia. So the package works as intended.
Comment 14 Lewis Smith 2024-05-05 22:03:09 CEST
(In reply to sturmvogel from comment #13)
> I did the test on MGA9 and cauldron. Both provided yt-dlp versions from
> Mageia and VLC work flawlessly there.
*and Cauldron*. Very thorough.

@Kristoffer
If you have any local videos *not* U-tubed, please try those. And different formats if possible: does your problem happen with any format, or just some?
Comment 15 Marja Van Waes 2024-06-21 17:23:00 CEST
(In reply to Lewis Smith from comment #14)
> (In reply to sturmvogel from comment #13)
> > I did the test on MGA9 and cauldron. Both provided yt-dlp versions from
> > Mageia and VLC work flawlessly there.
> *and Cauldron*. Very thorough.
> 
> @Kristoffer
> If you have any local videos *not* U-tubed, please try those. And different
> formats if possible: does your problem happen with any format, or just some?

No reply.

Changing the status to NEEDINFO

CC: (none) => marja11
Status: NEW => NEEDINFO