Smplayer failing to play mp4 videos

hi, i can’t get smplayer to play videos even with all the codecs installed on fedora 38 kde plasma…here’s what it gives me…thank you

/usr/bin/mpv --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-237b --msg-level=ffmpeg/demuxer=error --video-rotate=no --no-config --no-fs --hwdec=no --sub-auto=fuzzy --vo=xv,x11, --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=5 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1 --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 --sub-pos=100 --volume=55 --cache=auto --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/b/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_DEMUX_ROTATION=${=track-list/0/demux-rotation}

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} /home/b/Videos/masonsexposed (2022).mp4

(+) Video --vid=1 (*) (h264 854x480 23.976fps)

(+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)

File tags:

Comment: encoded by Rumble.com

[vo/xv/x11] X11 error: BadDrawable (invalid Pixmap or Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 5, serial: 12

[vo/xv/x11] Error code: 9, request code: e, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 5, serial: 13

[vo/xv/x11] Error code: 3, request code: 28, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 5, serial: 14

[vo/xv/x11] Error code: 3, request code: 2, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 5, serial: 18

[vo/xv/x11] Error code: 3, request code: 1, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 1b

[vo/xv/x11] Error code: 3, request code: 12, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 1e

[vo/xv/x11] Error code: 3, request code: 92, minor code: 3

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 20

[vo/xv/x11] Error code: 3, request code: 12, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 21

[vo/xv/x11] Error code: 3, request code: 12, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 23

[vo/xv/x11] Error code: 3, request code: 12, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 24

[vo/xv/x11] Error code: 3, request code: 12, minor code: 0

[vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO.

AO: [pipewire] 48000Hz stereo 2ch floatp

VO: [xv] 854x480 => 854x480 yuv420p

[vo/xv/x11] X11 error: BadDrawable (invalid Pixmap or Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 5, serial: 37

[vo/xv/x11] Error code: 9, request code: e, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 5, serial: 38

[vo/xv/x11] Error code: 3, request code: 28, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 39

[vo/xv/x11] Error code: 3, request code: c, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 3b

[vo/xv/x11] Error code: 3, request code: 12, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 3c

[vo/xv/x11] Error code: 3, request code: 2, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 3d

[vo/xv/x11] Error code: 3, request code: 2, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 3e

[vo/xv/x11] Error code: 3, request code: 3, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 40

[vo/xv/x11] Error code: 3, request code: 8, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 41

[vo/xv/x11] Error code: 3, request code: 12, minor code: 0

[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)

[vo/xv/x11] Type: 0, display: 0x7fc520044950, resourceid: 1c00002, serial: 44

[vo/xv/x11] Error code: 3, request code: 3, minor code: 0

Independent of your problem, could you please edit your main topic and mark the output while format it as pre formated text (see </> button)

1 Like

Could you please post either the actual file or a link to it that one could use to test MPV and that file.
We cannot evaluate the failure without being able to test with the same file.

I have never in all my experience seen that many options and other configs passed on a command line when attempting to play a video.
Most times the command would have been
mpv /home/b/Videos/masonsexposed\ \(2022\).mp4

1 Like

hi, it doesn’t matter which mp4 file i play none of them work on smplayer but they work on vlc and dragon…here’s another example

/usr/bin/mpv --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-f30 --msg-level=ffmpeg/demuxer=error --video-rotate=no --no-config --no-fs --hwdec=no --sub-auto=fuzzy --vo=xv,x11, --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=5 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1 --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 --sub-pos=100 --volume=55 --cache=auto --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/b/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_DEMUX_ROTATION=${=track-list/0/demux-rotation}
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} /home/b/Fedora 38.mp4

 (+) Video --vid=1 (*) (h264 1280x720 30.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
[vo/xv/x11] X11 error: BadDrawable (invalid Pixmap or Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 5, serial: 12
[vo/xv/x11] Error code: 9, request code: e, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 5, serial: 13
[vo/xv/x11] Error code: 3, request code: 28, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 5, serial: 14
[vo/xv/x11] Error code: 3, request code: 2, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 5, serial: 18
[vo/xv/x11] Error code: 3, request code: 1, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 1b
[vo/xv/x11] Error code: 3, request code: 12, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 1e
[vo/xv/x11] Error code: 3, request code: 92, minor code: 3
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 20
[vo/xv/x11] Error code: 3, request code: 12, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 21
[vo/xv/x11] Error code: 3, request code: 12, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 23
[vo/xv/x11] Error code: 3, request code: 12, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 24
[vo/xv/x11] Error code: 3, request code: 12, minor code: 0
[vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO.
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [xv] 1280x720 yuv420p
[vo/xv/x11] X11 error: BadDrawable (invalid Pixmap or Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 5, serial: 37
[vo/xv/x11] Error code: 9, request code: e, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 5, serial: 38
[vo/xv/x11] Error code: 3, request code: 28, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 39
[vo/xv/x11] Error code: 3, request code: c, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 3b
[vo/xv/x11] Error code: 3, request code: 12, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 3c
[vo/xv/x11] Error code: 3, request code: 2, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 3d
[vo/xv/x11] Error code: 3, request code: 2, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 3e
[vo/xv/x11] Error code: 3, request code: 3, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 40
[vo/xv/x11] Error code: 3, request code: 8, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 41
[vo/xv/x11] Error code: 3, request code: 12, minor code: 0
[vo/xv/x11] X11 error: BadWindow (invalid Window parameter)
[vo/xv/x11] Type: 0, display: 0x7f1904044950, resourceid: 1c00002, serial: 44
[vo/xv/x11] Error code: 3, request code: 3, minor code: 0

video link:

https://anonfiles.com/i6v8Cbs5z4/Fedora_38_mp4

You may want to try: env QT_QPA_PLATFORM=xcb smplayer filename

3 Likes

ok…i’ll give it a try. thank you for the help.

that works…is there a way to fix it or do i have to run it in terminal like that?

You can modify the desktop file by copying it to ~/.local/share/applications

You’ll want to modify the Exec= line to match the terminal command

ref: Desktop entries - ArchWiki

3 Likes

thank you… i’ll wait for a update as it’s above my know-how and i don’t wanna screw anything up …do you know what is causing this to occur? bug? i’ve never had this issue with smplayer on any of the linux distros i’ve tried…

Assuming you have smplayer installed from the Fedora repos, here is a one-line command to override the desktop file with this fix:

desktop-file-install --dir="$HOME/.local/share/applications" --set-key=Exec --set-value='env QT_QPA_PLATFORM=xcb smplayer %f' /usr/share/applications/smplayer.desktop

To undo it, simply remove the local copy of the desktop file:

rm ~/.local/share/applications/smplayer.desktop

This fix makes a Qt-based application use X11 instead of Wayland. Fedora uses Wayland by default, while some other distros may still use the older X11 by default.

smplayer upstream has multiple reports about Wayland.

2 Likes

yes i have it installed from fedora repos…thank you for this fix =)