Re: Quick (and hopefully simple) Mplayer query

Reimar Döffinger <[email protected]>
Newsgroups gmane.comp.video.mplayer.user
Message-ID <[email protected]>
On 29.10.2019, at 07:43, "Paul Strickland" <[email protected]> wrote:

> 
> I tried your example and I sort of understood what was happening. There is no need for me to worry about specifying the file name in the command line as I'm running from a .bat file. Everything can be pre-built. So I got the file to open, and pause, good so far. But I could only control it from the command line window. If I was in the playback window (as I would be in the final setup) hitting <space> to unpause playback caused the screen to lock.

This doesn't sound quite right, but yeah, slave mode changes input behaviour unless you set it up just right at least.
But I think you rather want
-input file=...
You can then either specify a file with the right loadfile command, or probably easier, just a file that contains just "pause".
Worked in my testing at least...
I have not tested if it might also break normal keyboard input, it's possible but I haven't tested enough to know for sure.

> 
> 
> 
> -----Original Message-----
> From: MPlayer-users [mailto:[email protected]] On Behalf Of Alexander Strasser
> Sent: 28 October 2019 21:45
> To: MPlayer usage questions, feature requests, bug reports
> Subject: Re: [MPlayer-users] Quick (and hopefully simple) Mplayer query
> 
> Hi Paul!
> 
> On 2019-10-28 06:39 -0000, Paul Strickland wrote:
> [...]
>> 
>> I need to automatically pause a video being played, as soon as it starts.
>> This will allow me to do various set up tasks, before I just hit SPACE to
>> get the whole thing going. I suspect it's a simple parameter, but for the
>> life of me, I can't see how to do it.
> 
> Disclaimer: Not sure why you need to pause exactly. Maybe there are better
> ways to achieve your goal in general.
> 
> If you can use slave mode, you can consider using the -slave together with
> -idle to avoid having to specify a file to play in the command line.
> 
> Then you can either do what you need to do and start playing after
> calling loadfile with the name of the file to play. Or if you prefer
> starting immediately and pausing you could use "pausing loadfile" to
> achieve that.
> 
> For details on slave mode and the available commands have a look at:
> 
>  https://mplayerhq.hu/DOCS/tech/slave.txt
> 
> To give you an example. If you the following into a text file
> slave-commands.txt:
> 
>    pausing loadfile test.avi
> 
> Then start MPlayer with
> 
>    mplayer -idle -slave -input file=slave-commands.txt
> 
> It should start decoding the file and should pause after displaying
> the first frame. The key controls should still work as expected, so
> you can then unpause the video or quit or...
> 
> 
>> I'm running Mplayer, on windows 10, from a .bat file.
> 
> 
>  Alexander
> _______________________________________________
> MPlayer-users mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> 
> _______________________________________________
> MPlayer-users mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.