Closed SebastienPi closed 10 months ago
The option '-wid' is what makes the video display within SMPlayer. Without that option, the video will appear in a separate window. You can remove that option by enabling the "Run mplayer in its own window" option in Preferences -> Advanced -> MPlayer.
The option '-wid' is what makes the video display within SMPlayer. Without that option, the video will appear in a separate window. You can remove that option by enabling the "Run mplayer in its own window" option in Preferences -> Advanced -> MPlayer.
As you say, without that option, the video is in a separate window. So it is not really what I want. I prefer, of course, to have the video inside SMPlayer :).
So, it may be more a mplayer bug. This option is useful. I am not in Wayland issue (https://trac.mplayerhq.hu/ticket/2411 & https://github.com/smplayer-dev/smplayer/issues/668) as far I understand. https://forum.qt.io/topic/58920/x11-error-when-running-embedded-mplayer-in-qwidget => this one talks about bad ID. It does not seem to be my case (not sure).
Do you have also the same problem if select another video output in preferences -> general? Does it work if you use mpv instead of mplayer?
Not the sames issues:
[vdpau] Failed creating VDPAU decoder: An invalid/unsupported VdpDecoderProfile value was supplied.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Unexpected decoder output format Planar YV12
I do not have mpv yet. Will try later. I will try to recompile mplayer before because I had some hardware issues (which leads to a lot of crashed) in August/September and mplayer was compiled in September.
About winId, is there a way to check that it is the right one? I did not see any log on it. https://github.com/search?q=repo%3Asmplayer-dev%2Fsmplayer+winId&type=code => https://doc.qt.io/qt-6/qwidget.html#winId => I saw that it can change. Not sure it is revelant…
Nor mpv or recompile mplayer change anything. Log with mpv: mpv.log
Inside, I saw a vdpau error. I tried another file with another codec and got the same error with windows parameter. vdpau does not seem to be a cause.
@SebastienPi
I saw you post, I am not a Linux guy so I may not be able to help with you specific issue. But I read that you have been trying to resolve this issue for months, so I thought I should provide some general recommendations.
First, the recommended engine to use with smplayer is mpv. mplayer has not been in active development for a long while, they do release updates once in a while, but those are just to update codecs etc. mpv on the other hand is derived from mplayer code, and is being actively developed and maintained.
If you do insist on using mplayer, then start with the default smplayer profile. Everything should be on auto, especially hardware decoding needs to be auto or disabled.
If you switch to mpv, then again start with a default smplayer profile with everything on auto. For example, the hwdec vdpau that you used has been depreciated in mpv, and will give errors. Either use one of the actively developed hwdec or use auto so mpv can determine the best hwdec for your system.
Hopefully, the above steps will resolve your issue.
~Raza
Hi @Raza-0007!
I only try to resolve it recently. I do not often watch videos, so I swiched to vlc :shushing_face:.
As I said in the previous comment: I tried mpv and got the same “invalid Window parameter”. Good idea to switch to default parameter:
SMPlayer selects mpv and it works. Same thing if I switch back to mplayer. You are right, I had a bad parameter somewhere. After play a bit with the conf, it looks like it is something around vdpau. I add some issue with my graphic card and change it two months ago. Thanks!
For months, I can not use SMplayer: crash or black screen depending on the selected output driver.
Example with x11, SMplayer produces the command line, screen is black and I see planty of errors: /usr/bin/mplayer -noquiet -slave -identify -nofs -lavdopts threads=2 -sub-fuzziness 1 -vo x11, -zoom -framedrop -dr -nodouble -nomouseinput -input nodefault-bindings:conf=/dev/null -nokeepaspect -wid 67108910 -monitorpixelaspect 1 -osdlevel 0 -subfont-osd-scale 0 -progbar-align 80 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -ass-force-style 'PlayResX=512,PlayResY=320,Name=Default,Fontname=DejaVu Sans,Fontsize=20,PrimaryColour=&H00ffffff,BackColour=&H00000000,OutlineColour=&H00000000,Bold=0,Italic=0,Alignment=2,BorderStyle=1,Outline=0.7,Shadow=0,MarginL=20,MarginR=20,MarginV=8' -subcp UTF-8 -alang 'jpn,jp,eng,en,fre,en' -slang 'fre,fr' -subpos 100 -volume 100 -cache 4096 -vf-add screenshot=/home/s-s/.config/smplayer/screenshots//shot -noslices -af-add scaletempo /home/s-s/MyFile.mp4 =>
With default driver, I have another issue, it crashes immediately: /usr/bin/mplayer -noquiet -slave -identify -nofs -lavdopts threads=2 -sub-fuzziness 1 -framedrop -dr -nodouble -nomouseinput -input nodefault-bindings:conf=/dev/null -nokeepaspect -wid 67108910 -monitorpixelaspect 1 -osdlevel 0 -subfont-osd-scale 0 -progbar-align 80 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -ass-force-style 'PlayResX=512,PlayResY=320,Name=Default,Fontname=DejaVu Sans,Fontsize=20,PrimaryColour=&H00ffffff,BackColour=&H00000000,OutlineColour=&H00000000,Bold=0,Italic=0,Alignment=2,BorderStyle=1,Outline=0.7,Shadow=0,MarginL=20,MarginR=20,MarginV=8' -subcp UTF-8 -alang 'jpn,jp,eng,en,fre,en' -slang 'fre,fr' -subpos 100 -volume 100 -cache 4096 -vf-add screenshot=/home/s-s/.config/smplayer/screenshots//shot -noslices -af-add scaletempo /home/s-s/MyFile.mp4
In all cases, remove “-wid XXX” makes mplayer to work again. Is there a way to remove that option?
To Reproduce Not sure why it happens here / how to reproduce.
Expected behavior No crash and see my video in SMplayer interface.
Your Enviroment
Version :