Re: dvcont rewind - any way to tell when done other than looping on 'dvcont status' exit status?

Carl Karsten <[email protected]> Tue, 27 Sep 2011 06:18:00 -0500
Newsgroups gmane.comp.video.kino.devel
Message-ID <CADmzSSifwFWO2gyE4gL6Df06j7b0VZea4-9PNzKw7jw3sJE-wQ@mail.gmail.com>
On Tue, Sep 27, 2011 at 12:22 AM, Dan Dennedy <[email protected]> wrote:
> On Mon, Sep 26, 2011 at 8:19 PM, david <[email protected]> wrote:
>> Dan, All,
>>
>> =A0 dvcont works fine, but it certainly isn't serial in processing comma=
nds. From
>> the man page, 'dvcont <command1> [ <command2> ... ]', I thought 'dvcont =
rewind
>> eject' would rewind -- then eject. But when I saw the tape eject immedia=
tely, I
>> knew that was a no-go.
>>
>> =A0 It seems simple "hey dummy, just look at the camcorder", but the cam=
corder is
>> hooked to a remote box and dvgrab/dvcont operations are done over ssh so=
 knowing
>> when the rewind is done is something more than just looking at the camco=
rder.
>> What I've done is just run dvcont status and check for the "Winding reve=
rse" or
>> "Winding stop" status to determine when the rewind completes:
>>
>> (stat=3D$(dvcont status); while [[ $stat !=3D "Winding stop" ]]; do slee=
p 10;
>> stat=3D$(dvcont status); done)
>>
>> =A0 Works fine, but if there is an easier way, I'd appreciate a suggesti=
on. Thanks.
>
> There is no easier way other than to modify the dvcont C code or
> dvgrab C++ code to your needs. Also, you would basically end up doing
> the same thing in low level code - polling the transport status.
>

dvgrab already does it, right?  So there would be code to cut/paste.

Does dvgrab have an option to play x amount and exit?  if so, rewind,
play 1 frame, exit.  maybe good enough.

-- =

Carl K

---------------------------------------------------------------------------=
---
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1