Kino Video Editor
 
  Kino / dvgrab
Latest News
Download
Features
Requirements
Screen Shots
  Support
User Guide
HOWTOs
FAQ
Mailing Lists
Contributed Code
  Development
Project Vision
Developer Guide
Source Code
Current Developers
Report a Bug
  Community
Success Stories
Discussion
 

I have closed the forums to new postings because there was not enough discussion, I answered nearly all the questions, and I no longer work on Kino. Please use the forums provided by your Linux distribution. Meanwhile, I will leave this open in read-only mode to serve as a knowledge base.


Subject: "dvgrab in a script" Previous topic | Next topic
Printer-friendly copy
Top Linux Digital Video dvgrab Topic #1074
Show all folders | View messages in linear mode

markjwillWed May-06-09 03:05 AM
Member since Nov 20th 2008
4 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#1074, "dvgrab in a script"


          

I've written a bash script for capturing with dvgrab. I use it to capture 6 streams on one machine at a time. I've written a huge script that checks and assigns channels among other 1394 settings and the script is about 400 lines long, everything works great, except I want the script to start over when it finishes a capture. I wrote the script with a -while (conditions) do.. - and after that didn't work I thought I didn't know how to loop properly. It turns out my loop was working fine, I was getting -read- errors when the script was prompting for variables the second time around.

As far as I can tell any variables in my script happening after running dvgrab have this problem. I've made a test script that isolates my problem.

I get this Error:

./test5: line 14: read: read error: 0: Resource temporarily unavailable
(line 14 is the last line in the code below)

When I run this code:

Code:

#!/bin/bash

function record
{
dvgrab --format raw --duration smpte=$tape_length:00 --noavc --size 0 tapename.dv
}

tape_lenght=00:00:10

record

echo -n "Test -read- command:"
read null2

:End Code

Any ideas why this is happening or what a workaround might be, would be greatly appreciated...

Thanks
-Markjwill

  

IP Printer Friendly copy | Reply | Reply with quote | Top

ddennedySun May-10-09 07:00 AM
Member since Jun 26th 2006
1362 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#1076, "RE: dvgrab in a script"
In response to Reply #0


          

I did not test this yet - I am not on a system at the moment with dvgrab. However, I have this to share that might be relevant. If I recall correctly, when dvgrab sees that stdout is not connected to a terminal, it tries to output raw DV to stdout. This is to facilitate apps that run dvgrab as a child process and want to receive the DV stream to preview it or something. Try redirecting stdout on the dvgrab line to /dev/null and see if that works.

+-DRD-+
Lead Kino Developer

  

IP Printer Friendly copy | Reply | Reply with quote | Top

Top Linux Digital Video dvgrab Topic #1074 Previous topic | Next topic
Powered by DCForum+ Version 1.1
Copyright 1997-2002 DCScripts.com