Picon

[PATCH] support FFmpeg-0.8 API

Hi all,
I know kino is unmaintained, but nevertheless here's a patch if someone
would like to build kino against current FFmpeg 0.8 branch. I haven't
really tested it apart from compilation, but I hope it works.

Regards,
Dominik

-- 
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
diff -up kino-1.3.4/src/frame.cc.ffmpeg kino-1.3.4/src/frame.cc
--- kino-1.3.4/src/frame.cc.ffmpeg	2009-09-08 06:34:42.000000000 +0200
+++ kino-1.3.4/src/frame.cc	2011-09-01 01:46:16.000000000 +0200
 <at>  <at>  -1063,7 +1063,15  <at>  <at>  int Frame::ExtractRGB( void * rgb )
 	AVPicture dest;
 	int got_picture;

+#if FF_API_VIDEO_OLD
 	avcodec_decode_video( libavcodec, frame, &got_picture, data, GetFrameSize() );
+#else
+	AVPacket avpkt;
+	av_init_packet(&avpkt);
+	avpkt.data = data;
+	avpkt.size = GetFrameSize();
+	avcodec_decode_video2( libavcodec, frame, &got_picture, &avpkt);
(Continue reading)

Gary Lawrence Murphy | 1 Sep 03:51 2011

Re: Kino is unmaintained

if kino is unmaintained, is there an alternative NLE that people have migrated toward?  I've tried a few but have yet to find one as easy to control (I like Emacs commands on EVERYTHING :)

On Wed, Aug 31, 2011 at 9:10 PM, Dominik 'Rathann' Mierzejewski <dominik <at> greysector.net> wrote:
Hi all,
I know kino is unmaintained, but nevertheless here's a patch if someone
would like to build kino against current FFmpeg 0.8 branch. I haven't
really tested it apart from compilation, but I hope it works.

Regards,
Dominik

--
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
"Faith manages."
       -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev




--
Have Blog, Will Travel: blog.teledyn.com
A Serviceable Substitute: post.teledyn.com

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev
David | 1 Sep 04:46 2011
Picon

Re: Kino is unmaintained

I think you will find lots of people using kdenlive.

I can't say I've tried to use Emacs with it. I would be surprised, but hey.. emacs seems to be able to cook breakfast, give you a massage and even do text editing, so anything is possible.

On 01/09/11 11:51, Gary Lawrence Murphy wrote:
if kino is unmaintained, is there an alternative NLE that people have migrated toward?  I've tried a few but have yet to find one as easy to control (I like Emacs commands on EVERYTHING :)

On Wed, Aug 31, 2011 at 9:10 PM, Dominik 'Rathann' Mierzejewski <dominik <at> greysector.net> wrote:
Hi all,
I know kino is unmaintained, but nevertheless here's a patch if someone
would like to build kino against current FFmpeg 0.8 branch. I haven't
really tested it apart from compilation, but I hope it works.

Regards,
Dominik

--
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
"Faith manages."
       -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev




--
Have Blog, Will Travel: blog.teledyn.com
A Serviceable Substitute: post.teledyn.com

------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Kino-dev mailing list Kino-dev <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kino-dev

-- David McQuire 0418 310312
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev
Gary Lawrence Murphy | 1 Sep 18:27 2011

Re: Kino is unmaintained

lol ... well, emacs doesn't do nle (that I know of, but you never know) but Kino did obey the emacs/vi style keyboard commands and that, for all its esoteric anachronismisms, was what I love most about it.


that and the effects, which were all dropped from the current Ubuntu versions so I miss them, but the vi/emacs controls are enough to keep me in here :)

On Wed, Aug 31, 2011 at 10:46 PM, David <david <at> kenpro.com.au> wrote:
I think you will find lots of people using kdenlive.

I can't say I've tried to use Emacs with it. I would be surprised, but hey.. emacs seems to be able to cook breakfast, give you a massage and even do text editing, so anything is possible.


On 01/09/11 11:51, Gary Lawrence Murphy wrote:
if kino is unmaintained, is there an alternative NLE that people have migrated toward?  I've tried a few but have yet to find one as easy to control (I like Emacs commands on EVERYTHING :)

On Wed, Aug 31, 2011 at 9:10 PM, Dominik 'Rathann' Mierzejewski <dominik <at> greysector.net> wrote:
Hi all,
I know kino is unmaintained, but nevertheless here's a patch if someone
would like to build kino against current FFmpeg 0.8 branch. I haven't
really tested it apart from compilation, but I hope it works.

