LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-08-2007, 05:42 AM   #16
Rajweb
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Unhappy Linux Newbie needs help!!!


Please help. I am a complete Linux newbie. I only just recently escaped the clutches of MS and I now have almost everything working on Ubuntu. The only piece of hardware that doesnt work is my Dazzle DVD recorder. All I want is to be able to use it through TVTime.

I think I'm close in that I have found a C Program em28xx-cards.c and I have changed the lines as explained by Bernd above but what do I do now?

Do I need to copy it to somewhere? how do i compile it?
 
Old 12-09-2007, 05:32 AM   #17
bernd
LQ Newbie
 
Registered: Feb 2007
Location: Luebeck - Germany
Distribution: Open Suse & Debian & > Knoppix
Posts: 26

Rep: Reputation: 0
You have to compile the whole Kernel...

Hello Rajweb,

after you have modified the c file you have to recompile your kernel
and install the new one on your System.

But be carefull ! This is not dangerless for newbie's.

The file has to stay in the original directory (em88xx.c )

on all knewn by myself Linux Distros Kernel compliling should work
as following:

become root ( sudo bash or so... )

Change to the kernel source tree:

cd /usr/src/linux

( evtually followowed by the Kernel Version or its a link on it )

make a Kernelconfigfile:

make cloneconfig

or:

make oldconfig

now it is better to rename your kernel so your still got the original
Kernel as failsave:

type make menuconfig and the go to General Setup and change the "local Version to anything else - your name or System f.e. - so you will get
an Kernel named for you - and the bootloader should give you both Kernels
after compiling and installing.
Leave the Programm selecting exit - until it asks you to write the new
config File accept it to yes.


after this compile the kernel and modules:

make

now install the Kernel:

make install

now make the modules and install the modules:

make modules_install

now create the initial Ramdisk:

mkinitrd

this all could take a while - depending on your Processor am Ram !

( my old PIII 1.2Ghz needs about some hours, my newer C2D needs 20mins )

After this procedre you should have a new Kernel found in /boot and:
new modules in /lib/modules/"kernelsversion"


Now it could could be nessesary to insert the new Kernel on your bootloader ( but on Suse it work automatically ).

Now an Reeboot should give you the self compiled Kernel selectable.
Try to start this Kernel !

NO WARRANTY !!! BE CAREFULL TRY TO GET LIVE HELP IF POSSIBLE !!

Bernd

Excuse for my English - if anyone found an Error he could drink a Cup of Tee for each Mistake of mine ;-)

I have got a new system - for info it works too on Suse 10.3 x64.

Any Unbuntu Freaks here with better Help for Compiling the Kernel ?
 
Old 12-09-2007, 02:37 PM   #18
Rajweb
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Hi Bernd, thanks for your reply,

so I have copied the em28xx-cards.c file to the appropriate location and changed the details.

I got as far as runninf the make command and I get this error

make[1]: *** No rule to make target `arch/i386/kernel/asm-offsets.c', needed by `arch/i386/kernel/asm-offsets.s'. Stop.
make: *** [prepare0] Error 2

any ideas?
 
Old 12-10-2007, 12:26 AM   #19
bernd
LQ Newbie
 
Registered: Feb 2007
Location: Luebeck - Germany
Distribution: Open Suse & Debian & > Knoppix
Posts: 26

Rep: Reputation: 0
Hello Rajweb,

you wrote:

> so I have copied the em28xx-cards.c file to the appropriate location and changed the details

You donīt have to copy this File - it must be stay in the original Place in the Kernel-Source Tree.
ONLY modify it so the Kernel thinks that the Dazzle DVC100 is an 90 ( changing the PCI-ID ).

If you do it right - it should work.

But the Error sounds like not correctly installed Kernel Sources - and depends on other
Problem as the DVC100 modifikation.

Not much Time yet - i reply again after searching for a Solution.

Bernd
 
Old 01-01-2008, 06:32 PM   #20
dlanor78
LQ Newbie
 
Registered: Feb 2003
Posts: 16

Original Poster
Rep: Reputation: 0
It's been awhile since I messed with this and I never got it working. When I do the command:

Code:
sudo nice --10 mencoder tv:// -v -tv  
driver=v4l2:width=720:height=576:input=0:device=/dev/video0:audiorate=44100:immediatemode=0:outfmt=rgb24:forceaudio:adevice=/dev/dsp2
 -o outfile.avi -noskip -noslices -ovc lavc -lavcopts vcodec=mjpeg:aspect=4/3 -aspect 4:3 -noautoexpand -oac pcm  -endpos 00:00:10
(except for me it's /dev/video1) and I play the results it's just a green screen with no audio. I'm trying to fix the video part before I start working on the audio part. Any idea what I might be doing wrong? I live in the U.S. so I use ntsc. Could that be the difference? And if so what changes to the command do I need to make?

[edit]
Okay, answered my own question on the video. Had to add norm=ntsc to the command.

With the sound I'm wondering if I can't get it to work because I'm using kde which I believe uses alsa devices. I tried hw.1,0 and hw.2,0 for adevice= but all I get is Unable to open 'hw.2,0': No such file or directory. So maybe I'm not on the right track here. Is there a way to find out what my alsa devices are? BTW, I also tried /dev/dsp and /dev/dsp1 with no luck. I also checked kmix and changed current mixer to DVC100 and made sure the record light was on and that the volume was up. Now I'm officially stuck again lol.
[/edit]

One more thing. I just found the command
Code:
 cat /proc/asound/pcm
which gives me the output

Code:
 
00-03: emu10k1 : Multichannel Playback : playback 1
00-02: emu10k1 efx : Multichannel Capture/PT Playback : playback 8 : capture 1
00-01: emu10k1 mic : Mic Capture : capture 1
00-00: emu10k1 : ADC Capture/Standard PCM Playback : playback 32 : capture 1
01-00: USB Audio : USB Audio : capture 1
So I'm assuming I need to use the USB Audio device. How do I translate the 01-00 to a mencoder adevice?

Last edited by dlanor78; 01-01-2008 at 07:15 PM.
 
Old 01-02-2008, 12:45 AM   #21
bernd
LQ Newbie
 
Registered: Feb 2007
Location: Luebeck - Germany
Distribution: Open Suse & Debian & > Knoppix
Posts: 26

Rep: Reputation: 0
try to find the right device Name of the Audiopart of the dazzle

adevice=/dev/dsp2 worked on my old System - with 2 Soundcards AND the dazzle installed, you have to test on your
System on witch devicename youīll find the dazzle.
I assume it could be /dev/dsp1 because /dev/dsp should be your
emu1K1 - you could also too a look in the virtual direktory /dev
- you should see the possible dsp "files" - the last one should be
the dazzle ( dsp, dsp1, dsp2 os such things ).
on console:

ls -l /dev/dsp*

should show it

Happy new Year

Bernd
 
Old 01-02-2008, 09:18 AM   #22
dlanor78
LQ Newbie
 
Registered: Feb 2003
Posts: 16

Original Poster
Rep: Reputation: 0
It's working now with /dev/dsp1. Sometimes in windows when I'm using the Studio software I have no sound when trying to record so I have to do the safely remove the dazzle then unplug and plug it back in for the sound to come in. I assumed it was a problem with the software but I guess it's a problem with the hardware.

Does your dazzle do this too? If so, does simply unplugging then plugging it back in work for you?

Happy new year to you and everyone else too!
 
Old 01-03-2008, 01:01 AM   #23
bernd
LQ Newbie
 
Registered: Feb 2007
Location: Luebeck - Germany
Distribution: Open Suse & Debian & > Knoppix
Posts: 26

Rep: Reputation: 0
hello "dlanor78",

You wrote:

> Sometimes in windows when I'm using the Studio software

- did you mean ^ M$ Windows ?
- i do not use M$ Windows - i have tryed the Dazzle with Windows and my ( old )
Computer wasnīt fast enoug for recording Video with the dazzle - so i figured out
to use it with Linux - and it works absolute fast enougt ( with same Hardware ).
On my new Computer the is only a small Windows for fun inside VirtualBox.
Only Fun is to show People Windows inside a KDE-Window "arrested".
Same Speed Problems on the old Hardware with DVBT-Card - Windows slow and
often crashes - Linux works fine.

So: i could not Help in Windowsproblems...

On Linux ( and on Windows? ) the device name of the Sound-Part of the Dazzle could
differ depending of the Time the Dazzle is connected ( and other Sounddevices ).
So - mostly the Onboard or PCI/PCIE Soundcards are /dev/dsp and the Dazzle as the
second Soundcard ist /dev/dsp1 - if there isnīt any more Soundhardware.

I use the Dazzle only with mencoder - for best Quality, i have tryed out to use it too for
ekiga Videotelephony - but ekiga does not like the Colormode of the Dazzle :-(.
I search for a conversation Tool for this ( small ) Problem - i donīt like the bad Quality
of the Webcams ( hope the Speed of my DSL Account is fast enough ).

Bernd
 
Old 01-05-2008, 10:14 PM   #24
dlanor78
LQ Newbie
 
Registered: Feb 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I wasn't trying to get help on the windows program Studio, just asking if you had similar problems with linux. But that doesn't matter much. I'm back to post a revised command to capture in xvid format. I'm really new at this so some things may not be perfect and if anyone has suggestions I'd be willing to listen ;-) So here we go:

Code:
sudo nice --10 mencoder tv:// -v -tv driver=v4l2:width=720:height=480:input=0:device=/dev/video1:norm=ntsc:audiorate=44100:immediatemode=0:outfmt=rgb24:forceaudio:adevice=/dev/dsp1 
-o new2.avi -noskip -noslices -ovc xvid -xvidencopts fixed_quant=4 -lavcopts aspect=4/3 
-aspect 4:3 -noautoexpand -oac mp3lame -endpos 00:00:10
I've been wading through the man pages to see what all these options mean, but so far I haven't found some of them. So far I'm wondering what the -noskip, -noslices, and -noautoexpand do.

That's all for now. Now I'm going to try to find the best way to capture in mpeg-2 format since that's what I bought the dazzle for in the first place. Doesn't the mpeg-2 encoding happen in the dazzle hardware in the first place? I'd like to not have to re-encode at all if possible. Just dump the stream straight to the hard drive in mpeg-2.

Off to do research!

Last edited by dlanor78; 01-05-2008 at 10:44 PM.
 
Old 01-07-2008, 12:57 AM   #25
bernd
LQ Newbie
 
Registered: Feb 2007
Location: Luebeck - Germany
Distribution: Open Suse & Debian & > Knoppix
Posts: 26

Rep: Reputation: 0
I have to took a look inside the manpages too... .
Many Months ago where i figured out this ;-).
It is possible to save the Videofiles in compressed Codecs ist one (first)
pass - but i havenīt used it because my first ( old ) Computer was to slow
for it - now my new shout be fast enougt.

I will test and Report - an will try to explain the Options of mencoder you
want to knew - but not much time the next Days.

Bernd
 
Old 01-08-2008, 04:33 AM   #26
dlanor78
LQ Newbie
 
Registered: Feb 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Okay, I finally found a great deal on a Hauppauge card so I'm officially not going to use the dazzle any more. I will keep an eye on this thread though because I'm keeping the dazzle in case anything happens to my new card Good luck everyone!

Last edited by dlanor78; 02-16-2008 at 04:30 PM.
 
Old 03-30-2008, 03:44 AM   #27
bernd
LQ Newbie
 
Registered: Feb 2007
Location: Luebeck - Germany
Distribution: Open Suse & Debian & > Knoppix
Posts: 26

Rep: Reputation: 0
using as a WebCam ...

It is possible to use the Dazzle as a Webcam.

I have tested it with Skype, Ekiga and Wengophone.
Skype and Eliga Fails.

But with Wengophone it Works !

System: OpenSuse 10.3_x64, WengoPhone 2.1.2

Sometimes i have to start XAWTV first to set the Dazzle
in the Right Modus ( Input ).

Greetings Bernd
 
Old 04-27-2008, 01:07 AM   #28
Sartak
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
First of all, thanks bernd and others for providing ways to get this device to go. Unfortunately, it doesn't work for me. (I also have a Mac and their software doesn't work for me either. Argh!)

