[MPlayer-users] Quick (and hopefully simple) Mplayer query
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Nov 17 18:43:02 EET 2019
On 29.10.2019, at 07:43, "Paul Strickland" <paul_strickland at mail.com> 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:mplayer-users-bounces at mplayerhq.hu] 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
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
More information about the MPlayer-users
mailing list