Video window stays open at end: need it to close

*nix specific usage questions
cmhammock
New Cone
New Cone
Posts: 4
Joined: 09 Jul 2019 03:12

Video window stays open at end: need it to close

Postby cmhammock » 09 Jul 2019 03:47

(I initially posted this as an addition to an existing thread over on the "Feature Requests" topic but realized that it really belongs over here. Please excuse the duplicate posting.)

I am trying to create a sort of appliance using a Raspberry Pi (3B+) and Raspbian. In my case I want (need) the video window to close and go away at the end of the video, but it insists on staying open, apparently awaiting a user command to show another video or manually close th ewindow. This a relatively new level of Raspbian and vlc is 3.0.7.
So, question 1 is, how can I "force" the video window to close at the end of the video (invoked vlc from within a script, essentially in line mode.)

Next, (different problem), the --no-video-deco seems to work in fullscreen mode, but when I use a window (using --width=nnn and --height=nnn), I still get all the extra menu-bars and controls.
Also, in this window mode I try to use --video-x=nn and --video-x=nn to position the window ont he screen, but it seems to be ignored. I sent into the "references" and set anything that sounded like it might arfect these things, but no luck so far.

Finally, as a new user of vlc, is there a single reference file for vlc that describes all the options available, especially in line mode?

Any suggestions?
Thanks....

cmhammock
New Cone
New Cone
Posts: 4
Joined: 09 Jul 2019 03:12

Re: Video window stays open at end: need it to close

Postby cmhammock » 09 Jul 2019 04:17

OK, did some research and answered some of my questions: I had assumed that the --close-and-exit option was for other modes, but tried it anyway and it works: the window is closed as I want.
I cannot find any documentation of the video-x and video-y options so I suspect that the posts I found suggesting those were very old and perhaps those options are no longer available. If so, the question still stands, how do I specify a screen location for a video window?
Still have not gotten rid of the extra menu bars and such. I am now guessing that the --no_video-deco is also an old and no longer available option. So, how do I now get rid of all the menu and control bars?
Thanks

unidan
Developer
Developer
Posts: 1494
Joined: 25 Mar 2018 01:00

Re: Video window stays open at end: need it to close

Postby unidan » 09 Jul 2019 11:39

Hi,
I cannot find any documentation of the video-x and video-y options so I suspect that the posts I found suggesting those were very old and perhaps those options are no longer available. If so, the question still stands, how do I specify a screen location for a video window?
It seems it only works for MacOSX and windows, and will probably be removed. I can try to find more information.

Code: Select all

vout_window_cfg_t wcfg = { .is_fullscreen = var_GetBool(vout, "fullscreen"), .is_decorated = var_InheritBool(vout, "video-deco"), // TODO: take pixel A/R, crop and zoom into account #if defined(__APPLE__) || defined(_WIN32) .x = var_InheritInteger(vout, "video-x"), .y = var_InheritInteger(vout, "video-y"), #endif };
Still have not gotten rid of the extra menu bars and such. I am now guessing that the --no_video-deco is also an old and no longer available option. So, how do I now get rid of all the menu and control bars?
You could use -I dummy to remove interface altogether, with --play-and-exit. Otherwise --qt-minimal-view should do the trick if you want to keep Qt.

cmhammock
New Cone
New Cone
Posts: 4
Joined: 09 Jul 2019 03:12

Re: Video window stays open at end: need it to close

Postby cmhammock » 09 Jul 2019 22:31

Thanks.... The qt-minimal-view worked good enough... it still has the title-bar, but that is OK.

So, it sounds like there is no way (on a Linux system) to position the video window somewhere other than the upper left corner. I can live with this, but it sure would be good to be able to position the window.

Now that I have vlc doing mostly what I want, I'll ask a question that perhaps I should have asked earlier..... It appears that vlc is a very complete and powerful tool with various filters, effects, and ways to manipulate and show the video image, with playlists and multiple other capabilities. This is WAY more than I need.... I just want to very simply show some .mp4 videos that I have selected and will be used only as sort of a background function and the viewer has no control. Should I be using something other than vlc, something simpler and more basic to do a very basic function?

Either way, thanks for the assistance.

unidan
Developer
Developer
Posts: 1494
Joined: 25 Mar 2018 01:00

Re: Video window stays open at end: need it to close

Postby unidan » 10 Jul 2019 11:01

So, it sounds like there is no way (on a Linux system) to position the video window somewhere other than the upper left corner. I can live with this, but it sure would be good to be able to position the window.
On wayland, it is just not possible, and on X11, it is better done by external software.
it appears that vlc is a very complete and powerful tool with various filters, effects, and ways to manipulate and show the video image, with playlists and multiple other capabilities. This is WAY more than I need....
VLC is a modular multimedia framework, you only pay for what you use so you could even completely disable Qt interface. That being said, the windows d3d11 output supports displaying the video as a background so I believe this could be done for X11 window too. This would avoid a lot of dependency. But can you describe exactly what you're trying to do ?

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Video window stays open at end: need it to close

Postby Rémi Denis-Courmont » 10 Jul 2019 18:33

X11 protocol allows to select a position for the window, but it's universally ignored and overriden by window managers, so that's that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 27 guests