[MPlayer-users] Can't get mplayer -tv to play back audio input
Christian Jaeger
chrjae at gmail.com
Sat Nov 2 23:48:59 CET 2013
I might be able to pass through sound separately from mplayer.
(arecord|aplay is too slow, but perhaps this can be made faster.)
I've tried mencoder now.
mencoder -tv
'device=/dev/video0:driver=v4l2:alsa:adevice=hw.0,0:forceaudio:immediatemode=0:audiorate=44100'
tv:// -o somefile.mp4 -oac mp3lame -ovc lavc
Works except it doesn't seem to specify the framerate in the file; I need
to run "mplayer -fps 15" with video from this slow webcam to play it right,
and then the sound cuts off too early (sound is also completely out of
sync).
I've tried adding "fps=15" to the encoder line,
mencoder -tv
'fps=15:device=/dev/video0:driver=v4l2:alsa:adevice=hw.0,0:forceaudio:immediatemode=0:audiorate=44100'
tv:// -o somefile.mp4 -oac mp3lame -ovc lavc
but the file generated with this runs way too fast regardless of whether I
give mplayer the fps argument or not.
I'm going to search for more documentation (the manpage definitely isn't
enough).
Ch.
More information about the MPlayer-users
mailing list