Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7024985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:54:53+00:00 2026-05-27T23:54:53+00:00

On windows, I have a dynamically created uncompressed avi video file which grows overtime.

  • 0

On windows, I have a dynamically created uncompressed avi video file which grows overtime. The application which generates the video file can only write to a physical file. I can start/stop generation of video file and delete the old video file easily.

I would like to analyze the changing last frame of the growing video file to make some decision depending on the content of the current/latest image in real time. If I can achieve more than 10fps it should be enough.
I would like to get uncompressed images whenever a new frame available in the video file.

As a file format I think png could be the best options in that case but I am open to alternatives.
I wonder if such a thing is possible with ffmpeg or with a similar tool.

I prefer to analyze the image and make decisions by using a perl+Imager module.
Tha analyisis requirements are not complicated. Basically I just need to find existence of a few small images in certain locations inside the last frame.
I would also appreciate if you can suggest an efficient way to get this information in to my application from ffmpeg.
For example piping directly to my code or reading from saved png files.

I know perl already has an ffmpeg interface module but as far as I understand that module can’t provide the functionality I need.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:54:54+00:00Added an answer on May 27, 2026 at 11:54 pm

    First off, I hope you realize the data rate of uncompressed video! E.g., at 720×480 (plain ‘ol NTSC, not HD) with 16-bit color at 10fps, you’re generating 6.6 megabytes per second. You fill a 1TB hard drive in less than two days. Handling that data rate in perl should be interesting.

    Getting new frames from the file should be fairly simple, since its uncompressed video.

    1. Assume you’re starting from the front of the AVI (you start capture along with processing, for example).
    2. Read the AVI header, making sure it is as expected (e.g., proper format).
    3. Note the current subsecond system timestamp (e.g., from Time::HiRes).
    4. You know the length of a single frame. Attempt to sysread it. Continue trying until either you get the full frame (updating your requested length each time, of course), or you get an EOF (sysread returns 0).
    5. If you got an EOF before full frame: sleep a small amount of time (say, 10ms, Time::HiRes will let you sleep for less than 1 second) and then try to read the rest of the frame again. sysread doesn’t need an EOF indication reset; it’ll try again each time you call it. Keep doing the delay/sysread cycle until you have a full frame.
    6. You now have a full frame. Since its uncompressed video, it really won’t need much if any decoding before passing it to your computer vision code. (You may have to swap bytes around, or maybe convert from 16 to 32 bit, but nothing worse than that).
    7. Since you’re reading 10fps video, sleep for the remainder of the 1/10 second before the next frame.
    8. Go back to (3).

    You may find that if you use a library to implement your computer vision, it has functions to help with this—e.g., it may be able to read frames from an AVI file. OpenCV, for example, can.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a .net 2.0 windows application. This application creates form controls dynamically.
I have an application that opens up several windows. The content is dynamically created
I have created pictureboxes dynamically in windows forms Application... its working well... now i
I have a C++/MFC app on windows - dynamically linked it's only 60kb static
i have windows media player in my application.i want to allow only the supported
I have a code in which all UI items created by dynamically. I have
I've created a Windows Forms Application in C# which allows users to add controls
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible
I have windows forms application wich runs another console application here is the part
I have a .NET 1.1. application which provides string resources through a bespoke translation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.