SDL2 over x11: “SDL: could not set video mode - exiting”
I’m sorry if this is covered somewhere else, but I can’t seem to find a solution on this mailing list, the SDL2 forums, or through google searches anywhere. This seems to be somewhat common, but again, no definitive solution. When I try to run a SDL2 application (e.g., ffplay) over X11 via SSH and Exceed, I receive the following error: “*SDL: could not set video mode - exiting*”. This only occurs with SDL2 applications (I’ve tried glxgears as well). Non-SDL, X-Windows applications work fine over the connection (e.g., terminal, xclock, etc). I’m able to launch ffplay locally on the machine itself, so it just fails over SSH forwarding. The DISPLAY variable is set properly (and works for other apps as mentioned). I’ve tried setting the *SDL_VIDEODRIVER to x11* as well, but still no luck. Is there something I’m missing? I have all the X11 (and DEVEL) libraries installed. SDL2 was configured with the standard ./configure options and shows X11 support in the config file. Someone on the SDL forum suggested it might be trying to use OpenGL vs. the default X11 driver and that could be the root of the issue, but I don't think so, nor do I know how to verify this. Please advise. Thank you for your time. J
Hi Jeff, On Mon, Nov 27, 2017 at 18:57:08 -0500, Jeff wrote:
When I try to run a SDL2 application (e.g., ffplay) over X11 via SSH and Exceed, I receive the following error: “*SDL: could not set video mode - exiting*”.
I do remember this problem - I often use tools via X11 over SSH - but I cannot reproduce. Please show us the command line and the complete, uncut console output of your ffmpeg command.
Is there something I’m missing?
This problem should have been fixed with this commit: https://github.com/FFmpeg/FFmpeg/commit/28d87899e33f2fca524c25fac62b3ffa1488... which has been included in ffmpeg/ffplay since about one year, and in releases since version 3.3. I presume you are using an old version of ffmpeg and letting us try to solve problems for you which have long been eliminated. ;-) Please try a recent version of ffmpeg, preferably latest git master. (Binaries are available, if you need something to quickly test.) Moritz
Hi Moritz, Thank you for getting back to me. I will verify the version we have today, but I have a suspicion it’s v3.2.2, which would explain the issue. I will work to have the latest version installed and see if that resolves things. I will keep you updated and will post the cli output if it remains unresolved after the upgrade. Best, Jeff
On Nov 28, 2017, at 12:47, Moritz Barsnick <barsnick@gmx.net> wrote:
Hi Jeff,
On Mon, Nov 27, 2017 at 18:57:08 -0500, Jeff wrote: When I try to run a SDL2 application (e.g., ffplay) over X11 via SSH and Exceed, I receive the following error: “*SDL: could not set video mode - exiting*”.
I do remember this problem - I often use tools via X11 over SSH - but I cannot reproduce.
Please show us the command line and the complete, uncut console output of your ffmpeg command.
Is there something I’m missing?
This problem should have been fixed with this commit: https://github.com/FFmpeg/FFmpeg/commit/28d87899e33f2fca524c25fac62b3ffa1488...
which has been included in ffmpeg/ffplay since about one year, and in releases since version 3.3.
I presume you are using an old version of ffmpeg and letting us try to solve problems for you which have long been eliminated. ;-) Please try a recent version of ffmpeg, preferably latest git master. (Binaries are available, if you need something to quickly test.)
Moritz _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (2)
-
Jeff -
Moritz Barsnick