LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2006, 11:33 AM   #1
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Video capture and kino


Hi Everybody,

I am trying to resolve video capture in Kino and I have found numerous posts in this forum covering this issue, but none that I can find that cover this problem.

The problem seems to be with raw1394. The output of dmesg | grep ieee 1394 is as follows:

bash-3.00$ dmesg | grep ieee1394
ieee1394: Node added: ID:BUS[0-00:1023] GUID[080046010443468c]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023

The output of lsmod 1394 is as follows:

dv1394 16016 0 (unused)
raw1394 17496 0 (unused)
ohci1394 23888 0 [dv1394]
ieee1394 41636 0 [dv1394 raw1394 ohci1394

As you can see, the kernel modules are loaded, but there is no entry for raw1394 in the /dev/ file. I tried:

bash-3.00# makedev /dev/raw1394
bash: makedev: command not found

I have dvgrab installed but get this when entered:

bash-3.00# dvgrab
dvgrab: error while loading shared libraries: libiec61883.so.0: cannot open shared object file: No such file or directory

As a result, Kino complains that the /dev/raw1394 is not responding.

Anyone with any thoughts? libraw1394 is installed, by the way.

Any help appreciated.

Bob
 
Old 04-12-2006, 11:46 AM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Sorry, forgot to add that the missing libraries were installed. Now when dvgrab is entered, I get:

bash-3.00$ dvgrab
raw1394 - failed to get handle: No such file or directory.
Deleting quicktime codec

No /dev/raw1394.

Thanks

Bob
 
Old 04-13-2006, 04:07 AM   #3
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Heh, I was just typing a response including the fact that I'd never used firewire ... and then google dug this up for me:

http://ubuntuforums.org/showthread.php?t=2792

As I was half into explaining, your problem could be with a) kernel drivers, b) udev or c) ~somewhere else~.

According to that thread, the problem is with udev not making the device nodes. Further down, they post this solution to making device nodes & permissions permanent:

http://www.bxlug.be/en/articles/220

You were definitly on the right track when you tried makedev, but wrong command!

Code:
#! /bin/sh

test -e /dev/raw1394 || mknod -m 666 /dev/raw1394 c 171 0
This will have to be adjusted to fit into Slack, but in principle if you get that script to run after you've loaded the raw1394 and video1394 modules everything says it should work =)

Good luck - let us know how it goes,
- Piete.

PS: Give me a bell on icq (2505906) or amsn (calinvenuma@hotmail.com) if you'd like to discuss this, or anything else!
 
Old 04-13-2006, 12:44 PM   #4
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
piete,

Thank you very much for this solution. I tried the script you provided and it worked immediately. My question now is: is this permenant or do I have to install this script to my initd file so that it installs this node at each boot?

I am going to study this little script to understand exactly what it does (particularly the test -e.) I tried makedev because this is a command I am used to in Fedora Core because I have used it. Apparently, Slack does not have this command.

Again, thank you for your help.

Bob
 
Old 04-13-2006, 05:16 PM   #5
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
No worries Bob - easy when you know what to look for

I'll save you some trouble on the test -e thing ... from `man test` you'll find the following:

Code:
       -e FILE
              FILE exists
And from one of my favourite sources, the Advanced Bash-Scripting Guide (http://www.tldp.org/LDP/abs/html/ ) you'll find that || is infact ...the logical OR.

So:

if /dev/raw1394 is true OR if `mknod -m 666 /dev/raw1394 c 171 0` executes correctly then
This script has executed successfully.

Honestly, I'm not sure why they do that, I'd want something more "if doesn't exist / then make node / fi" .. but, hey, it works =)

Basically you now need to call this script (or more accurately,that line) every time you want to use the device node. I suspect there are a few clever ways to force it into the udev startup, however, I personally would add it to /etc/rc.d/rc.local (which is executed well after udev has finished messing around with /dev/). If you'd rather keep the script, then you can set up the start procedure in rc.local by doing something like:

Code:
if [ -x /etc/rc.d/rc.raw1394 ]; then
/etc/rc.d/rc.raw1394
fi
Then you can turn on/off the executable flag, just like every other /etc/rc.d/ script =)

Take care,
- Piete.
 
Old 04-13-2006, 05:38 PM   #6
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Thanks, piete...this post was worth a month worth of learning. It all makes sense now. Video capturing is available to me now. I am studying scripting now (still early stages), but this goes a long way toward understanding startup scripts better. I do use "Linux in a Nutshell" book for studying commands I read in this forum to understand how they work and what they do, but it is a little dim sometimes and one on one explanations are a lot clearer.

Thanks again,

Bob

BTW, great town, Canterbury, one of the first towns I visited here. I live in Southampton.
 
Old 04-24-2006, 10:18 PM   #7
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 895

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
This is a bit late, but answering the question:

Quote:
Originally Posted by piete
if /dev/raw1394 is true OR if `mknod -m 666 /dev/raw1394 c 171 0` executes correctly then
This script has executed successfully.

Honestly, I'm not sure why they do that, I'd want something more "if doesn't exist / then make node / fi" .. but, hey, it works =)
The OR and AND operators make use of something called short circuiting. It goes like this: What is 1 OR x? 1. It doesn't matter what x is, so x never gets evaluated. The only time x gets evaluated is when the first half evaluates to false.
 
  


Reply


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
DV-video capture with kino problem Fnurr Linux - Hardware 3 03-05-2006 08:41 AM
Kino will not capture as User in Debian 3.1 freddie_leaf Debian 1 10-03-2005 08:40 AM
kino - slow playback of captured video... nicsmr Linux - Software 5 08-23-2005 02:01 PM
ieee1394 Capture and Edit: Kino and Cinelerra davecs Linux - Software 1 11-03-2003 10:10 AM
Capture support for dvd and video capture in linux is it even going to be real ever? maximalred Linux - Distributions 3 07-06-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration