Author Topic: [SOLVED] Dazzle 100 101 Analog-Digital Conversion  (Read 4212 times)

0 Members and 1 Guest are viewing this topic.

Offline HandyGeek

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
[SOLVED] Dazzle 100 101 Analog-Digital Conversion
« on: October 14, 2013, 07:00:04 pm »
I was reading SeZo's post in msg75239 re. Dazzle DVC 100

I tried to follow it and am getting video (VHS via Dazzle) but the quality is poor and no audio.

Video: V4lC is Video1

Audio: DVC 100 USB Audio (STAC92xx Analog)

Input: Camera 1

Note: I'm in USA so am using NTSC vs PAL.

Help, please?

Thanks!
« Last Edit: October 24, 2013, 02:11:04 am by HandyGeek »

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2592
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #1 on: October 14, 2013, 08:09:46 pm »
Hi Handygeek

I know this is not much help , but I tried to do the same thing using an Easycap usb video capture device to convert analogue (VHS) with the help of Mark and SeZo on this forum but in spite of their best efforts we just couldn't make it happen, as I remember I got good video capture but couldn't get audio, eventually I had to throw the towel in, there just didn't seem to be the software available in Linux for this sort of thing at least not at that time, but maybe things have changed since then, so I'll be watching this thread with some interest


Good luck


Graeme
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline HandyGeek

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #2 on: October 15, 2013, 04:51:04 am »
That's why I acquired the same hardware he used so that his success may be duplicated.

I understand that extrapolating to different hardware creates new challenges.

Hopefully he, or someone who has successfully duplicated his success, can walk me through the necessary tweaks to get mine working.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1505
  • Karma: 119
  • Gender: Male
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #3 on: October 15, 2013, 10:40:45 pm »
I have not looked at this for a very long time, so it might not work anymore.
It would be handy if you could list the steps you have taken.
Quote
I tried to follow it and am getting video (VHS via Dazzle) but the quality is poor and no audio

At what stage you getting the poor video?
You could start by getting the following info:
Code: [Select]
dmesg | grep video
and
Code: [Select]
v4l2-ctl --list-inputs
and
Code: [Select]
v4l2-ctl --get-fmt-video
and
Code: [Select]
arecord -l
and
Code: [Select]
v4l2-ctl -C mute
You may want to check the video quality using the QT V4L2 test utility

[EDIT]
Tested the capturing last night with a few seconds of recording.
Both audio and video recorded OK.
« Last Edit: October 16, 2013, 07:40:41 pm by SeZo »

Offline HandyGeek

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #4 on: October 16, 2013, 07:49:28 pm »
I have not looked at this for a very long time, so it might not work anymore.
It would be handy if you could list the steps you have taken.
Quote
I tried to follow it and am getting video (VHS via Dazzle) but the quality is poor and no audio

At what stage you getting the poor video?


I sure appreciate any assistance. It is bizarre that there isn't an affordable & supported Linux solution out of the box.

You could start by getting the following info:
Code: [Select]
dmesg | grep video

bash-4.1# dmesg | grep video
pci 0000:00:01.0: Boot video device
Linux video capture interface: v2.00
uvcvideo: Unable to create debugfs directory
uvcvideo: Found UVC 1.00 device HP Truevision HD (05c8:0348)
usbcore: registered new interface driver uvcvideo
em28xx #0: V4L2 video device registered as video1
<root> ~
bash-4.1#

Code: [Select]
v4l2-ctl --list-inputs

bash-4.1# v4l2-ctl --list-inputs
ioctl: VIDIOC_ENUMINPUT
   Input       : 0
   Name        : Camera 1
   Type        : 0x00000002
   Audioset    : 0x00000000
   Tuner       : 0x00000000
   Standard    : 0x0000000000000000 ()
   Status      : 0x00000000 (ok)
   Capabilities: 0x00000000 (not defined)
<root> ~
bash-4.1#

Code: [Select]
v4l2-ctl --get-fmt-video

bash-4.1# bash-4.1# v4l2-ctl --get-fmt-video
sh: bash-4.1#: command not found
<root> ~
bash-4.1#

Code: [Select]
arecord -l

bash-4.1# arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic [HD-Audio Generic], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: DVC100 [DVC100], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
<root> ~
bash-4.1#

Code: [Select]
v4l2-ctl -C mute
You may want to check the video quality using the QT V4L2 test utility

http://nevils-station.com/images/misc1/ehbcqt-v4l2-testbench1.jpg

[EDIT]
Tested the capturing last night with a few seconds of recording.
Both audio and video recorded OK.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1505
  • Karma: 119
  • Gender: Male
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #5 on: October 16, 2013, 09:23:44 pm »
Quote
uvcvideo: Found UVC 1.00 device HP Truevision HD (05c8:0348)

It appears that device is not the same capture device as the one I use (Pinnacle Dazzle DVC 100)
Could you post the output from:
Code: [Select]
v4l2-ctl --all

Quote
card 2: DVC100 [DVC100], device 0: USB Audio [USB Audio]

You could try using this device for audio in VLC such:

plughw:DVC100

and see if you get any audio.

What happens if you click the record button in V4L2 Test Bench?
Do you get good quality picture?

Offline HandyGeek

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #6 on: October 16, 2013, 11:59:21 pm »
I replied to this but that reply seems to have been purloined by Internet gremlins ...

Quote
uvcvideo: Found UVC 1.00 device HP Truevision HD (05c8:0348)

It appears that device is not the same capture device as the one I use (Pinnacle Dazzle DVC 100)
Could you post the output from:
Code: [Select]
v4l2-ctl --all

