Announcement

Collapse
No announcement yet.

2021 Primer on Dual High-Speed Video Recording of a Golf Swing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 2021 Primer on Dual High-Speed Video Recording of a Golf Swing

    This topic has multiple entry threads going back years. I acknowledge pioneer Inor Kuo and folks behind Kinovea software (kinovea.org). Making dual high-speed video recordings of a golf swing is now much easier than it was a few years ago. This 2021 description updates and simplifies the procedure.

    Needed
    1. Two Video Cameras (requirements later. I use Daheng 1440 x 1080; 227 fps capable, monochrome with f/1.2 or 1.4 lenses - all important choices)
    2. Computer with two USB 3 ports
    3. Software: Kinovea (free download; Beta 0.9.3). Disregard older advice that the Beta does not work for the golf swing – it does now.
    No Longer Needed
    • Audio Zone Trigger – now built into Kinovea Beta
    • VLC Media Player (free download)
    • A separate microphone. I use my laptop microphone easily.
    Information below contains the following:
    1. Steps to Make Dual Recordings and Save to Sequential Files
    2. How to Review Kinovea Videos after Each Shot
    3. Equipment and Software
    4. Dual Video Recording with FSX 2020
    Steps to Make Dual Recordings and Save to Sequential Files
    1. Plug cameras into computer USB 3 ports.
    2. Start Kinovea program Beta 0.9.3.
      • Select two capture windows (“screens” in software, I use “windows” to avoid confusion with dual computer and projector screens of golf sims)
      • Open one camera on one window and the other on the other window. You should see real time videos, likely dark at first
      • Click top bar of each capture window to set camera acquisition: Exposure and Gain determine allowable frame rate. High frame rate makes bigger files and requires more buffer. To get 227 fps Exposure is under 4300 micro-seconds (1/framerate = 1/227 sec). My Gain with Exposure=4300 microseconds is 17-18 dB (out of max 24). Stop motion better with lower Exposure (e.g. 1000 microsec = 1/1,000 s) but more Gain (3 dB per doubling/halving). If I don’t need 227 fps, I set Exposure to 10,000; Gain to 8-10 for 100 fps (or 20,000 and 3 for 50 fps), so there are choices depending on requirements. A color camera needs 5 dB more Gain for a given shutter speed due to the color filter over the sensor.
    3. Set following Kinovea Options - Preferences
      • General Tab: allow multiple instances of Kinovea to review videos after each shot
      • Drawings Tab: tick Opacity box so drawings are visible for entire video
      • Most important settings are in Capture sub-menus:
        • Capture - General: Record uncompressed video (no time to compress); Uncompressed Video Format MKV.
        • Capture - Memory: Set Delay buffers. 1.5 GB allows 2 seconds delay each camera at 227 fps. Change here for other scenarios
        • Capture - Recording Mode DELAYED; I set high speed camera frame rate threshold = 235 with display framerate of 30
        • Capture - Video Naming: set for each camera Root Directory (e.g. Kinovea\Swing Videos folder in Documents); subdirectory for each day as %year-%month-%day; Video Name as e.g. “Rear 1” or “Front 1” (can be changed later; incremented automatically).
        • Capture - Automation CRITICAL: Enable Audio Trigger; choose input mic (I use laptop mic); set Threshold (start at 56); stop recording duration of 3.5 seconds; I check Ignore File Overwrite.
      • Save updated Preferences to remain as defaults.
    4. In each Capture Window, set Delay to 2 secs. Videos go into RAM buffer so impact activates sound trigger recording including the prior 2 seconds for a total of 3.5 seconds set in the Automation Tab of Capture Options. If buffer is too small, delay will be limited - must enlarge buffer. [To use cameras as two-way delayed “mirror”: turn off trigger and set delay to 4 seconds: then project video onto hitting screen , take swings and look to see two views at real speed 4s later.]
    5. In each Capture Window, make sure video saving labels for front and rear are correct for each camera. They easily get switched around depending on the order the computer found cameras or the order Kinovea connected. If starting a new session, with, e.g. a wedge, use “PW Front 1” and “PW Rear 1” in Capture Window Video Name boxes and they will be incremented after each save.
    Now swing and/or hit balls. You don’t have to do anything to Kinovea UNLESS you want to review videos for each shot – see later. THIS procedure rapidly saves a series of videos for subsequent examination. The later procedure is for looking at each video pair after each shot. Set up the computer for dual display and put Kinovea on the computer and your golf sim on the hitting screen and happily hit balls as long as HD space allows.

    If Trigger Threshold is too low, you may accidentally record unwanted 3.5 second clips. Usually the system carries on and numbering remains consistent. Once in a while, the two video file names get out of sync (e.g. “front 31” and “back 32”), so it is good to keep checking on capture windows.
    If Trigger threshold is too high, you can miss some swings like short wedges, so I set Options - Preferences - Capture - Automation Threshold to 25 for a series of short shots. For putting, speak loudly after the stroke.

    When you want to shut down, close Kinovea and unplug cameras.

    How to Review Kinovea Videos after Each Shot

    Best approach is to run two instances of Kinovea. Flipping back and forth from two capture windows to two playback windows in a single instance resets the Delay (sometimes video file name). To start 2nd instance I right click on Kinovea taskbar icon; select Kinovea.


    Equipment and Software

    Video Cameras

    Daheng MER2-160-227U3M cameras came from www.get-cameras.com. They are one of 3 types internally supported by Kinovea; 1/3 cheaper than others using Sony IMX273 sensor; global shutter for fast motion. With 10 ft USB 3 cables, tripod mount, CS lens mount, shipping, currency, duty and tax they cost Can $500 each. Options such as IO are not required. Get-cameras.com technical support is quick, thorough and effective.

    1440 x 1080 resolution and 227 FPS is the max combination of resolution and shutter speed to fill USB 3 carrying capacity. 1440 x 1080 allows zoom to see detail. U3M model is monochrome, but color U3C model is same $. Color needs 5 dB higher Gain (max is 24; I operate mono high speed at 18). 3.5s of uncompressed mono video at 227 fps is 1 GB. Color files may be larger. CHECK if it matters!

    Much cheaper and less functional cameras are available as discussed on older golfsimulatorform.com topics:Consult them for camera alternatives. Uneekor Swing Optix and Swing Catalyst use more expensive cameras based on the same Sony Sensor.

    Lenses
    Get-cameras.com does sell lenses but I got my CS mount lenses elsewhere: 2.8 mm f/1.2 (Can$12 from Alibaba) and 3.3-12 mm f/1.4. (Can$65 Arecont MPL33-12A from PC Canada). 3.8-4 mm suffices for cameras 8-10 ft from the golf swing (2.8 mm would work 4-5 ft away). All these lenses have some distortion (more with smaller focal lengths), so if accuracy is important to measure angles or distances, get a non-distortion lens (f-stop might go up to f/2.4). Low f number is important to limit Gain: f/2.4 vs f/1.4 costs 5 dB Gain. Color camera and f/2.4 lens might never achieve maximum frame rate. If frame rate is not important don’t buy these cameras.

    Lighting: My setup has 10,000 uneven lumens in a 20 x 20 ft room. Monochrome means I should wear medium tone clothing to separate myself from dark tones of green hitting mat.

    Monochrome CMOS Sensor IR sensitive: shows flashes from IR based Launch Monitors like GCQuad. Not good to aim a camera directly into GCQuad strobe.

    Computer: Dell G7 Gaming Laptop with 1 TB SSD, 16 GB of RAM, i7-10750H processor, Nvidia RTX 2060, built-in mic and 3 USB 3 ports.

    Software
    • Kinovea (free download from kinovea.org; Beta 0.9.3). Disregard older advice that the Beta does not work for the golf swing – it does now.
    • Daheng Galaxy (Free camera controller from Daheng or get-cameras.com). Use it to set Exposure, Gain and Focus before closing Galaxy and opening other software (e.g. FSX 2020) that can’t control the cameras. Two programs cannot demand access to the same cameras, so Galaxy must be closed after setting the parameters.
    Dual Video Recording in FSX 2020
    1. Using Kinovea or Daheng Galaxy open each camera and set the Exposure/Gain to achieve 30-60 fps. Close this program to release cameras
    2. Start up FSX 2020. Go to Setup Cameras menu. Refresh Cameras. Choose Cam 1. One of the options is Daheng 1 (first camera found by operating system) – choose it. Select the box for cam 2. I don’t know why Daheng Cam 2 is available (if you get DirectShowGX from get-cameras.com), but doesn’t show any image in FSX 2020. However, the laptop camera is available and could be used for front view. Select cam 2 and close Setup menu.
    3. Hit golf shots; videos are saved TEMPORARILY in Program Files (x86)\Foresight Sports Experience\Swing Videos as mp4 files YYYY_MM_DD_HH_MM_SS.00n where n is cam 1 or 2.
    4. Review videos for any shot within FSX 2020 during the session using normal shot analysis pages.
    5. To save videos, copy them elsewhere to avoid deletion BEFORE CLOSING FSX 2020. Foresight uploads videos to FSX Live (if connected), from where you can download them later. Save a round trip into cyberspace by copying them out before closing FSX 2020. Maybe someday Foresight will let us export directly from FSX 2020.

  • #2
    Thanks for this great explanation! If you need a cheaper camera and 60fps is fine, you get the same result with this camera: https://www.get-cameras.com/USB3-Boa...-VEN-161-61U3M

    You can combine it with a 2.5mm lens https://www.get-cameras.com/LENS-M12...2MM-F2.0-3-MD1

    Comment


    • #3
      Thanks for this. Just starting to use Kinovea and this is great info.

      Comment


      • kirkemg
        kirkemg commented
        Editing a comment
        How's Kinovea coming for you. I just set it up with my camera that others have suggested around here and I'm really struggling to set it up easily and functioning correctly.
        Did you come across any other useful sthreads showing a how to?
        d(https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1)

    • #4
      Great info, thank you very much for sharing. Im looking to try and set something up for a low cost, it doesnt have to be perfect, but a camera front on and down the line to show me what my swing is doing would be great! I dont have a lot of room for hte DTL camera, perhaps just 3 feet or so to make sure i dont clobber it with my backswing

      I cant find the dehengs for sale in Australia, but I have found a few CMOS OV2710 cameras for a relatively low price.


      Do you think these might do the trick?

      Comment


      • 14MPH
        14MPH commented
        Editing a comment
        Some other posters here have got a “budget version” working with Kayeton or Spinel cameras, the 120fps monochrome models. I haven’t got this set up so just relaying this from reading those posts. Not sure if this is universal across all launch monitors or only some of them.

    • #5
      Thanks for the info Magilla. Would you help me out, I've ordered most of my simulator parts minus the cameras. I do have the 4KOptoma ZU606TST-W Projector that causes flicker with the Uneekor cameras so that's why I've been looking into alternatives. I see the link that you posted to the cameras. I'm really just hoping someone can post "here's what to order" so I can just buy it.
      Cameras are not my thing. thanks in advance.

      Comment


      • #6
        I got this setup with one camera. Everything works great, except when I save my preferences, it doesn't save any of the settings, and I have to set everything up each time. Any solutions to that? Am I just doing something wrong?

        Comment


        • #7
          Also, my camera triggers on other noises, even though I have it set as high as possible. Is there anything I can do to improve the sound detection?

          Comment


          • #8
            Is there a way to direct the videos to be saved on an external?
            Last edited by kirkemg; 10-22-2021, 02:51 PM.

            Comment


            • preludesam
              preludesam commented
              Editing a comment
              You can change the save path and the bottom of the capture instance or change it under "Preferences". I would advise against using an external drive via USB. The user manual and plenty of comments on the forums cover why this is not a good cheap alternative. Firstly you may overload the USB controller's throughput capacity since it is also handling the camera's data stream plus any other USB devices connected. Assuming you are not using a PCI USB controller and connecting via the motherboard I/O. Secondly depending on how much available RAM you have in the system and likewise how much is dedicated to Captures or Playback (both can be manually set in Preferences) you will likely run into issues with freezing during playback of any video that was not the last capture. The last capture usually sits in RAM until another capture is made. If you try to load a recording (not the last capture) off of an external USB drive it will likely take much longer than you expect. Kinovea recommends an NVMe drive 3rd generation or higher and asks that the drive be separate from the operating system drive. Depending on the cameras they even recommend running separate NVMe drives for each camera as you may run into issues with system resources writing to the same drive at the same time causing hiccups.

              Sorry for the long post but I wanted to make sure you had all the information before you spend on an external USB drive and do not get the experience you are expecting. If you want more information on using Kinovea or its capabilities check out the recently updated user manual.


            • kirkemg
              kirkemg commented
              Editing a comment
              Thanks. Most of what you said is over my head. I just received the two Kayeton camers and DL Kinovea. Intend of using with Skytrak.... Am I going to be OK using my HP Omen laptop (2021)? I dont have another dedicated drive?

            • preludesam
              preludesam commented
              Editing a comment
              Yep, you will be fine. You should have a good experience if you get enough light into the room. I see a lot of people posting questions about reduced club shaft blur from the cameras but they do not have enough light in the room. Exposure time or shutter speed seems like it is automated within the Kayetons cameras if driver/software from the vendor is not supplied. This would mean the more light you provide should give you a better result.

          • #9
            Thanks, this is very useful. I am out to build a sim using gc3 and fsx2020 but I was underwhelmed with the fsx2020 video playback and swing analysis options. What I want to do is see the launch monitor numbers and balll flight while also capturing video that I can play back synchronized dtl and face on video for review. It sounds like this is possible by having fsx2020 and kinovea running concurrently, but wanted to confirm.

            Comment


            • preludesam
              preludesam commented
              Editing a comment
              Yes, you can run both at the same time. Depending on the quality of recording we may need to run over your hardware and make sure you will have a good experience. Whereas running a game or sim is taxing on the GPU, high-speed recording is taxing on the CPU, USB controller, and RAM.

          • #10
            Lenses
            All these lenses have some distortion (more with smaller focal lengths), so if accuracy is important to measure angles or distances, get a non-distortion lens (f-stop might go up to f/2.4). Low f number is important to limit Gain: f/2.4 vs f/1.4 costs 5 dB Gain. Color camera and f/2.4 lens might never achieve maximum frame rate. If frame rate is not important don’t buy these cameras.
            There are a few 125°+ low distortion M12 lenses with F/1.8 that are compatible with most cameras if you use the correct adapters. You can accurately calculate the wide-angle FoV of any of the M12 lenses on our page, with whichever camera you decide to use. These output values include distortion, etc..

            Our scene angle of view calculator can also help you figure out the camera+lens FoV combination which you need.

            Comment


            • #11
              I was wondering about the Kinovea settings for version 0.9.5 vs Beta 0.9.3.

              Any changes?

              Comment


              • #12
                Does anyone know of a way to trim the number of video files in the capture directory as you're continuing to record? I'd like to operate the system continually without having to worry about filling up the storage entirely.

                Comment


                • rastam4n
                  rastam4n commented
                  Editing a comment
                  This is from the Manual, under Preferences, capture, automation

                  "Ignore file overwrite warning
                  This option bypasses the overwrite confirmation dialog when the recording about to start points to an existing file. If the option is checked the existing file is irremediably deleted and overwritten by the new one.

                  This option can be used if you are limited in space and do not need to save all sequences. In this scenario you can continuously record to a single file and manually copy it to a different location only when you really want to keep it."

                  So basically in the video naming tab you instruct it to save new videos with the same name, it will then overwrite every time there is a new video triggered, if you want to keep the video you will need to export it out of the folder Kinovea is set to record in.

                • rdeyer
                  rdeyer commented
                  Editing a comment
                  I clicked the checkbox for ignoring the overwrite warning, but it still creates a new file and increments the name each time. Has anyone been able to overwrite a file in order to keep storage down?

                • preludesam
                  preludesam commented
                  Editing a comment
                  You have to change the video file name to %% and have the overwrite box checked.

              • #13
                Thanks for that. I have seen that option but hadn't considered that use case. I'd like to keep more than just the current swing around if possible. Good to know this is there if I can't achieve my full goal.

                Comment


                • #14
                  Do you have any issues with running 2 cams on Kinovea and a golf sim at the same time? I run TGC2019 off a gtx 1070 card but wonder if it would affect performance a lot by processing 2 cams.
                  TGC 2019 Published Courses:
                  • Sanctuary Lake MI (L)
                  • Pine Trace MI (L)
                  • Deyer National Golf Club
                  • Deyer Island Golf Resort
                  • Sylvan Glen MI (L)

                  Comment


                  • preludesam
                    preludesam commented
                    Editing a comment
                    Yes, but Kinovea is taxing the CPU and not the GPU. Although you will see the same symptoms ie game freezing or stuttering as a GPU issue. You can mitigate some of this by choosing retroactive processing and choosing raw file recording.

                    Depending on your camera selection this can be an issue. For example, the USB2.0 720p 120FPS options are not transmitting the same amount of data as a USB3.0 1080p 226FPS machine vision camera. As you increase the resolution and FPS the load on your CPU increases.

                    Can you list out your PC specs and what cameras you are going to use and we can give you a better idea if you need to think about an upgrade on your hardware?

                  • rdeyer
                    rdeyer commented
                    Editing a comment
                    PC is an i7, 3.2ghz, 16gb ram, gtx 1070.

                    The cams are USB2.0, 120FPS, 720p (see https://www.aliexpress.com/item/33017488541.html).

                  • rdeyer
                    rdeyer commented
                    Editing a comment
                    Is 'raw file recording' the same as 'record uncompressed video'?

                    Where is 'retroactive processing' selected?

                • #15
                  I hate that you cannot attach images to a comment reply...

                  Can you give us the model number of the i7? For example 2600K or 11700K?

                  Yes, raw recording is the same as uncompressed. Well, it's not technically the same but that's what I meant. Sorry about that didn't mean to confuse you.

                  It's under Options->Preferences->Capture->Recording

                  I highly recommended reading the user guide for Kinovea. It has a ton of great information on getting the most out of Kinovea.





                  Attached Files

                  Comment

                  Working...
                  X