Regards,
Dominik

--
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
"Faith manages."
       -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev




--
Have Blog, Will Travel: blog.teledyn.com
A Serviceable Substitute: post.teledyn.com

------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Kino-dev mailing list Kino-dev <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kino-dev

-- David McQuire 0418 310312

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev




--
Have Blog, Will Travel: blog.teledyn.com
A Serviceable Substitute: post.teledyn.com

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev
Mads Bondo Dydensborg | 4 Sep 19:18 2011
Picon

Re: Kino is unmaintained

Torsdag 01 september 2011 skrev Gary Lawrence Murphy:
> lol ... well, emacs doesn't do nle (that I know of, but you never know) but

http://1010.co.uk/gneve.html

Would not go there though. Must be a lot of pain down that road.

Regards

Mads

P.S. Use Kdenlive :-)

> Kino did obey the emacs/vi style keyboard commands and that, for all its
> esoteric anachronismisms, was what I love most about it.
> 
> that and the effects, which were all dropped from the current Ubuntu
> versions so I miss them, but the vi/emacs controls are enough to keep me in
> here :)
> 
> On Wed, Aug 31, 2011 at 10:46 PM, David <david <at> kenpro.com.au> wrote:
> > **
> > I think you will find lots of people using kdenlive.
> > 
> > I can't say I've tried to use Emacs with it. I would be surprised, but
> > hey.. emacs seems to be able to cook breakfast, give you a massage and
> > even do text editing, so anything is possible.
> > 
> > 
> > On 01/09/11 11:51, Gary Lawrence Murphy wrote:
> > 
> > if kino is unmaintained, is there an alternative NLE that people have
> > migrated toward?  I've tried a few but have yet to find one as easy to
> > control (I like Emacs commands on EVERYTHING :)
> > 
> >  On Wed, Aug 31, 2011 at 9:10 PM, Dominik 'Rathann' Mierzejewski <
> > 
> > dominik <at> greysector.net> wrote:
> >> Hi all,
> >> I know kino is unmaintained, but nevertheless here's a patch if someone
> >> would like to build kino against current FFmpeg 0.8 branch. I haven't
> >> really tested it apart from compilation, but I hope it works.
> >> 
> >> Regards,
> >> Dominik
> >> 
> >> --
> >> Fedora http://fedoraproject.org/wiki/User:Rathann
> >> RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
> >> "Faith manages."
> >> 
> >>        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
> >> 
> >> ------------------------------------------------------------------------
> >> ------ Special Offer -- Download ArcSight Logger for FREE!
> >> Finally, a world-class log management solution at an even better
> >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> >> download Logger. Secure your free ArcSight Logger TODAY!
> >> http://p.sf.net/sfu/arcsisghtdev2dev
> >> _______________________________________________
> >> Kino-dev mailing list
> >> Kino-dev <at> lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/kino-dev
> >> 
> >  --
> > 
> > *Have Blog, Will Travel: blog.teledyn.com*
> > *A Serviceable Substitute: post.teledyn.com*
> > 
> > 
> > -------------------------------------------------------------------------
> > ----- Special Offer -- Download ArcSight Logger for FREE!
> > Finally, a world-class log management solution at an even better
> > price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> > download Logger. Secure your free ArcSight Logger
> > TODAY!http://p.sf.net/sfu/arcsisghtdev2dev
> > 
> > 
> > _______________________________________________
> > Kino-dev mailing
> > listKino-dev <at> lists.sourceforge.nethttps://lists.sourceforge.net/lists/li
> > stinfo/kino-dev
> > 
> > 
> > --
> > David McQuire
> > 0418 310312
> > 
> > 
> > 
> > -------------------------------------------------------------------------
> > ----- Special Offer -- Download ArcSight Logger for FREE!
> > Finally, a world-class log management solution at an even better
> > price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> > download Logger. Secure your free ArcSight Logger TODAY!
> > http://p.sf.net/sfu/arcsisghtdev2dev
> > _______________________________________________
> > Kino-dev mailing list
> > Kino-dev <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/kino-dev

-- 
Mads Bondo Dydensborg   mads <at> dydensborg.dk   http://www.madsdydensborg.dk/

What I have done is to show that it is possible for the way the universe
began to be determined by the laws of science. In that case, it would not be
necessary to appeal to God to decide on how the universe began. This doesn't
prove that there is no God, only that God is not necessary.
                       - Stephen W. Hawking (Der Spiegel, 1989)

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev
Gary Lawrence Murphy | 5 Sep 03:18 2011

Re: Kino is unmaintained

LOL ... oh, now how could I possibly resist!


there are some links, you know, that just shouldn't be shared ;)

2011/9/4 Mads Bondo Dydensborg <madsdyd <at> challenge.dk>
Torsdag 01 september 2011 skrev Gary Lawrence Murphy:
> lol ... well, emacs doesn't do nle (that I know of, but you never know) but

http://1010.co.uk/gneve.html

Would not go there though. Must be a lot of pain down that road.

Regards

Mads

P.S. Use Kdenlive :-)



> Kino did obey the emacs/vi style keyboard commands and that, for all its
> esoteric anachronismisms, was what I love most about it.
>
> that and the effects, which were all dropped from the current Ubuntu
> versions so I miss them, but the vi/emacs controls are enough to keep me in
> here :)
>
> On Wed, Aug 31, 2011 at 10:46 PM, David <david <at> kenpro.com.au> wrote:
> > **
> > I think you will find lots of people using kdenlive.
> >
> > I can't say I've tried to use Emacs with it. I would be surprised, but
> > hey.. emacs seems to be able to cook breakfast, give you a massage and
> > even do text editing, so anything is possible.
> >
> >
> > On 01/09/11 11:51, Gary Lawrence Murphy wrote:
> >
> > if kino is unmaintained, is there an alternative NLE that people have
> > migrated toward?  I've tried a few but have yet to find one as easy to
> > control (I like Emacs commands on EVERYTHING :)
> >
> >  On Wed, Aug 31, 2011 at 9:10 PM, Dominik 'Rathann' Mierzejewski <
> >
> > dominik <at> greysector.net> wrote:
> >> Hi all,
> >> I know kino is unmaintained, but nevertheless here's a patch if someone
> >> would like to build kino against current FFmpeg 0.8 branch. I haven't
> >> really tested it apart from compilation, but I hope it works.
> >>
> >> Regards,
> >> Dominik
> >>
> >> --
> >> Fedora http://fedoraproject.org/wiki/User:Rathann
> >> RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
> >> "Faith manages."
> >>
> >>        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
> >>
> >> ------------------------------------------------------------------------
> >> ------ Special Offer -- Download ArcSight Logger for FREE!
> >> Finally, a world-class log management solution at an even better
> >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> >> download Logger. Secure your free ArcSight Logger TODAY!
> >> http://p.sf.net/sfu/arcsisghtdev2dev
> >> _______________________________________________
> >> Kino-dev mailing list
> >> Kino-dev <at> lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/kino-dev
> >>
> >  --
> >
> > *Have Blog, Will Travel: blog.teledyn.com*
> > *A Serviceable Substitute: post.teledyn.com*
> >
> >
> > -------------------------------------------------------------------------
> > ----- Special Offer -- Download ArcSight Logger for FREE!
> > Finally, a world-class log management solution at an even better
> > price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> > download Logger. Secure your free ArcSight Logger
> > TODAY!http://p.sf.net/sfu/arcsisghtdev2dev
> >
> >
> > _______________________________________________
> > Kino-dev mailing
> > listKino-dev <at> lists.sourceforge.nethttps://lists.sourceforge.net/lists/li
> > stinfo/kino-dev
> >
> >
> > --
> > David McQuire
> > 0418 310312
> >
> >
> >
> > -------------------------------------------------------------------------
> > ----- Special Offer -- Download ArcSight Logger for FREE!
> > Finally, a world-class log management solution at an even better
> > price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> > download Logger. Secure your free ArcSight Logger TODAY!
> > http://p.sf.net/sfu/arcsisghtdev2dev
> > _______________________________________________
> > Kino-dev mailing list
> > Kino-dev <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/kino-dev


--
Mads Bondo Dydensborg   mads <at> dydensborg.dk   http://www.madsdydensborg.dk/

What I have done is to show that it is possible for the way the universe
began to be determined by the laws of science. In that case, it would not be
necessary to appeal to God to decide on how the universe began. This doesn't
prove that there is no God, only that God is not necessary.
                      - Stephen W. Hawking (Der Spiegel, 1989)



--
Have Blog, Will Travel: blog.teledyn.com
A Serviceable Substitute: post.teledyn.com

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Kino-dev mailing list
Kino-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kino-dev
david | 26 Sep 18:14 2011

Can dvgrab '-rewind' work without a capture to rewind tape after successful dvgrab?

Guys,

   First post - simple dvgrab question. (sorry if you get 2 copies, the first 
was rejected by kino-dev-owner?) I have many digital 8 tapes to download. I am 
writing a short script that will loop prompting for tape insert at the at the 
end of each successful dvgrab. What I would like to do "rewind" the tape "after" 
each dvgrab so the tape is left fully rewound. Is this possible without dvgrab 
starting to download from the tape again using default capture values?  I was 
thinking something like:

while :; do

   [[ ${answer:0:1} == n ]] || break

   if dvgrab -rewind -timestamp -autosplit=3600 -format raw ${VLOC}/${FNAME}; then

     ## Can I Rewind Here without another capture starting??
->  dvgrab -rewind  (looks like this will restart capture with defaults)

     ## prompt for next or exit
     echo -ne "  Press: 'n' to process another tape, any other key to quit: "
     read answer
     echo ""

   fi

done

   Currently, I find the -rewind option that says

"-rewind              completely rewind the tape prior to capture"

   What I want is something like:

"-rewind_done         completely rewind the tape AFTER successful capture"

   Anything like that exist or would that be a new addition to the code? If it 
would be new, where in the code would be the best place to look to include this 
functionality?  Looks like it would need to be an addition of 'm_isRewindLast' 
called from stopCapture() or cleanup() in dvgrab.cc, but I would appreciate any 
help in figuring out how to implement it.

   Thanks for any help you can give and I apologize of this has been previously 
answered somewhere.

--

-- 
David C. Rankin, J.D., P.E.

------------------------------------------------------------------------------
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
david | 26 Sep 18:28 2011

dvgrab starts play, but stays stuck "Waiting for DV...", no data is actually captured - how to check?

Guys,

   I am having a problem with dvgrab not downloading data to disk from my 
Digital8 camera, even though dvgrab can always properly control the camera. This 
problem only occurs sometimes on my first call to dvgrab. I then usually just 
have to kill dvgrab, unplug/re-plug the firewire cable and start dvgrab again. 
It works fine then.

   The firewire connection is always seen on plug-in:

Sep 24 21:21:18 archangel kernel: [2111415.165895] firewire_core: phy config: 
card 0, new root=ffc1, gap_count=5
Sep 24 21:21:18 archangel kernel: [2111415.800050] firewire_core: created device 
fw1: GUID 08004601017ede99, S100
<no download - unplug/re-plug>
Sep 24 21:33:54 archangel kernel: [2112171.169381] firewire_core: phy config: 
card 0, new root=ffc1, gap_count=5
Sep 24 21:33:57 archangel kernel: [2112174.926294] firewire_core: created device 
fw1: GUID 08004601017ede99, S100, 1 config ROM retries

   As mentioned, the camera is always found and dvgrab can ALWAYS control it 
(rewind, play, etc..) The problem I'm dealing with is when dvgrab starts 'play' 
to begin the capture - sometimes there is no capture, nothing recorded to disk, 
even though dvgrab has started the 'play' mode on the camera just fine. I watch 
the indication on the camera and play begins and the tape counter on the camera 
starts increasing normally, but dvgrab is still "Waiting for DV..."

   The indication I get on whether there is a successful download started is 
that dvgrab issues the "Capture Started" message when download begins. For the 
times when the camera is put in play mode and nothing is downloaded, dvgrab just 
sits there with the "Waiting for DV..." message (even though dvgrab has rewound 
the tape and started the camera playing). In either case, dvgrab will play 
though the entire tape before exiting... (roughly an hour +- 5 minutes)

   I am using the following command line to start dvgrab. I just echo the date 
so I have a reference for when I started the download so I know to check back in 
an hour to switch tapes and start it again. (the first "Capture Started" message 
is mine from the CLI [poor choice of words]) The second "Capture Started" 
message is the one issued by dvgrab. I run dvgrab in a subshell so that any 
error messages from the dvgrab stderr stream are logged in the correct order and 
don't get intertwined with any messages from the tee stderr stream (not that 
I've ever had any from tee). The download/no download issue occurs regardless of 
whether you run dvgrab in a subshell.

10:37 archangel:/dat_e/dv/new> (echo -e "\nCapture Started: $(date '+%b %e 
%T')\n"; dvgrab -rewind -timestamp -autosplit=3600 -format raw dcrv- 2>&1) | tee 
-a /dat_e/dv/capture.log

Capture Started: Sep 26 10:37:52

Found AV/C device with GUID 0x08004601017ede99
Waiting for DV...
Capture Started   <== this is the dvgrab message
"dcrv-1999.12.24_17-11-33.dv":   999.98 MiB  8738 frames timecode 00:04:51.18 
date 1999.12.24 17:24:26
"dcrv-1999.12.24_17-24-26.dv":   656.78 MiB  5739 frames timecode 00:08:03.05 
date 1999.12.24 18:14:28
<snip>

   I need to find a way to test for the successful "Capture Started" from within 
a BASH script to make sure I haven't started dvgrab to just waste an hour 
playing the tape with nothing captured to disk. One thing I guess I could do is 
to wait for 3-4 minutes after starting dvgrab and then check for the "Capture 
Started" message -- but frankly, I'm unclear how I would do that from within a 
script since processing in the script is waiting for dvgrab to finish?? Any 
ideas on how to do this would be welcomed. I don't know, maybe start a timer in 
the script before the dvgrab call that waits 5 minutes, checks for the "Capture 
Started" and if not found, kills the dvgrab PID and issues an error?? I'll have 
to dig more into BASH to figure that one out. Any thoughts here welcomed :)

   Anybody have any idea why dvgrab would rewind and start 'play' mode and still 
be stuck "Waiting for DV..." and never get to the "Capture Started" point?

--

-- 
David C. Rankin, J.D., P.E.

------------------------------------------------------------------------------
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
Dan Dennedy | 26 Sep 18:56 2011

Re: Can dvgrab '-rewind' work without a capture to rewind tape after successful dvgrab?

On Mon, Sep 26, 2011 at 9:14 AM, david <dv <at> 3111skyline.com> wrote:
> Guys,
>
>   First post - simple dvgrab question. (sorry if you get 2 copies, the first
> was rejected by kino-dev-owner?) I have many digital 8 tapes to download. I am
> writing a short script that will loop prompting for tape insert at the at the
> end of each successful dvgrab. What I would like to do "rewind" the tape "after"
> each dvgrab so the tape is left fully rewound. Is this possible without dvgrab
> starting to download from the tape again using default capture values?  I was
> thinking something like:

Use dvcont

> while :; do
>
>   [[ ${answer:0:1} == n ]] || break
>
>   if dvgrab -rewind -timestamp -autosplit=3600 -format raw ${VLOC}/${FNAME}; then
>
>     ## Can I Rewind Here without another capture starting??
> ->  dvgrab -rewind  (looks like this will restart capture with defaults)
>
>     ## prompt for next or exit
>     echo -ne "  Press: 'n' to process another tape, any other key to quit: "
>     read answer
>     echo ""
>
>   fi
>
> done
>
>   Currently, I find the -rewind option that says
>
> "-rewind              completely rewind the tape prior to capture"
>
>   What I want is something like:
>
> "-rewind_done         completely rewind the tape AFTER successful capture"
>
>   Anything like that exist or would that be a new addition to the code? If it
> would be new, where in the code would be the best place to look to include this
> functionality?  Looks like it would need to be an addition of 'm_isRewindLast'
> called from stopCapture() or cleanup() in dvgrab.cc, but I would appreciate any
> help in figuring out how to implement it.
>
>   Thanks for any help you can give and I apologize of this has been previously
> answered somewhere.
>
> --
> David C. Rankin, J.D., P.E.
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Kino-dev mailing list
> Kino-dev <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kino-dev
>

--

-- 
+-DRD-+

------------------------------------------------------------------------------
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
david | 27 Sep 05:19 2011

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

Dan, All,

   dvcont works fine, but it certainly isn't serial in processing commands. From 
the man page, 'dvcont <command1> [ <command2> ... ]', I thought 'dvcont rewind 
eject' would rewind -- then eject. But when I saw the tape eject immediately, I 
knew that was a no-go.

   It seems simple "hey dummy, just look at the camcorder", but the camcorder 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 camcorder. 
What I've done is just run dvcont status and check for the "Winding reverse" or 
"Winding stop" status to determine when the rewind completes:

(stat=$(dvcont status); while [[ $stat != "Winding stop" ]]; do sleep 10; 
stat=$(dvcont status); done)

   Works fine, but if there is an easier way, I'd appreciate a suggestion. Thanks.

--

-- 
David C. Rankin, J.D., P.E.

------------------------------------------------------------------------------
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

Gmane