Code: [Select]
bash-4.1# v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name   : uvcvideo
Card type     : HP Truevision HD
Bus info      : usb-0000:00:12.2-3
Driver version: 3.8.7
Capabilities  : 0x84000001
Video Capture
Streaming
Format Video Capture:
Width/Height  : 640/480
Pixel Format  : 'YUYV'
Field         : None
Bytes per Line: 1280
Size Image    : 614400
Colorspace    : SRGB
Crop Capability Video Capture:
Bounds      : Left 0, Top 0, Width 640, Height 480
Default     : Left 0, Top 0, Width 640, Height 480
Pixel Aspect: 1/1
Video input : 0 (Camera 1: ok)
Streaming Parameters Video Capture:
Capabilities     : timeperframe
Frames per second: 30.000 (30/1)
Read buffers     : 0
Priority: 2
<root> ~

Quote
card 2: DVC100 [DVC100], device 0: USB Audio [USB Audio]

You could try using this device for audio in VLC such:

plughw:DVC100      and see if you get any audio.
[/quote]

I get a "command not found" error.

Quote
What happens if you click the record button in V4L2 Test Bench?
Do you get good quality picture?

No video at all.

In VLC the video is pixelated and black & white but is viewable - no audio.

There is a pop-up errs saying the driver can't handle video acceleration for 720x115 pixels so it's disabled.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1505
  • Karma: 119
  • Gender: Male
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #7 on: October 17, 2013, 09:20:33 pm »
OK, in VLC try these settings:

Media->Stream->Capture Device:

   Capture mode = Video for Linux 2
   Video device name = /dev/video1
   Audio device name = plughw:DVC100
   Video standard = NTSC
        ->Show more options:
           MRL =
Code: [Select]
v4l2:///dev/video1
           Edit Options =
Code: [Select]
:v4l2-standard=NTSC :input-slave=alsa://plughw:DVC100 :v4l2-input=0 :v4l2-width=640 :v4l2-height=480 :v4l2-fps=30 :no-v4l2-audio-mute :live-caching=300
Then click Play to test it.

Offline HandyGeek

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #8 on: October 18, 2013, 03:49:20 am »
PROGRESS!

Video is nice clear color.

Audio still nada.

NOTE: In VLC the Audio device name options were hw:1,0 and hw:2,0 -- so I manually entered "plughw:DVC100"

Does that indicate that VLC is not picking up the audio device or perhaps there's a different place I need to change an audio setting?

I am very grateful for your assistance!

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13594
  • Karma: 339
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #9 on: October 18, 2013, 01:23:54 pm »
"Go SeZo"
"You da man .. if SeZo can't sort it no one can"

Our resident video capture guru :)
(that stuff's beyond me)

Too much ??

I have a funny feeling he'll shoot me for this.

--
« Last Edit: October 18, 2013, 01:34:58 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1505
  • Karma: 119
  • Gender: Male
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #10 on: October 18, 2013, 08:27:52 pm »
@Mark
Now that is emarrassing. :-[
You give mee too much credit, just because I managed to figure it out on my setup that makes me no expert.

@HandyGeek

Check if the audio is muted:
Code: [Select]
v4l2-ctl -C mute
Unmute it if it is:
Code: [Select]
v4l2-ctl -c mute=0
Try to get the audio using arecord:
Code: [Select]
arecord -vv -D plughw:DVC100 -fdat foo.wav
Press Ctrl-C to quit the recording.

Then play it back:
Code: [Select]
aplay -vv foo.wav

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13594
  • Karma: 339
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #11 on: October 18, 2013, 08:57:52 pm »
@ SeZo .. I see you're as comfortable with compliments as I am, but tough you're stuck with it .. it was just me having a childish moment, but I've watched you sort this kinda issue for a few people now so I refuse to take it back ;)

And just because my childish moment hasn't run its course yet .. take this
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline HandyGeek

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #12 on: October 19, 2013, 03:38:43 pm »
Check if the audio is muted:
Code: [Select]
v4l2-ctl -C mute

It read "mute: 1"

Quote
Unmute it if it is:
Code: [Select]
v4l2-ctl -c mute=0

Done.

Quote
Try to get the audio using arecord:
Code: [Select]
arecord -vv -D plughw:DVC100 -fdat foo.wav
Press Ctrl-C to quit the recording.

The file was blank (it never moved off 00% during recording
the first try) so I tried again and the % value varied between
about 4 & 10%.

Note: I can't monitor the VHS tape player audio so it may have
been a blank spot or something.

Quote
Then play it back:
Code: [Select]
aplay -vv foo.wav

Worked fine!

Now I will try VLC again ...

Thanks!

Offline HandyGeek

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #13 on: October 19, 2013, 03:59:04 pm »
VLC works!

It kept changing the Stream settings so I saved this:

Code: [Select]
:v4l2-standard=NTSC :input-slave=alsa://plughw:DVC100 ::v4l2-input=0 :v4l2-width=-640 :v4l2-height=-480 :v4l2-fps=30 :no-v4l2-audio-mute :live-caching=300

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1505
  • Karma: 119
  • Gender: Male
    • View Profile
    • Awards
Re: Dazzle 100 101 Analog-Digital Conversion
« Reply #14 on: October 19, 2013, 08:11:44 pm »
Now, that is a relief. :)
I take it that this can be marked as solved?
For the future, I am afraid you will have to do this manually at every recording session.
So save that line somewhere safe. The un-muting of the audio will also have to be done each time.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal