This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Thumbnail Generator Fails with Fedora 33 using mpv

Problems, bugs, suggestions... anything related to SMPlayer.

Thumbnail Generator Fails with Fedora 33 using mpv

Postby Lacrocivious » Sun Dec 20, 2020 6:21 am

Start smplayer, choose Video/Thumbnail Generator, choose options, click generate. One of two failure modes then occur.
First failure mode: dialog complaining 'The file /tmp/smplayer_preview/00000001.jpg doesn't exist. (It does, created manually). Or it says that file 'can't be loaded'.
Second failure mode: A small dialog with titlebar 'Thutor' appears briefly, followed by the Plasmashell 'oops' showing a mpv crash.

This problem started appearing on five different systems immediately after upgrading to Fedora 33 (from, variously, F30, F31, F32 one version at a time). On all five systems the thumbnail generator worked fine on F30 through F32. It still works on an up-to-date ubuntu 20.04.1 LTS.
__________________________

[20-12-19-15:28] 20<Lacrocivious>30 I use the Thumbnail Generator in smplayer with mpv backend extensively. This worked very well until I upgraded five different systems variously from Fedora 30, 31, and 32 to 33. Now it is broken on all five F33 systems but still works on an up-to-date Ubuuntu 20.04.1 LTS system. Is this a known issue? I've not found anything from DDG searches
[20-12-19-15:29] 20<Lacrocivious>30 I learned in #mpv that Fedora does not package mpv at all, so I must have gotten mpv from rpmfusion. Might the package maintainer for mpv for rpmfusion be lurking about?
[20-12-19-15:38] 19<leigh123linux> Lacrocivious: mpv doesn't do thumbnails
[20-12-19-15:40] 20<Lacrocivious>30 leigh123linux: Ah, thanks, that is useful information. Thumbnails are coming then from ffmpeg?
[20-12-19-15:40] 18<28leigh123linux18> Maybe smplayer was broken by my recent update to mpv-0.33.0 update
[20-12-19-15:41] 19<leigh123linux> Lacrocivious: Try installing ffmpegthumbnailer
[20-12-19-15:41] 20<Lacrocivious>30 I attempted ABRT report but eventually got: Retrace server is unable to process package 'mpv-0.33.0-1.fc33.x86_64'
[20-12-19-15:41] 20<Lacrocivious>30 ffmpegthumbnailer is installed
[20-12-19-15:42] 20<Lacrocivious>30 It may or may not have been updated in the (4 to 5 thousand) packages upgraded during F3x to F33
[20-12-19-15:44] 19<leigh123linux> Lacrocivious: What filemanager is failing to show thumbnails
[20-12-19-15:44] 20<Lacrocivious>30 On one sysstem kffmpegthumbnailer is also installed but this appears to make no difference. On the other systems only ffmpegthumbnailer is installed
[20-12-19-15:44] 20<Lacrocivious>30 Dolphin is showing thumbnails fine. It is only generating thumbnails from within smplayer that stopped working with F33
[20-12-19-15:46] 20<Lacrocivious>30 Unfortunately I am not a coder and I am thus uncertain about what tree to be barking up at ;-) May very well not be anything to do with mpv
[20-12-19-15:53] 20<Lacrocivious>30 leigh123linux: By the way I am honored to speak with you. I have certainly benefitted from your myriad contributions to several projects
[20-12-19-16:18] 19<leigh123linux> Lacrocivious: I can reproduce the smplayer thumbnail generator issue with mpv, it works fine with mplayer
[20-12-19-16:19] 19<leigh123linux> Lacrocivious: Can you file an issue against smplayer, maybe it needs changes for newer mpv
Twice as crazy as I would be, if I was half as crazy as I am.
User avatar
Lacrocivious
 
Posts: 10
Joined: Sun Dec 20, 2020 5:54 am

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby rvm » Sun Dec 20, 2020 10:13 am

What version of smplayer are you using?

I'm not using Fedora 33, but smplayer 20.6.0 with mpv 0.33 works fine in my computer with Ubuntu.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby Lacrocivious » Sun Dec 20, 2020 11:29 pm

Thank you for your quick response!

Each of the five Fedora 33 systems has the same smplayer and mpv packages. They all run under the KDE Plasma 5 desktop environment. The first uname -a line below is from the most recently built system, a Ryzen 7 3700X with Radeon RX 5600 XT. These five systems differ in CPU and GPU between AMD, Intel, and nVidia:

SMPlayer Version: 20.6.0 (revision 9418)
mpv-0.33.0-1.fc33.x86_64
mpv-libs-0.33.0-1.fc33.x86_64
mpv-libs-devel-0.33.0-1.fc33.x86_64
ffmpegthumbnailer-2.2.2-6.fc33.x86_64
Linux kahaba.cos.lan 5.9.13-200.fc33.x86_64 #1 SMP Tue Dec 8 15:42:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

All five systems exhibit the Thumbnail Generator failure with Fedora 33, and all five worked fine with it through Fedora 32.

A single system that has not been upgraded to Fedora 33 -- an old hp530 notebook -- is running Fedora 32 under KDE Plasma desktop environment, and Thumbnail Generator works fine on it:

smplayer-20.6.0-3.fc32.x86_64
mpv-0.32.0-6.fc32.x86_64
ffmpegthumbnailer-2.2.2-3.fc32.x86_64
Linux meretrix.cos.lan 5.8.15-201.fc32.x86_64 #1 SMP Thu Oct 15 15:56:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

My Ubuntu system also works fine with the Thumbnail Generator. It is an old Intel Core2 Duo E4500 with AMD Radeon HD 4830, under the GNOME desktop environment:

smplayer/focal,now 19.10.2~ds0-1build1 amd64 [installed]
mpv/focal,now 0.32.0-1ubuntu1 amd64 [installed,automatic]
Linux sharmuta 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

My Raspberry Pi 4 Model B also works fine with the Thumbnail Generator:

smplayer/stable,now 18.10.0~ds0-1+b2 armhf [installed]
mpv/stable,now 0.29.1-1 armhf [installed,automatic]
Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
Twice as crazy as I would be, if I was half as crazy as I am.
User avatar
Lacrocivious
 
Posts: 10
Joined: Sun Dec 20, 2020 5:54 am

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby rvm » Mon Dec 21, 2020 7:18 am

Please send the smplayer log (menu View) after running the thumbnail generator. Maybe it could give me a clue about the cause of the problem.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby Lacrocivious » Mon Dec 21, 2020 2:09 pm

The SMPlayer log is blank. However, the MPlayer/mvp log shows:

/usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-ac637 --msg-level=ffmpeg/demuxer=error --no-fs --hwdec=auto --sub-auto=fuzzy --audio-device=pulse/alsa_output.pci-0000_11_00.4.analog-surround-51 --ao=pulse, --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=100663313 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1.2 --osd-bar-align-y=0.6 --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-margin-y=8 --sub-margin-x=20 --sub-codepage=ISO-8859-1 --vid=1 --sub-pos=100 --volume=56 --cache=auto --start=7 --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/humpher/Pictures/smplayer_screenshots --audio-pitch-correction=yes --volume-max=110 --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-params/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}
--audio-client-name=SMPlayer --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} /pub/kahaba04/youtube-downloads/Former President Barack Obama's 2020 Democratic National Convention Speech _ FULL-YIfwrKHkYRA.mp4

(+) Video --vid=1 (*) (h264 1280x720 30.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
Cannot load libcuda.so.1
Failed to open VDPAU backend libvdpau_radeonsi.so: cannot open shared object file: No such file or directory
Using hardware decoding (vaapi).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1280x720 vaapi[nv12]
INFO_VIDEO_DSIZE=1280x720
MPV_VERSION=mpv 0.33.0
INFO_VIDEO_WIDTH=1280
INFO_VIDEO_HEIGHT=720
INFO_VIDEO_ASPECT=1.777778
INFO_VIDEO_FPS=30.000000
INFO_VIDEO_FORMAT=h264
INFO_VIDEO_CODEC=h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
INFO_AUDIO_FORMAT=aac
INFO_AUDIO_CODEC=aac (AAC (Advanced Audio Coding))
INFO_AUDIO_RATE=44100
INFO_AUDIO_NCH=2
INFO_LENGTH=1157.283000
INFO_DEMUXER=lavf
INFO_SEEKABLE=yes
INFO_TITLES=
INFO_CHAPTERS=0
INFO_TRACKS_COUNT=2
METADATA_TITLE=
METADATA_ARTIST=
METADATA_ALBUM=
METADATA_GENRE=
METADATA_DATE=
METADATA_TRACK=
METADATA_COPYRIGHT=
INFO_MEDIA_TITLE=Former President Barack Obama's 2020 Democratic National Convention Speech _ FULL-YIfwrKHkYRA.mp4
INFO_STREAM_PATH=/pub/kahaba04/youtube-downloads/Former President Barack Obama's 2020 Democratic National Convention Speech _ FULL-YIfwrKHkYRA.mp4
INFO_TRACK_0: video 1 '' '' yes
INFO_TRACK_1: audio 1 '' '' yes
Twice as crazy as I would be, if I was half as crazy as I am.
User avatar
Lacrocivious
 
Posts: 10
Joined: Sun Dec 20, 2020 5:54 am

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby rvm » Tue Dec 22, 2020 7:20 am

I'm afraid that log doesn't provide any information related to the problem.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby Lacrocivious » Tue Dec 22, 2020 5:27 pm

Precisely as I suspected.

I have tried repeatedly to bug-report this with Fedora's 'Problem Reporting' ABRT, but after reporting fairly early with 'Retrace server is unable to process package 'mpv-0.33.0-1.fc33.x86_64'.', and offering to create a stack trace locally, after much downloading of debuginfo packages, it fails with:

--- Running report_Bugzilla ---
Logging into Bugzilla at https://bugzilla.redhat.com
Checking for duplicates
Creating a new bug
fatal: RPC failed at server. There is no component named 'mpv' in the 'Fedora' product.
('report_Bugzilla' exited with 1)

<sigh>.

So I am unable to report the bug at present, because I am too ignorant to know how to do a gdb backtrace that calls another program from within the program I told gdb to run. If you have a link that tells me how to do this -- I am sure there must be a way to have gdb include child programs -- I would appreciate it.

Thank you very much for your attention to this problem to date.
Twice as crazy as I would be, if I was half as crazy as I am.
User avatar
Lacrocivious
 
Posts: 10
Joined: Sun Dec 20, 2020 5:54 am

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby rvm » Wed Dec 23, 2020 8:13 am

Be sure the "Log SMPlayer output" is enabled in preferences -> advanced -> logs.
Maybe with a log I could figure out what is going on.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby Lacrocivious » Wed Dec 23, 2020 9:23 pm

This is maddening.

I did not have all the logging features enabled under 'Advanced' but they are all enabled now.
When I play a video and select Thumbnail Generator, the failure happens as before.
The new file ~/Documents/smplayer-logs/mpv-MPlayer.log is created.
The View/SMPlayer log is still *blank*!

So. Whatever is keeping Thumbnail Generator from working under Fedora 33 on five widely different systems is preventing the smplayer.log from being created, ABRT won't let me file a bugzilla report because there is no mpv package in Fedora (that means it has to be from rpmfusion), the ABRT crash text is not selectable for copy/paste, and the cause of this failure remains mysterious. Plus I don't know how to do a gdb trace for a program that calls child programs, and not being a coder, I am too stupid to figure out how.

Snakes on everything.

Thanks again for your help, and I suppose I will just have to wait until the problem is mysteriously fixed. Meanwhile, I will have to create all the thumbnails using the Ubuntu system, where Thumbnail Generator still works as intended.
Twice as crazy as I would be, if I was half as crazy as I am.
User avatar
Lacrocivious
 
Posts: 10
Joined: Sun Dec 20, 2020 5:54 am

Re: Thumbnail Generator Fails with Fedora 33 using mpv

Postby rvm » Thu Dec 24, 2020 7:39 am

Is the directory /tmp writable?

smplayer extracts the pictures from the video and temporary stores them in /tmp.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Next

Return to General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 16 guests

cron