LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

video scrub bar

Solved!
Go to solution

Has anyone ever successfully made a video scrubb bar? I have the full NI Vision Development module. Working with avi files. Trying to wrap my brain around this and it's just not coming together. Any advice is greatly appreciated.

0 Kudos
Message 1 of 13
(4,058 Views)

what is your means about  scrubb bar ?! could you explain more about it ?

0 Kudos
Message 2 of 13
(4,012 Views)

Yes, we have (or rather, my student, just getting started with Image Processing in LabVIEW, did this as one of her first IMAQdx routines).

 

Bob Schor

 

P.S. -- if you really want to show how cool you are using (misspelled) jargon such as "Scrub bar", you'll have better luck posting in the Video forum.  I also didn't know the term, and when I searched it with your spelling, got no hits.  But I persisted ...

0 Kudos
Message 3 of 13
(3,993 Views)

So what I've gathered from your response is that I'm not refering to this with the correct terminology. Fine. What do I need to call it in order to return search results? And for the record, I spent a good few minutes trying to figure out how to post this to a more specific forum. If you notice under my user name, this is the first post I've ever made. Cut me some slack.

0 Kudos
Message 4 of 13
(3,950 Views)

We don't know what the correct terminology would be because we don't know what you are asking for.

 

Try attaching a picture that shows what you are talking about.

0 Kudos
Message 5 of 13
(3,938 Views)

It's actually a pretty common term dating back the reel-to-reel recorder days of analog audio.  Also called a jog/shuttle control it's used to interactively fast forward and reverse an audio or video recorder to allow for efficient editing.  Many high-end VHS recorders had them before tape went obsolete.  

 

https://en.wikipedia.org/wiki/Jog_dial

 

I don't do much video with LabVIEW but if I can find any relevant info I'll post back...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 6 of 13
(3,933 Views)

I finally found something that does basically what I need it to here http://forums.ni.com/t5/LabVIEW/Slider-for-Display-and-Control-Time-of-Video/m-p/2927406/highlight/t... In that Read AVI File2.Zip. The only problem it has is if I drag what they have labeled the "progress bar" back to a location prior to it's current location in the video, then allow it to continue playing, it won't play through the rest of the video frames. It simply plays the rest of the frames it thought it had remaining given the number available at the start and then stops the VI. Somehow, I need the VI to update the number of frames remaining in the video based on the progress bar location.

0 Kudos
Message 7 of 13
(3,925 Views)
Solution
Accepted by topic author Grasshoper

@Grasshoper wrote:

I finally found something that does basically what I need it to here http://forums.ni.com/t5/LabVIEW/Slider-for-Display-and-Control-Time-of-Video/m-p/2927406/highlight/t... In that Read AVI File2.Zip. The only problem it has is if I drag what they have labeled the "progress bar" back to a location prior to it's current location in the video, then allow it to continue playing, it won't play through the rest of the video frames. It simply plays the rest of the frames it thought it had remaining given the number available at the start and then stops the VI. Somehow, I need the VI to update the number of frames remaining in the video based on the progress bar location.


That's because they used a For loop, which I find strange. Kinda defeats the purpose of the Progress Bar being a control. Change it to a While loop and add a Stop condition for when the video ends.

 

I don't have the vision module, but this is what I would do:

Progressive Video.PNG

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 8 of 13
(3,907 Views)

Right click on the For Loop and click "Replace with While Loop". Now it will run indefinitely until an error occurs (which happens when it exceeds the number of frames) or you press the stop button on the front panel. You can make it stop without error if you wire the "Progress Bar" control terminal to "Greater or Equal?" than the "Number of Frames" wire to the stop condition of the while loop.

Message 9 of 13
(3,901 Views)

Works like a charm 🙂 The only other thing I'm interested in is adding a play/pause button.

0 Kudos
Message 10 of 13
(3,882 Views)