On Mon, Nov 03, 2003 at 04:12:37PM -0700, Arthur Moore wrote:
is anyone using mplayer to watch tv? I'm using this:
mplayer -tv on:driver=v4l:width=640:height=480:device=/dev/video0:norm=ntsc:channel=39
to watch tv, but I get nothing but a green screen with some static.
Okay, I had the same problem. I fixed it by firing up xawtv, getting my channel there, and then closing that and starting MPlayer. Apparently, the card needs to be initialized to some state in order to function properly with the television input. There is probably a way to do this entirely from MPlayer, but for now, this is one workaround.
Mike
Ok I figured it out thanks to Google. I needed to add the option: outfmt=yuy2. Here's what the whole command is:
mencoder -tv chanlist=us-bcast:norm=ntsc:driver=v4l:input=0:outfmt=yuy2:on:device=/dev/video0:width=320:height=240 -ovc lavc \
-lavcopts vcodec=mpeg4:vhq:vbitrate=$RATE \
-oac mp3lame \
-lameopts abr:br=128 -o file.avi
$RATE is figured out by a script that I have written.
So anyway I was able to record Anti-trust last night and I'll be recording Matrix tonight. If anyone wants a copy, email me and bring me a CD.
Art
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
