On Mon, 19 Jun 2006 13:10:08 +1200
Barry wrote:

> 
> 
> Nick Rout wrote:
> > On Sat, 17 Jun 2006 20:07:23 +1200
> > Barry <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >>The command:
> >>
> >>mplayer -tv input=2:driver=v4l2:width=640:height=480 tv:// -vo xv,
> >>
> >>Will display input via composite2 on the screen but I want to save to a 
> >>file on disk. I presume -dumpfile & -dumpstream will do what I want but 
> >>What alteration do I make to achieve this?
> >>
> > 
> > 
> > > Encode from a tuner (specify a format with -vf format):
> > mencoder -tv driver=v4l:width=640:height=480 tv:// -o tv.avi -ovc raw
> > 
> > is what the mplayer/mencoder man page suggests
> > 
> > plus whatever other paramaters you needed from your mplayer line, I would 
> > suggest the following, combinig your mplayer line with the above:
> > 
> > mencoder -tv input=2:driver=v4l:width=640:height=480 tv:// -o tv.avi -ovc 
> > raw 
> 
> That saved to disk, but the playback is jerky, and no sound. I can also 
> save from the tuner, but the playback is the same
> 
> With mplayer, I can now output to the screen from both tuner and comp2, 
> but the last msg before the viewer starts is 'Audio: no sound'. I have 
> tried various -ao options without any change to the output.

That sounds as if there is no sound stream in the video, or the sound
stream is present but empty. To be sure please give us the output of

midentify tv.avi

If you are using your sound card's line in, then you need to set the
line in to "capture" in your mixer. This can be done on most mixers, but
alsamixer is universal so I suggest you check with

alsamixer -V all

use the left and right arrow keys to get to the "line" (or "line-in")
mixer item and hit space to set it to capture. Also make sure its volume
is not set to zero, put at about 90%. Make sure it isn't muted (will
show MM at the bottom if it is muted, hit M on the keypad to unmute it.)

There may also be a mixer item "Capture" (may be off to the right). Make
sure its volume is not set to zero. I am not 100% sure what it does, but
I suppose it is the master capture level.

midentify should also tell me what codec you end up encoding to when
recording like that. I suspect you will need to record to a different
codec. Its a matter of finding something that your CPU is up to doing on
the fly, but that is also easy to decode and play back. Some of the
examples  If you have a short sample (something less than 1MB) then you
could email it to me offlist, or put it on a web page and give either me
or the whole list directions on where to get it.

> 
> There is sound coming from the tv card. I tested with speakers plugged 
> into it instead of the output from the box.
> 

Please describe your sound setup. Are you using the btaudio driver? Or
are you using the line out from the tv card into the line in on the
sound card? I suspect the latter, please confirm.


> The sound is fine with avi files from my camera.
> 
> Both inputs work fine with tvtime.
> 
> The manual chapter you pointed me to Nick is identical to the earlier 
> one I have in my distro, thanks.
> > 
> > you won't be watching at the same time, but you can run simultaneously
> > 
> > mplayer tv.avi
> > 
> > if you cpu can hack encoding and decoding at the same time.
> Cant handle this.
> 
> Barry

-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to