[MPlayer-users] MPlayer-users Digest, Vol 70, Issue 1

Jayalakshmi jaya at innovatesolutions.net
Mon Oct 5 06:50:15 CEST 2009


hi Kiste ,

sory distrbing again. Please help me out on this issue.

can you please tell me how to pause song/viedo  using C program.
Because I am using this c program as backend for my GUI program for
media player application.

thank you,
KISTE





On Thu, 2009-10-01 at 12:00 +0200, mplayer-users-request at mplayerhq.hu
wrote:
> Send MPlayer-users mailing list submissions to
> 	mplayer-users at mplayerhq.hu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> or, via email, send a message with subject or body 'help' to
> 	mplayer-users-request at mplayerhq.hu
> 
> You can reach the person managing the list at
> 	mplayer-users-owner at mplayerhq.hu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MPlayer-users digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: MPlayer-users Digest, Vol 69, Issue 35 (Jayalakshmi)
>    2. mplayer -pause (Jayalakshmi)
>    3. Re: MPlayer-users Digest, Vol 69, Issue 35 (Oliver Seitz)
>    4. Re: mplayer -pause (Oliver Seitz)
>    5. Re: mplayer -pause (Barb Sterling)
>    6. Re: mplayer -pause (Oliver Seitz)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 30 Sep 2009 18:17:02 +0530
> From: Jayalakshmi <jaya at innovatesolutions.net>
> Subject: Re: [MPlayer-users] MPlayer-users Digest, Vol 69, Issue 35
> To: mplayer-users at mplayerhq.hu, Oliver Seitz <info at vtnd.de>
> Message-ID: <1254314822.4389.35.camel at Ramesh-suse.site>
> Content-Type: text/plain
> 
> hi Kiste
> 
>  I did not understood your solution. please tell me clearly how to do
> that .
> 
> 
> 
> man mplayer
> > 
> > [...]
> > 
> >   -input <commands>
> >          This option can be used to configure certain parts of the  input
> >          system.  Paths are relative to ~/.mplayer/.
> > 
> >          Available commands are:
> > [...]
> >             file=<filename>
> >                  Read commands from the given file.  Mostly useful with a
> >                  FIFO.
> >                  NOTE:  When  the given file is a FIFO MPlayer opens both
> >                  ends so you can do several ?echo "seek  10"  >  mp_pipe?
> >                  and the pipe will stay valid.
> > 
> > [...]
> >   -slave (also see -input)
> >          Switches  on slave mode, in which MPlayer works as a backend for
> >          other programs.  Instead of intercepting keyboard events,
> > MPlay&#8208;
> >          er will read commands separated by a newline (\n) from stdin.
> >          NOTE:  See  -input  cmdlist  for  a  list  of slave commands and
> >          DOCS/tech/slave.txt for their description.  Also,  this  is  not
> >          intended to disable other inputs, e.g. via the video window, use
> >          some other method like -input nodefault-binds:conf=/dev/null for
> >          that.
> > 
> 
> 
> 
> 
>  
>  I tried what you have told, but no response.
> 
>  I am using commands in my application program, like 
> 
>   main()
>  
> {
>  ...
>  ...
>   
>  system ("mplayer -slave -idle -quiet abc.wmv\n");
>  ...
>  ...
>  
> system("pause\n");
>  ...
>  ...
> 
> 
> }    
> 
>  but it is not taking taht command. It is showing error as ,
>  
>  pause command not found
> 
> 
> 
>  please give any solution.
> 
> 
> thanks
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 30 Sep 2009 18:18:57 +0530
> From: Jayalakshmi <jaya at innovatesolutions.net>
> Subject: [MPlayer-users] mplayer -pause
> To: mplayer-users at mplayerhq.hu, Oliver Seitz <info at vtnd.de>
> Message-ID: <1254314937.4389.37.camel at Ramesh-suse.site>
> Content-Type: text/plain
> 
> hi Kiste
> 
>  I did not understood your solution. please tell me clearly how to do
> that .
> 
> 
> 
> man mplayer
> > 
> > [...]
> > 
> >   -input <commands>
> >          This option can be used to configure certain parts of the
> input
> >          system.  Paths are relative to ~/.mplayer/.
> > 
> >          Available commands are:
> > [...]
> >             file=<filename>
> >                  Read commands from the given file.  Mostly useful
> with a
> >                  FIFO.
> >                  NOTE:  When  the given file is a FIFO MPlayer opens
> both
> >                  ends so you can do several ?echo "seek  10"  >
> mp_pipe?
> >                  and the pipe will stay valid.
> > 
> > [...]
> >   -slave (also see -input)
> >          Switches  on slave mode, in which MPlayer works as a backend
> for
> >          other programs.  Instead of intercepting keyboard events,
> > MPlay&#8208;
> >          er will read commands separated by a newline (\n) from stdin.
> >          NOTE:  See  -input  cmdlist  for  a  list  of slave commands
> and
> >          DOCS/tech/slave.txt for their description.  Also,  this  is
> not
> >          intended to disable other inputs, e.g. via the video window,
> use
> >          some other method like -input nodefault-binds:conf=/dev/null
> for
> >          that.
> > 
> 
> 
> 
> 
>  
>  I tried what you have told, but no response.
> 
>  I am using commands in my application program, like 
> 
>   main()
>  
> {
>  ...
>  ...
>   
>  system ("mplayer -slave -idle -quiet abc.wmv\n");
>  ...
>  ...
>  
> system("pause\n");
>  ...
>  ...
> 
> 
> }    
> 
>  but it is not taking taht command. It is showing error as ,
>  
>  pause command not found
> 
> 
> 
>  please give any solution.
> 
> 
> thanks
> 
> 
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Wed, 30 Sep 2009 15:01:42 +0200 (CEST)
> From: "Oliver Seitz" <info at vtnd.de>
> Subject: Re: [MPlayer-users] MPlayer-users Digest, Vol 69, Issue 35
> To: "MPlayer usage questions, feature requests,	bug reports"
> 	<mplayer-users at mplayerhq.hu>
> Message-ID:
> 	<52200.92.198.62.74.1254315702.squirrel at srv1.ssl-traffic.de>
> Content-Type: text/plain;charset=iso-8859-1
> 
> Sorry, I don't speak c, do you speak bash?
> 
> mkfifo /tmp/mplayer-input
> mplayer -slave -idle -input file=/tmp/mplayer-input abc.avi
> [...]
> echo pause >/tmp/mplayer-input
> 
> 
> 
> This is what the manpage says, and it works for me like a charm.
> 
> Greets,
> Kiste
> 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Wed, 30 Sep 2009 15:05:01 +0200 (CEST)
> From: "Oliver Seitz" <info at vtnd.de>
> Subject: Re: [MPlayer-users] mplayer -pause
> To: "MPlayer usage questions, feature requests,	bug reports"
> 	<mplayer-users at mplayerhq.hu>
> Message-ID:
> 	<50338.92.198.62.74.1254315901.squirrel at srv1.ssl-traffic.de>
> Content-Type: text/plain;charset=iso-8859-1
> 
> Do you understand it better when i tell you twice?
> 
> #> input
> http://lists.mplayerhq.hu/pipermail/mplayer-users/2009-September/077890.html
> 
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Wed, 30 Sep 2009 11:23:13 -0600
> From: "Barb Sterling" <bsterling at cardinalpeak.com>
> Subject: Re: [MPlayer-users] mplayer -pause
> To: MPlayer usage questions, feature requests,	bug reports
> 	<mplayer-users at mplayerhq.hu>
> Message-ID: <20090930172313.e09e1a1f at smtp.cardinalpeak.com>
> Content-Type: text/plain;	charset="us-ascii"
> 
> ----- Original Message -----
> From: Jayalakshmi
> [mailto:jaya at innovatesolutions.net]
> To: mplayer-users at mplayerhq.hu, Oliver
> Seitz [mailto:info at vtnd.de]
> Sent: Wed, 30 Sep 2009 06:48:57 -0600
> Subject:
> [MPlayer-users] mplayer -pause
> 
> 
> > hi Kiste
> > 
> >  I did not understood your solution. please tell me clearly how to do
> > that .
> > 
> > 
> > 
> 
> I would recommend that you look at the source from one or more of the MPlayer Frontends.
> 
> http://www.mplayerhq.hu/design7/projects.html
> 
> Controlling mplayer through a program is a bit more involved than what you are hoping.
> 
> Good luck.
> 
> Barbara Sterling
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Wed, 30 Sep 2009 19:54:56 +0200
> From: "Oliver Seitz" <info at vtnd.de>
> Subject: Re: [MPlayer-users] mplayer -pause
> To: "MPlayer usage questions, feature requests, bug reports"
> 	<mplayer-users at mplayerhq.hu>
> Message-ID: <op.u02z1urwn8yd9f at asuskiste>
> Content-Type: text/plain; format=flowed; delsp=yes;
> 	charset=iso-8859-15
> 
> 
> > Controlling mplayer through a program is a bit more involved than what  
> > you are hoping.
> 
> Well, just starting and stopping playback and loading files at demand  
> isn't to complicated. It works well for me, and I did not read any  
> sources, just the docs. I admit, there was a bit of trial-and-error, but  
> after I finally understood what the docs meant everything worked great.
> 
> But, one thing comes to my mind. I'm missing a slave command like "PLAY"  
> which unpauses when in pause mode and doing nothing when playing.  
> "frame_step" is some kind of replacement which does the opposite: It  
> switches to pause mode, nevermind if from pause or play. So now I use  
> "frame_step \n pause \n" to switch to play mode, but it's a really ugly  
> hack.
> 
> Greets,
> Kiste
> 
> 
> ------------------------------
> 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> 
> End of MPlayer-users Digest, Vol 70, Issue 1
> ********************************************



More information about the MPlayer-users mailing list