[MPlayer-users] script control of playback
Morris Beverly
morrisb at avpresentations.com
Sun Oct 29 17:17:42 CET 2006
Hi,
Thanks, but I've tired it with and without the \n, to no avail. I still
think is's some stupid thing I'm doing, and just can't get back far
enough to see it.
I've started working on a java implementation (java is all I know much
about). "The fastest shortcut is the one you know" ;)
thanks,
morris
Kevin DeKorte wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Morris Beverly wrote:
>
>
>>OK, I'm a complete dope. I haven't been able to figure out how to send
>>text commands (like pause, get_time_pos, etc) to the stdin so that I can
>>control mplayer.
>>
>>I'm using the -slave option, but I'm just not getting the commands to do
>>anything. I can get the -input commands to work fine with my input.conf
>>file and keystroke input. I've tried to use the run command in the
>>input.conf file: F5 run echo "pause". I've also tried to run shell
>>scripts with echo "pause" in them via the run command as in: F5 run
>>pause_script.sh and it simply echos the text to the console without
>>affecting mplayer.
>>
>>The reason I need this is so I can run multiple commands with a single
>>keystroke rather than having a separate keystroke for each command.
>>
>>I assume this is a simple shell thing, possibly related to redirecting
>>output, that I'm not getting.
>>
>>Any ideas?
>>
>>
>
>Morris,
>
>Are you putting a \n (End of Line) at the end of each command. I know
>when I pass commands to the slave interface in C I have to pass them
>like this
>
>write(mplayer_input,"pause\n",strlen("pause\n"));
>
>Kevin
>
>- --
>Get my public GnuPG key from
>http://keyserver.veridis.com:11371/export?id=-1509369771935935023
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.5 (GNU/Linux)
>Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
>iD8DBQFFQoPj6w2kMH0L1dERAlNIAJ9q60h71Q/Sxsj7hmK1ArRfmsJf6QCgjgwg
>JD4wYlNiw7bdJLAmteHZD9g=
>=Qz4m
>-----END PGP SIGNATURE-----
>_______________________________________________
>MPlayer-users mailing list
>MPlayer-users at mplayerhq.hu
>http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
>
>
>
--
Morris Beverly
AV Presentations
http://www.avpresentations.com
800-648-7176 office
508-393-6698 fax
508-951-4460 cell
More information about the MPlayer-users
mailing list