Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
command line video capture?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
madrebel
n00b
n00b


Joined: 26 May 2002
Posts: 55
Location: Rancho Santa Margarita CA

PostPosted: Fri Nov 21, 2003 5:58 pm    Post subject: command line video capture? Reply with quote

hello, thanks for any help in advance.

basically what im doing is this.

svid out from my windows box into the video in on my hauppage card (gentoo powered box). i would like to be able to kick off the capture via a ssh cli thus avoiding unecesary kvm switching.

what programs/tools will work well for that?
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Sat Nov 22, 2003 12:08 am    Post subject: Reply with quote

Code:
mencoder -tv on:driver=v4l:width=768:height=284 -lavcopts vcodec=mpeg4:vhq:vqscale=2:aspect=1.3333 -ovc lavc -oac copy -o raw.avi

mencoder is part of mplayer (with the
Code:
encode - Adds support for MEncoder or LaME encoder, wherever applicable

USE-Flag.
Postprocess the file to a better bitrate with:

Code:
mencoder raw.avi -lavcopts vcodec=mpeg4:vqscale=2:vhq:vpass=1 -ovc lavc -oac mp3lame -o /dev/null
mencoder raw.avi -lavcopts vcodec=mpeg4:vbitrate=1300:vhq:vpass=2:aspect=1.3333 -ovc lavc -oac mp3lame -o uncut.avi

Insert a

Code:
-vop scale=-1:-2
to rescale the image if you want to use the video with other players than mplayer ....
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sat Nov 22, 2003 2:31 am    Post subject: Reply with quote

Another option is just using ffmpeg itself, as mencoder will probably just end up calling ffmpeg's libavcodec routines anyway.

http://ffmpeg.sourceforge.net/ffmpeg-doc.html
Back to top
View user's profile Send private message
dmind
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2003
Posts: 120
Location: sweden, Terra, Sol, Milky Way

PostPosted: Sat Nov 22, 2003 6:26 pm    Post subject: Reply with quote

or just emerge -s vcr
and do your thingy in cron
Code:
00 21 20 11 *   vcr -r 384 -c 'divx ;-) low-motion' -p TV4 -m mono -b 96 -F 27 -S 700 -t 58m 24_20031120.avi

_________________
Gentoo: it just changed my love life.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum