[MPlayer-users] Recording from tv:// isn't realtime

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Jul 29 07:59:27 CEST 2014


On 28.07.2014, at 22:25, Marc MERLIN <marc_mplayer at merlins.org> wrote:

> On Mon, Jul 28, 2014 at 08:56:34PM +0200, Reimar Döffinger wrote:
>> If you have the patience, there are two other things you could try -
>> starting from the original line with fps=25
>> 1) Try adding -fps 25 (and/or -fps 60 to the line quoted above).
> 
> Nice one. This worked (adding -fps 25)
> mencoder tv:// -tv driver=v4l2:norm=PAL:width=720:height=576:outfmt=uyvy:device=/dev/video1:input=0:fps=25:alsa:amode=1:forcechan=2:audiorate=48000:forceaudio:immediatemode=0 -ovc x264 -x264encopts threads=8:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid=normal:weight_b -oac mp3lame -lameopts cbr:br=128   -fps 25 -o test.avi
> 
> My only 2 concerns left are:
> 1) sound is being recorded from my laptop's mic and not the tv input
> (while video is from the tv input)

Set adevice in the -tv option string.

> 2) I would love to be able to play this output file in near realtime
> while it's being recorded, but mplayer will only play the amount of file
> that was saved at the moment I started mplayer

As far as I know this is a bug in old MPlayer versions only, SVN probably is not affected.
Though you probably can work around it even there with e.g.
tail -f video.avi | mplayer -
or such.


More information about the MPlayer-users mailing list