User Tag List

Results 1 to 4 of 4

Thread: Extension to read FPS of a video file

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleMac Export Module

    Join Date
    Sep 2006
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Extension to read FPS of a video file

    I need an extension that can read the frame rate of video files. Primarily for MP4, but MOV also, if possible. This would be paid. Message me if interested.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module
    aa2953b4's Avatar
    Join Date
    Feb 2019
    Posts
    92
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #include "opencv2/opencv.hpp"
     
    using namespace cv; 
    using namespace std;
     
    int main(int argc, char** argv)
    {
     
        // Open video file
        VideoCapture video("video.mp4");
     
        double fps = video.get(CV_CAP_PROP_FPS);
     
        // For OpenCV 3, you can also use the following
        // double fps = video.get(CAP_PROP_FPS);
     
        cout << "Frames per second using video.get(CV_CAP_PROP_FPS) : " << fps << endl;
         
        video.release(); 
        return 0; 
     
    }

  3. #3
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    93
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    There is already an opencv extension (based on 2.x iirc) but I haven't used it before, you can check it on dark-ware.

    (It seems that since 3.x opencv becomes 64 bit only, while fusion and it's extensions are 32 bit. And although you use an old, 32bit version opencv, iirc there would be a lot of conflicts between opencv lib and MMF2 lib if you just import it directly. )

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleMac Export Module

    Join Date
    Sep 2006
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the info, I'll look into it. I've figured out a way to get what I need but I'm always looking to improve things.

Similar Threads

  1. Replies: 2
    Last Post: 1st October 2017, 06:33 PM
  2. How to read an ini file?
    By BenjaminG in forum XNA Export Module Version 2.0
    Replies: 4
    Last Post: 18th September 2013, 06:10 PM
  3. How do I read from a file?
    By LittleMysterio in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 15th September 2008, 07:08 AM
  4. Creating a Hidden File / read only extension
    By MikeB in forum Extension Development
    Replies: 11
    Last Post: 1st July 2008, 03:47 PM
  5. All please read! About a new extension...
    By Cocodrilo in forum Extension Development
    Replies: 14
    Last Post: 18th July 2007, 12:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •