What do elephants have to do with it?The fact the video comes from a VHS tape is irrelevant.
The better question is, is it possible to capture video on FreeBSD. The fact the video comes from a VHS tape is irrelevant. Videorecoders simply output a composite or s-video signal. You just need a capture device that can capture from composite and/or s-video.
Presumably plug the device in and run lsusb to find out if FreeBSD recognises it and see what it is called...
it looks as though I need to run webcamd
Yes,or ffmpeg...
ffmpeg
makes more sense and lets you capture in a lossless form to process later. Most likely, it will be in v4l format.ffmpeg -f v4l2 -standard PAL -i /dev/video0 -c:v libx264 -preset ultrafast -crf 0 output.mkv
webcamd
is Linux stuff, just follow recommendations for Linux, I have done such captures 15 years ago in Linux, it was straight forward.Because you like to have a GUI?Virtualdub... Is there anything like it for FreeBSD?
ffmpeg
? If not, I doubt anything will help. IMHO, it's better to capture first in a lossless format, and then use whatever you like (GUI or CLI) to process. mplayer
, but it has to be compiled with V4L support (use ports, not pkg
):
mplayer tv:// -tv driver=v4l2:device=/dev/video0
Kino is based on ffmpeg.I used Kino on Linux to capture
I don't have a /dev/video0.... Maybe I've mssed something...Code:ffmpeg -f v4l2 -standard PAL -i /dev/video0 -c:v libx264 -preset ultrafast -crf 0 output.mkv
webcamd
shows
webcamd [-d ugen2.3] -N vendor-0xeb1a-product-0x2861 -S unknown -M 0
lsusb
showsBus /dev/usb Device /dev/ugen2.3: ID eb1a:2861 eMPIA Technology, Inc.
cuse_load="YES"
webcamd -s
has a million options one of which might give me a clue as to what else I need to do.... Among these options there are 13 em28xx-* options, one of which may be help show what's missing. Here are those which reference 'video', although I'm really out of my depth trying to figure out what may be missing...em28xx-video.isoc_debug=0 <int>
>enable debug messages [isoc transfers]
em28xx-video.disable_vbi=0 <int>
>disable vbi support
em28xx-video.alt=0 <int>
>alternate setting to use for video endpoint
em28xx-video.video_debug=0 <int>
>enable debug messages (video)
Code:ffmpeg -f v4l2 -standard PAL -i /dev/video0 -c:v libx264 -preset ultrafast -crf 0 output.mkv
ffmpeg -f v4l2 -standard PAL -thread_queue_size 512 -i /dev/video0 -f alsa -thread_queue_size 512 -i hw:2,0 -vcodec libx264 -preset superfast -crf 25 -s 720x576 -r 25 -aspect 4:3 -acodec libmp3lame -b:a 128k -channels 2 -ar 48000 out.av
-f alsa
does not work, so I have either not installed something or am using the wrong device name. Detecting the audio input
The following command will detect the audio input.
cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xd8420000 irq 36
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xd6000000 irq 17
2 [usbtv ]: usbtv - usbtv
USBTV Audio at bus 1 device 2
Perhapscat /dev/sndstat
root@T530:~ # cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Realtek ALC269 (Internal Analog Mic)> (rec)
pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm3: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm4: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm5: <USB audio> (rec)
No devices installed from userspace.
-f pcm5
doesn't work.-f pcm5
-f oss -i /dev/dsp5
.Crowdsourcing RTFMs, as usual?
That would be-f oss -i /dev/dsp5
.
ffmpeg -f v4l2 -standard PAL -i /dev/video0 -f oss -i /dev/dsp5 -c:v libx264 -preset superfast -crf 25 -s 720x576 -t 30 output.mkv
[matroska @ 0x805e37c00] Non-monotonous DTS in output stream 0:1; previous: 12368, current: 12358; changing to 12368. This may result in incorrect timestamps in the output file.
[libvorbis @ 0x805e0bc00] Queue input is backward in time
[matroska @ 0x805e37c00] Non-monotonous DTS in output stream 0:1; previous: 12420, current: 12410; changing to 12420. This may result in incorrect timestamps in the output file.
[libvorbis @ 0x805e0bc00] Queue input is backward in time52 bitrate=1486.5kbits/s speed=1.76x
Last message repeated 6 times
It's only a cheap capture card...I very much doubt your VHS tapes contain DTS audio. I'm also quite sure your capture card doesn't either. Use something like PCM (uncompressed) or convert the analog audio to MP3.
ffmpeg -f v4l2 -standard PAL -i /dev/video0 -f oss -i /dev/dsp5 -c:v libx264 -preset superfast -crf 25 -s 720x576 -t 30 output.mkv
If it's only to digitize old tapes, the simplest work-around will be capturing analog sound separately.Getting sound working has always been a bit of a black art for me...
ffmpeg -i <video-file> -i <audio-file> -map 0:v -map 1:a -c copy output.mkv
If it's only to digitize old tapes, the simplest work-around will be capturing analog sound separately.
cat /dev/sndstat
shows:Installed devices:
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Realtek ALC269 (Internal Analog Mic)> (rec)
pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm3: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm4: <Intel Panther Point (HDMI/DP 8ch)> (play)
pcm5: <USB audio> (rec)
No devices installed from userspace.