[Cin] offtopic: Digitize and record Video with A/D USB adapters

Terje J. Hanssen terjejhanssen at gmail.com
Wed Oct 13 18:36:28 CEST 2021



Den 13.10.2021 11:25, skrev Dominique Michel via Cin:
> Le Tue, 12 Oct 2021 00:09:38 +0200,
> "Terje J. Hanssen via Cin" <cin at lists.cinelerra-gg.org> a écrit :
>
>> Den 11.10.2021 22:28, skrev Dominique Michel via Cin:
>>> Hi,
>>> On linux, you can use mencoder to grab audio + video and specify
>>> any video input and output file and format you want to use. It is
>>> much more easier to use than ffmpeg. Something like:
>>>
>>> DSVID="/dev/video0"
>>> NORM="PAL-BG"
>>> SVID="2" # the input on the video device
>>> ALSA_SVID="hw.1" # the ALSA card
>>> RATE="48000" # [Hz] same than the sound card for best quality
>>> WIDTH="634" # must be divisible by 16
>>> HEIGHT="472" # must be divisible by 16
>>> VRATE="4500" # [kbits] between 4 (small file) and 16000 (big file)
>>> CROPED_WIDTH="628" # must be divisible by 16 or 4
>>> CROPED_HEIGHT="448" # must be divisible by 16 or 4
>>> CROPED_X="6"
>>> CROPED_Y="16"
>>> F_SV_REC="/home/dom/movie.avi"
>>>
>>> mencoder tv:// -tv
>>> driver=v4l2:device=$DSVID:norm=$NORM:input=$SVID:alsa:adevice=$ALSA_SVID:audiorate=$RATE:width=$WIDTH:height=$HEIGHT
>>> -mc 0 -noskip -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$VRATE -vf
>>> crop=$CROPED_WIDTH:$CROPED_HEIGHT:$CROPED_X:$CROPED_Y,pp=lb -oac
>>> mp3lame -lameopts cbr:br=64 -o $F_SV_REC"
>>>
>>> For the video quality of VHS, if the player or the video camera
>>> have a s-video output, and the video card a s-video input, the
>>> final record will be better than with "standard" VHS quality.
>>>
>>> Cheers,
>>> Dominique
>> Interesting about Mencoder, but sorry - there is no S-Video IN port
>> on my video card
>>
>> inxi -Fzx | grep Graphics
>> Graphics:  Device-1: NVIDIA GK208B [GeForce GT 730] vendor: ASUSTeK
>> driver: nouveau v: kernel bus ID: 01:00.0
> This is your video output port, not the input one.
Yes, the purpose was to show the name of the video card;  NVIDIA GeForce 
GT 730.
According to its specs it has 3 output ports: DVI, HDMI, VGA

I also verified that the video card, GeForce GTX 960, on my second 
workstation (Supermicro) also has only output ports.

(In the past I had workstation(s) with analog I/O ports/ S-video, which 
also was the case on the old video capture card Pinnacle DV500 for Windows).


Terje J. H




More information about the Cin mailing list