Following the v4l hack, I get the following error message when I boot up:

Quote:
em28xx probing error: endpoint is non-ISO endpoint!
No /dev/video* exists, so that's a no-go.

I tried commenting out the if statement in em28xx-video.c that checks for ISO-compliance. It appears to work okay, creating /dev/video0 and /dev/dsp1. But when I run your mencoder line, I get these errors:

Quote:
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using a ring buffer for maximum 318 frames, 251 MB total size.
v4l2: ioctl queue buffer failed: Message too long
v4l2: 0 frames successfully processed, 0 frames dropped.
v4l2: up to 0 video frames buffered.
v4l2: ioctl set mute failed: Bad file descriptor
*** glibc detected *** mencoder: double free or corruption (out): 0x088e8d10 ***
Googling didn't help very much. I've even tried poking at it with libusb..

I'm running Ubuntu Gutsy Gibbon, kernel 2.6.22. Any ideas?

Thanks!
 
Old 04-28-2008, 04:15 PM   #29
bernd
LQ Newbie
 
Registered: Feb 2007
Location: Luebeck - Germany
Distribution: Open Suse & Debian & > Knoppix
Posts: 26

Rep: Reputation: 0
sorry, no idea...

I've read this, but after a long Day of working i have no idea to
solve this for now.

On Mac it will be the same Procedure - OS-X and up uses
Linux intern - so if it does not work in Linux... .

Kernel trys to start the dazzle, but the dazzle answeres not as the
Kernel aspected ?

Removing of the ISO-Stuff delayed the Problem to the first Data polling.

Dazzle DVC100 ? newer Version ? New Chipssets ? An other Clone ?

USB-Problems also possible ?

Greets - Bernd
 
Old 04-28-2008, 10:21 PM   #30
Sartak
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by bernd View Post
I've read this, but after a long Day of working i have no idea to
solve this for now.
That's OK! Thanks for the timely response -- I see this thread has been alive for a long time now.

Quote:
Originally Posted by bernd View Post
On Mac it will be the same Procedure - OS-X and up uses
Linux intern - so if it does not work in Linux... .
My Dazzle came with an OS X application, which does not work (crashes on startup). Also, OS X is built on top of FreeBSD, not Linux.. I've given up on trying to make their software work, so I'm now trying things on Linux.

Quote:
Originally Posted by bernd View Post
Kernel trys to start the dazzle, but the dazzle answeres not as the
Kernel aspected ?

Removing of the ISO-Stuff delayed the Problem to the first Data polling.
Correct.

Quote:
Originally Posted by bernd View Post
Dazzle DVC100 ? newer Version ? New Chipssets ? An other Clone ?
Oops, sorry for not mentioning. This is actually a Dazzle DVC170. Since it has the same USB product ID as the Dazzle DVC150, I assume it has an identical interface (though perhaps better compression or fewer bugs).

Quote:
Originally Posted by bernd View Post
USB-Problems also possible ?
I'm willing to accept I have USB issues on my OS X box (though I can connect to the device using libusb). But quite a few people report the same "non-ISO endpoint" error on Linux.


What are my chances of being able to figure out how to get mpegs off of this Dazzle using libusb? I understand enough of the USB spec, but I don't know how to tell it to begin capturing. I hope it's as simple as:

* bulk_write 1 to tell it to begin capturing using the composite cables
* bulk_read ad nauseam
* bulk_write 0 to tell it to stop capturing

Unfortunately, without being able to run the software, figuring out what to send to the device isn't simple.
 
  


Reply

Tags
dvd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't configure my cd-dvd recorder as a recorder!!! slamd64 Lier Linux - Software 4 10-27-2006 12:40 AM
[SOLVED] Suse 9.3 fail mounting dvd and dvd recorder enrico_dvchp Linux - Software 2 07-07-2006 12:48 PM
DVD to DVD recorder through shell bluedragon3710 Linux - Software 4 03-20-2006 07:31 PM
Cannot Play back DVD on PC recorded from a DVD recorder shazam75 Linux - Software 2 12-29-2005 04:11 AM
DVD and Recorder not working... selassie irie Linux - Newbie 11 06-03-2004 08:33 PM


All times are GMT -5. The time now is 03:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration