Re: How to capture composite video

2021-05-29 Thread Charlie Gibbs

On Sat May 29 14:58:54 2021 Dan Ritter  wrote:

> Andrei POPESCU wrote:
>
>> On Vi, 28 mai 21, 17:00:37, Charlie Gibbs wrote:
>>
>>> Presumably the Hauppauge card has an audio encoder somewhere;
>>> I just have to find it.  "ls -l /dev/ds*" shows nothing, and
>>> "arecord -l" shows:
>>>
>>>  List of CAPTURE Hardware Devices 
>>> card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
>>>   Subdevices: 1/1
>>>   Subdevice #0: subdevice #0
>>> card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 
Alt >>> Analog]

>>>   Subdevices: 1/1
>>>   Subdevice #0: subdevice #0
>>> card 2: CX8801 [Conexant CX8801], device 0: CX88 Digital [CX88
>>> Digital]
>>>   Subdevices: 0/1
>>>   Subdevice #0: subdevice #0
>>>
>>> None of those appear to be part of the Hauppauge card; they're
>>> probably on the motherboard.  Hmmm, maybe I could use one of
>>> them instead...
>>
>> It's probably the Conexant, unless you know for sure it's on the
>> motherboard. Maybe you can tell from the output of lspci with -t
>> and -nn or so.
>
> Andrei is correct.

Indeed.

$ lspci | grep Conexant
04:00.0 Multimedia video controller: Conexant Systems, Inc. 
CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
04:00.1 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI 
Video and Audio Decoder [Audio Port] (rev 05)
04:00.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI 
Video and Audio Decoder [MPEG Port] (rev 05)
04:00.4 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI 
Video and Audio Decoder [IR Port] (rev 05)


Maybe it's time to change the subject from "How to capture composite
video" to "How to capture audio", since that's where I am now.

--
cgi...@surfnaked.ca (Charlie Gibbs)
If your nose runs and your feet smell, you're built umop-apisdn.



Re: How to capture composite video

2021-05-29 Thread Dan Ritter
Andrei POPESCU wrote: 
> On Vi, 28 mai 21, 17:00:37, Charlie Gibbs wrote:
> > 
> > Presumably the Hauppauge card has an audio encoder somewhere;
> > I just have to find it.  "ls -l /dev/ds*" shows nothing, and
> > "arecord -l" shows:
> > 
> >  List of CAPTURE Hardware Devices 
> > card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > card 2: CX8801 [Conexant CX8801], device 0: CX88 Digital [CX88 Digital]
> >   Subdevices: 0/1
> >   Subdevice #0: subdevice #0
> > 
> > None of those appear to be part of the Hauppauge card; they're probably
> > on the motherboard.  Hmmm, maybe I could use one of them instead...
> 
> It's probably the Conexant, unless you know for sure it's on the 
> motherboard. Maybe you can tell from the output of lspci with -t and -nn 
> or so.


Andrei is correct. 

-dsr-



Re: How to capture composite video

2021-05-28 Thread Andrei POPESCU
On Vi, 28 mai 21, 17:00:37, Charlie Gibbs wrote:
> 
> Presumably the Hauppauge card has an audio encoder somewhere;
> I just have to find it.  "ls -l /dev/ds*" shows nothing, and
> "arecord -l" shows:
> 
>  List of CAPTURE Hardware Devices 
> card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: CX8801 [Conexant CX8801], device 0: CX88 Digital [CX88 Digital]
>   Subdevices: 0/1
>   Subdevice #0: subdevice #0
> 
> None of those appear to be part of the Hauppauge card; they're probably
> on the motherboard.  Hmmm, maybe I could use one of them instead...

It's probably the Conexant, unless you know for sure it's on the 
motherboard. Maybe you can tell from the output of lspci with -t and -nn 
or so.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: How to capture composite video

2021-05-28 Thread Charlie Gibbs

On Fri May 28 16:18:42 2021 Dan Ritter  wrote:

> Charlie Gibbs wrote:
>
>> Note the "Audio: no sound" line.  I still have to figure that one out
>> to get beyond silent movies.  Any hints?
>
> Yes: composite video doesn't carry audio at all.  Your VCR has
> either mono or stereo RCA audio output jacks, and you can plug
> them into a stereo RCA-> 1/8" stereo headphone plug or adapter
> cable to bring it into your sound card.  Possibly your video
> capture card has a separate jack for that?
>
> Input 0 is probably RF-frequency NTSC with a tuner to select
> channels.  That's low-quality, but includes audio.
>
> Input 2 is S-Video, which is the best of the available video
> connections if your VCR supports it.  (I have one that does...
> if it still powers up.)

Yes, my card's inputs show up as RF, composite, and S-Video
respectively.  I have composite video coming in just fine.

As for audio, I've run a triple RCA cable (red, white, and yellow) from
the jacks on the VCR to the corresponding jacks on the bracket attached
to my Hauppauge card.  It's the same cable I used to hook the VCR to my
TV, where it worked fine.  The VCR doesn't have S-Video output.

Presumably the Hauppauge card has an audio encoder somewhere;
I just have to find it.  "ls -l /dev/ds*" shows nothing, and
"arecord -l" shows:

 List of CAPTURE Hardware Devices 
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: CX8801 [Conexant CX8801], device 0: CX88 Digital [CX88 Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

None of those appear to be part of the Hauppauge card; they're probably
on the motherboard.  Hmmm, maybe I could use one of them instead...

BTW there's no need to post copies to my e-mail; I see everything
on the list via the Usenet feed to linux.debian.user.  Thanks.
--
/~\  Charlie Gibbs  |  "Some of you may die,
\ /|  but it's a sacrifice
 X   I'm really at ac.dekanfrus |  I'm willing to make."
/ \  if you read it the right way.  |-- Lord Farquaad (Shrek)



Re: How to capture composite video

2021-05-28 Thread Joe
On Fri, 28 May 2021 13:45:35 -0400
Dan Ritter  wrote:

> Charlie Gibbs wrote: 
> > [copy of posting to comp.os.linux.misc]
> > 
> > References: 
> > 
> > 
> > On 2021-05-17, Peter 'Shaggy' Haywood 
> > wrote: 
> > > mencoder tv:// -tv \
> > > driver=4vl2:input=1:norm=pal:width=720:height=576:fps=25 \
> > > -endpos 1:30:00 -ovc lavc -oac copy -lavcopts vcodec=mpeg4 \
> > > -o filename.avi  
> > 
> > I finally found the time to do some more experimenting.  The example
> > above is a good starting point.  I found that I can watch VHS tapes
> > (or whatever else is plugged into the composite video input) on my
> > machine with the following command:
> > 
> > mplayer tv:// -tv
> > driver=v4l2:input=1:norm=NTSC-M:width=720:height=480
> > 
> >  Tuner cap: STEREO LANG1 LANG2
> >  Tuner rxs: MONO
> >  Capabilities:  video capture  VBI capture device  tuner  read/write
> > streaming
> >  inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
> >  Current input: 1
> >  Current format: UYVY
> > v4l2: current audio mode is : MONO
> > Audio: no sound
> > 
> > Note the "Audio: no sound" line.  I still have to figure that one
> > out to get beyond silent movies.  Any hints?  
> 
> Yes: composite video doesn't carry audio at all. Your VCR has
> either mono or stereo RCA audio output jacks, and you can plug
> them into a stereo RCA-> 1/8" stereo headphone plug or adapter
> cable to bring it into your sound card. Possibly your video
> capture card has a separate jack for that?

Typically red and white phono connectors are left and right audio,
yellow is composite video. The S-Video connector is normally a four-pin
mini-DIN connector, and also doesn't carry audio.
> 
> Input 0 is probably RF-frequency NTSC with a tuner to select
> channels. That's low-quality, but includes audio.
> 
> Input 2 is S-Video, which is the best of the available video
> connections if your VCR supports it. (I have one that does... if
> it still powers up.)

-- 
Joe



Re: How to capture composite video

2021-05-28 Thread Dan Ritter
Charlie Gibbs wrote: 
> [copy of posting to comp.os.linux.misc]
> 
> References:  
> 
> On 2021-05-17, Peter 'Shaggy' Haywood  wrote:
> 
> > mencoder tv:// -tv \
> > driver=4vl2:input=1:norm=pal:width=720:height=576:fps=25 \
> > -endpos 1:30:00 -ovc lavc -oac copy -lavcopts vcodec=mpeg4 \
> > -o filename.avi
> 
> I finally found the time to do some more experimenting.  The example
> above is a good starting point.  I found that I can watch VHS tapes
> (or whatever else is plugged into the composite video input) on my
> machine with the following command:
> 
> mplayer tv:// -tv driver=v4l2:input=1:norm=NTSC-M:width=720:height=480
> 
>  Tuner cap: STEREO LANG1 LANG2
>  Tuner rxs: MONO
>  Capabilities:  video capture  VBI capture device  tuner  read/write
> streaming
>  inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
>  Current input: 1
>  Current format: UYVY
> v4l2: current audio mode is : MONO
> Audio: no sound
> 
> Note the "Audio: no sound" line.  I still have to figure that one out
> to get beyond silent movies.  Any hints?

Yes: composite video doesn't carry audio at all. Your VCR has
either mono or stereo RCA audio output jacks, and you can plug
them into a stereo RCA-> 1/8" stereo headphone plug or adapter
cable to bring it into your sound card. Possibly your video
capture card has a separate jack for that?

Input 0 is probably RF-frequency NTSC with a tuner to select
channels. That's low-quality, but includes audio.

Input 2 is S-Video, which is the best of the available video
connections if your VCR supports it. (I have one that does... if
it still powers up.)


-dsr-



Re: How to capture composite video

2021-05-28 Thread deloptes
Charlie Gibbs wrote:

> Note the "Audio: no sound" line.  I still have to figure that one out
> to get beyond silent movies.  Any hints?

mplayer is complex application - you need some time to study the
documentation

for audio you are missing the audio driver, you can try adding

-ao alsa:noblock:audiorate=48000:device=duplex

or for TV

mplayer tv:// -tv
driver=v4l2:input=1:norm=NTSC-M:width=720:height=480:forceaudio:immediatemode=0:adevice=/dev/dsp1:amode=1:forcechan=2:audiorate=44100:audioid=1:volume=75

it all depends how the hardware is set

these are some ideas I used successfully in the past



Re: How to capture composite video

2021-05-28 Thread Charlie Gibbs

[copy of posting to comp.os.linux.misc]

References:  

On 2021-05-17, Peter 'Shaggy' Haywood  wrote:

> mencoder tv:// -tv \
> driver=4vl2:input=1:norm=pal:width=720:height=576:fps=25 \
> -endpos 1:30:00 -ovc lavc -oac copy -lavcopts vcodec=mpeg4 \
> -o filename.avi

I finally found the time to do some more experimenting.  The example
above is a good starting point.  I found that I can watch VHS tapes
(or whatever else is plugged into the composite video input) on my
machine with the following command:

mplayer tv:// -tv driver=v4l2:input=1:norm=NTSC-M:width=720:height=480

Here's what gets written when I tee stdout:

MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski 
 comment: first try, more to come ;-)
Selected device: pcHDTV HD5500 HDTV
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: MONO
 Capabilities:  video capture  VBI capture device  tuner  read/write 
streaming
 supported norms: 0 = NTSC-M; 1 = NTSC-M-JP; 2 = NTSC-443; 3 = PAL-BG; 
4 = PAL-I; 5 = PAL-DK; 6 = PAL-M; 7 = PAL-N; 8 = PAL-Nc; 9 = PAL-60; 10 
= SECAM-B; 11 = SECAM-G; 12 = SECAM-H; 13 = SECAM-DK; 14 = SECAM-L;

 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 1
 Current format: UYVY
v4l2: current audio mode is : MONO
==
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 720x480 => 720x480 Packed UYVY
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==
Audio: no sound
Starting playback...
V:   0.0   1/  1 ??% ??% ??,?% 0 0 [counts up]

v4l2: 137 frames successfully processed, 0 frames dropped.

Exiting... (Quit)

Note the "Audio: no sound" line.  I still have to figure that one out
to get beyond silent movies.  Any hints?

If I get the parameters wrong (which I did a lot while trying to get
the aspect ratio right), my screen and keyboard lock up.  The machine
is still alive, though; I can ssh in from another machine and send
a kill -HUP to mplayer's PID, and it does an orderly shutdown and
releases everything.

Once I get sound working, the next step is to persuade mencoder
to write the video to a file.  I tried adding the other parameters
you mentioned above, starting with -ovc, but I get the message:

Unable to open '/dev/dsp': No such file or directory.

It's really upset about this; the message appears three times.
And indeed, /dev/dsp doesn't exist.  How do I get one?

--
/~\  Charlie Gibbs  |  They don't understand Microsoft
\ /|  has stolen their car and parked
 X   I'm really at ac.dekanfrus |  a taxi in their driveway.
/ \  if you read it the right way.  |-- Mayayana



Re: How to capture composite video

2021-05-17 Thread Charlie Gibbs

On Mon May 17 10:56:10 2021 Dan Ritter  wrote:

> The subsystem you are looking for is V4L2, Video For Linux 2.
>
> Showing up as /dev/video0 is an extremely positive sign.
>
> https://www.linuxtv.org/wiki/index.php/V4L_capturing is what you
> want to read.

This looks like a possibility - v4l2-ctl identifies the tuner,
composite, and S-Video inputs on my card.  So far, though,
mpv just shows noise.  I'll continue puttering...

--
cgi...@surfnaked.ca (Charlie Gibbs)



Re: How to capture composite video

2021-05-17 Thread deloptes
Dan Ritter wrote:

> The subsystem you are looking for is V4L2, Video For Linux 2.
> 
> Showing up as /dev/video0 is an extremely positive sign.
> 
> https://www.linuxtv.org/wiki/index.php/V4L_capturing is what you
> want to read.
> 

