[MPlayer-users] Timed recording?

GD Lewis gdltek1 at dfnow.com
Mon Sep 16 18:58:38 CEST 2002


On Mon, 2002-09-16 at 05:08, Haas Wernfried wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> On Sun, Sep 15, 2002 at 10:42:32PM +0100, Chris Phillips wrote:
> > [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> > > Is there anyway that I can set it so that it will automatically
> > > terminate based on a certain condition?
> > 
> > of course there is. *R*T*F*M*, or does your manpage not work???
> > 
> >     -endpos <time|byte position>
> >               Stop encoding at given time or byte position. Can be 
>                      ^^^^^^^^		     
> > specified in many ways:
> 
> as far as i understand the original question, it is not about encoding 
> (in which case --endpos does work) but dumping.
> just tested it myself:
> mplayer http://relay0.fm4.amd.co.at:31337/ -dumpaudio --endpos 1mb
> stream is dumped, but i killed mplayer when stream.dump reached a size of
> 1,5 megs.
> 
> maybe there is a way to get mencoder to do the job somehow, so i tried
> mencoder -o test.avi -ovc frameno -oac copy http://relay0.fm4.amd.co.at:1337/
> --endpos 1mb
> which resulted in segfault. i'm not really sure why:
> - my computer just sucks, mencoder not installed properly
> - just tried something mencoder is not supposed to be able to
>   (using mencoder to copy a audio stream to a avi without video seems
>   a bit strange to me, but the idea was to use mencoder & endpos, dumping
>   audio to "real" mp3 should be simple then.)
> - possibly real bug, my version is 0.9pre7 
>   [ ] please try current CVS read bugreports.html and follow the 
>   instructions...
> - i messed up, there is actually a way to use mencoder to dump the 
>   stream.
> 
> regards,
> 	wernfried
> 
> 

I just tried the -endpos method as well, and as I originally suspected,
it doesn't work despite Chris' rather indignant reply.

I decided to go with my original idea and just created a wrapper script
that times the process externally and kills it after the specified time
period has lapsed.

I have attached it in case anyone else finds it useful.

-- 
Grant D. Lewis
Running Gentoo Linux kernel 2.4.19-r7 on a GenuineIntel i686

"Those who define new paradigms for the world are often considered
strange at first"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sars
Type: text/x-sh
Size: 2333 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20020916/1b75750f/attachment.sh>


More information about the MPlayer-users mailing list