Use Windows Pipes to read video frames encoded with any codec supported by FFMPEG
Early stages of a FFMPEG reader for Labview. Hoping to add writing capabilities soon.
Steps to Implement or Execute Code
Labview 64 bit, Vision Tool Kit
Multi Core Computer
Additional Images or Video
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Having trouble getting the write to work so far, i get an output file but then ffmpeg hangs after it receives the last frame to write and file is corrupt. I can post what i have if anyone has any ideas....
Could you save as Labview version 2011 please. Besides, I want to ask is this possible to count how many image frames of one .mp4 video?
Thank you very much. Despite a few glitches it works.
I'm working on improving the performance with the big video. I'm still looking for the cause of the slowdown.
It seems, ffmpeg is finished with decoding really fast but LabVIEW is struggling with getting the data from stdout of ffmpeg at the desired speed (I take memory consumption and the profiling tool as a guide).
So far I've mainly cleaned up the code and made a few optimizions.
This is the receiver/display loop after cleaning up with the part in the subVI looking like this:
This is considerably faster than using the "RGBtoColor" on every single pixel but does not really solve the issue.
Did you make any progress on performance there?
Unfortunately i have started on a different project and this has been put on the back burner although i would love to get it working a little better. (I thought about trying to use a dll instead of pipes, but again, no time lately.) Please let me know if you get anywhere with it. Feel free to upload your changes as well, anyone should be able to edit the document.
You might find some of performance solutions in my FFmpeg version: