LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
josborne

Add "Delete AVI Frame" and "Insert AVI Frame" into Vision toolkit

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

I don't know much about the AVI format, so I am unsure if this is even possible.  But I would love to have the following additional functions in NI Vision's AVI aubVIs:

 

 

  • Delete AVI frame
  • Insert AVI frame
http://www.medicollector.com
3 Comments
X.
Trusted Enthusiast
Trusted Enthusiast

I's be curious to know if these functioanlities exist in any language or even for any file format (say TIFF for instance), as there is no real way to optimize this besides doing the brute force thing: read the file up to the frame you want to remove, copy that part in a different file, skip the frame and continue saving from there on. Similarly for insertion.

You would need a file format that allows appending frames to an existing file and modifying a list of pointers to each frame. It does not appear to be the case from a cursory look at the specs of the AVI file format...

Just curious: except if you want to write your own NLE, why would you need such functionalities in the engineering/science fields?

josborne
Active Participant

Yes, it is possible that this isn't really feasible.  Or will be so brute force and painfully slow that its not worth it (eg because it has to rewrite huge portions of the file).  I have no idea how AVI files work, so I'll let the NI developers decide that.

 

But here is why I want the function: 

 

I built an application that saves a long sequence of images to an AVI file.  If the AVI files gets too big (eg 2 GB) I split into multiple AVI files.  It works great.  Now our users want to be able to export portions of the AVI.  So I do the brute force method of reading each desired frame and re-writing to a new AVI.  Which is painfully slow.  Especiailly if the user want to export a large percentage of the original AVI.  It might have to potentially re-read/re-write 99% of the AVI.  I thought that if the user wanted to export a large percentage of the file, it might be easier to start with the original and just delete the unwanted frames. 

 

An "insert" function isn't so useful to my application.  I added it as an afterthought.  Could be useful to some users who want to modify AVIs when a frame is dropped or something.

http://www.medicollector.com
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.