SDL2 over x11: “SDL: could not set video mode - exiting”

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SDL2 over x11: “SDL: could not set video mode - exiting”

Jeff-2
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: SDL2 over x11: “SDL: could not set video mode - exiting”

Moritz Barsnick
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/28d87899e33f2fca524c25fac62b3ffa1488391e

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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: SDL2 over x11: “SDL: could not set video mode - exiting”

Jeff-2
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 <[hidden email]> 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/28d87899e33f2fca524c25fac62b3ffa1488391e
>
> 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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".