You are not logged in.

#1 2011-06-08 17:19:14

RichardSantoro
Member
Registered: 2010-04-22
Posts: 29

VHS to AVI, how to record ?

Hello,

My computer has a tuner card (saa7134) with 2 composites. With tvtime, i can get both of sound and video (using the loopback trick for sound), but i do not know how i can make a record of it.
I can't even open /dev/video0 using mplayer (and mencoder), so if anyone can help...

Regards,

RS

Offline

#2 2011-06-08 23:45:00

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: VHS to AVI, how to record ?

I haven't done it, but I'm guessing perhaps dvgrab with the -noavc option?

Offline

#3 2011-06-09 16:59:58

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: VHS to AVI, how to record ?

My tuner card is also saa7134, and if by the “loopback trick” you mean the sound output of the tuner card being physically connected to the corresponding slot on the sound card, this matches too. (Which means that tuner card’s sound is on the ‘CD’ channel in ALSA.)

I watch tv with mplayer with this code:

# List of available channels at my site
channels=R6-m1,53-rtl,36-tv2,22-videó

mplayer -vf pp=lb -tv channels=$channels:normid=5:tdevice=/dev/video0 tv:// -ontop

And I record with this:

channels=R6-m1,53-rtl,36-tv2,22-videó

# Set sound card channels
amixer sset Capture 3,3 cap
amixer sset CD 28,28 unmute cap

mencoder -vf pp=lb -tv channels=$channels:normid=5:input=0:width=640:height=480 \
-ovc lavc -lavcopts vbitrate=600:vcodec=mpeg4 \
-oac mp3lame -lameopts cbr:br=64 \
tv:// -o out.avi

You may have to change most options to your needs.
Note that since udev-171 OSS emulation modules are not autoloaded, so you may have to manually modprobe snd-pcm-oss for recording.

I hope it helps.

edit: typo

Last edited by barto (2011-06-09 17:01:13)


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

#4 2011-06-10 16:22:22

RichardSantoro
Member
Registered: 2010-04-22
Posts: 29

Re: VHS to AVI, how to record ?

Here is what i call the sound trick

pactl load-module module-loopback

then unmute in pavucontrol, but i'll try your solution, thx to both of you !

Offline

#5 2011-06-10 19:42:44

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: VHS to AVI, how to record ?

Ok, then this trick is something I’m not familiar with. I don’t use pulseaudio, just pure alsa.


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

Board footer

Powered by FluxBB