mencoder will give you different flavors and you could cook the soup that
tastes the best to you.
For example the Hauppauge card would provide a specific max quality of
output (the analog to digital converter). Thus here people suggest other
hardware. It could be the hauppauge is very low quality.

for example when analog TV was still popular I used with gl2 video out
driver following. Similar with mencoder except that it goes into a file

mplayer -tv
driver=v4l2:outfmt=yuy2:width=640:height=480:device=/dev/video0:input=0:forceaudio:immediatemode=0:adevice=/dev/dsp1:amode=1:forcechan=2:audiorate=44100:audioid=1:volume=75:norm=0:normid=0:chanlist=europe-west
 -vo
gl2 -ao alsa:noblock:audiorate=48000:device=duplex tv://





Re: How to capture composite video

2021-05-17 Thread Dan Ritter
Charlie Gibbs wrote: 
> I have a number of VHS tapes which I'd like to digitize, and I'm
> trying to figure out where to start, hardware- and software-wise.
> I'm running Debian Buster (10.5), kernel 4.19.0-10-amd64.  I found a
> pcHDTV HD-5500, which I believe is basically a Hauppauge WinTV-PVR-150
> tweaked for Linux, and dropped it into my box, where it is found by
> lspci and shows up as /dev/video0.  The card has an extender cable
> which leads to a bracket with RCA connectors for audio and composite
> video, as well as an S-Video connector.  (For now, at least, I'm not
> interested in the TV tuner on the card.)
> 
> Presumably, with the proper software and configuration settings,
> I should be able to plug a VCR into the RCA connectors and have
> video come up on the computer's screen, and hopefully save it to
> disk in some sort of standard format.
> 
> What's a good starting point to find information on how to do this?

The subsystem you are looking for is V4L2, Video For Linux 2.

Showing up as /dev/video0 is an extremely positive sign.

https://www.linuxtv.org/wiki/index.php/V4L_capturing is what you
want to read.

-dsr-



Re: How to capture composite video

2021-05-17 Thread fxkl47BF
‐‐‐ Original Message ‐‐‐
On Monday, May 17, 2021 11:39 AM, Charlie Gibbs  wrote:

> I have a number of VHS tapes which I'd like to digitize, and I'm
> trying to figure out where to start, hardware- and software-wise.
> I'm running Debian Buster (10.5), kernel 4.19.0-10-amd64. I found a
> pcHDTV HD-5500, which I believe is basically a Hauppauge WinTV-PVR-150
> tweaked for Linux, and dropped it into my box, where it is found by
> lspci and shows up as /dev/video0. The card has an extender cable
> which leads to a bracket with RCA connectors for audio and composite
> video, as well as an S-Video connector. (For now, at least, I'm not
> interested in the TV tuner on the card.)
>
> Presumably, with the proper software and configuration settings,
> I should be able to plug a VCR into the RCA connectors and have
> video come up on the computer's screen, and hopefully save it to
> disk in some sort of standard format.
>
> What's a good starting point to find information on how to do this?

Canopus ADVC-300
i've used this device for many years
i works flawlessly
play the video
push a button on the advc-300
get a perfect digital copy



Re: How to capture composite video

2021-05-17 Thread James H. H. Lampert

On 5/17/21 9:39 AM, Charlie Gibbs wrote:

I have a number of VHS tapes which I'd like to digitize, and I'm
trying to figure out where to start, hardware- and software-wise.


Do you have a DVD-R video recorder? Simplest way I know is to dub the 
VHS to DVD, at which point accessing the video from your computer should 
be absurdly simple.


--
JHHL



How to capture composite video

2021-05-17 Thread Charlie Gibbs

I have a number of VHS tapes which I'd like to digitize, and I'm
trying to figure out where to start, hardware- and software-wise.
I'm running Debian Buster (10.5), kernel 4.19.0-10-amd64.  I found a
pcHDTV HD-5500, which I believe is basically a Hauppauge WinTV-PVR-150
tweaked for Linux, and dropped it into my box, where it is found by
lspci and shows up as /dev/video0.  The card has an extender cable
which leads to a bracket with RCA connectors for audio and composite
video, as well as an S-Video connector.  (For now, at least, I'm not
interested in the TV tuner on the card.)

Presumably, with the proper software and configuration settings,
I should be able to plug a VCR into the RCA connectors and have
video come up on the computer's screen, and hopefully save it to
disk in some sort of standard format.

What's a good starting point to find information on how to do this?

-- --
/~\  Charlie Gibbs  |  They don't understand Microsoft
\ /|  has stolen their car and parked
 X   I'm really at ac.dekanfrus |  a taxi in their driveway.
/ \  if you read it the right way.  |-- Mayayana