1. This Software is no longer supported by us. Please download the new motion control software SimTools.
    Dismiss Notice
  2. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  3. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  4. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  5. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Video plugin needs fix?

Discussion in 'Force-Sender & Plugins' started by tronicgr, May 27, 2009.

  1. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi,

    I was trying to get video plugin working but it seems to crash very easily, or display black video image unless I drag around the window. The most annoying thing is that it crashes to desktop every time I try to get the video played full screen.

    I have a link to the video I use along with the accelerometer / gyro data that was recorded with it here:
    http://rapidshare.com/files/237943857/example_5dof.zip

    Inside the zip file there is a photo of the settings I use to import the txt file that contains the motion data.



    To understand better what I try to do take a look on the following video:

    http://www.youtube.com/watch?v=_kYr23VTXKw

    http://www.youtube.com/watch?v=_kYr23VTXKw



    For datalogging the motion data I use the Sparkfun Logomatic v2 and for sensors the 5DOF IMU:

    PICT2752.JPG

    PICT2755.JPG


    Best Regards, Thanos
  2. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Anyone tested this yet? Can you confirm the crashes (like when pressing to view the video fullscreen?

    Or it is my windows video codecs issue? :sos:


    Regards, Thanos
  3. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Oh, Thanks!!!! Disabling the overlay option in mediaplayer's options, really did the trick!!!!

    The video plugin is no more crashing with fullscreen button!!! Thanks!!!!!! :cheers:


    BTW, the example zip file link works fine !! But it doesn't matter, I'll probably make a new one with my GoPro Hero Wide camera mounted on my motorbike... :lol:


    Regards, Thanos
  4. sterlingchristopher

    sterlingchristopher New Member

    Joined:
    Mar 16, 2009
    Messages:
    2
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    I need to incorporate this into our trip to the amusement park this summer! :yippiee:

    Did this example make anyone wonder if it's possible to acquire motion data from a pre-recorded video segment that can be sent to the motion platform. There is recognition and motion tracking software in some of our surveillance systems, but not sure it can be possible to interpret the motion based only on what is seen. The human brain can do it, but we're still behind that learning curve I'm sure.
  5. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi sterlingchristopher,

    Why trying to add motion data to existing videos, while you can shoot your own footage with real motion data captured realtime synchronized to your video?

    Imagine that you can just take your camera and the datalogger/sensors to your vacation and film anything you like, from car or bike sports, rollercoaster rides, windsurfing, flying airplanes or diving sessions with waterproof equipment!!!! Then you can just share with your friends some of the cool parts back home on any DOF motion platform you have available!!! :snack:

    It gives a new meaning to the sharing memories term!!!!! :brows:


    Regards, Thanos

    Attached Files:

  6. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,656
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,862Coins
    Ratings:
    +1,999 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Hi Thanos,

    where is the link to your video? I can only download the zip with g-data.

    Also, please tell me costs of Sparkfun Logomatic v2 and 5DOF IMU. Sounds like a expensive toy :)
    Absolutely a great way to share sportive trips.

    regards
    René
  7. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi Rene,

    The rapidshare link http://rapidshare.com/files/237943857/example_5dof.zip contains three files in it. One is the test video itself (Pict2756.avi) and the other you need is the TXT file called LOG07.txt that contains the motion data.

    In order to make it work you should open the Video-plugin and load first the video Pict2756.avi. Then from the menu of the video-plugin window you must Import the LOG07.txt. In the configuration screen that appears when importing motion data file you have to choose some settings that declare the sample rate of the captures data and the amplification of its values if they are too low. These settings can be seen in the third file inside the zip called test motion video settings.jpg

    You may need to swap the Longitude and lateral data lines, as I had connected differently the sensor board from the default values in the video plugin. BTW in this test video I used a normal narrow type video camera, not the GoPro Hero Wide

    About the Logomatic and the 5DOF IMU... The complete device consists only by these two little boards, connected to a 3.7v lithium from a mobile cell phone!!! The battery is charged over the USB cable when the device is off.

    DSC00445sm.jpg

    If you turn on the device after you connect it on computer USB port it appears in the drives like a flash disk drive that gives you access to the MicroSD card contents. Now the really cool part is that Logomatic creates a TXT configuration file that is used to determine the number of ADC channels used and the rate of sampling. For 5 channels I could achieve 250hz sampling rate that equals to 4ms delay in profiler video plug in!!!! Almost as fast as my AMC cycle rate!!! The best part is that Locomatic has onboard voltage regulator and output pins for powering external 3.3v compoments. So the 5DOF IMU is powered through the Logomatic from the same battery!

    DSC00443sm.jpg


    Here is the Logomatic's configuration TXT contents:

    Code:
    MODE = 2
    ASCII = Y
    Baud = 4
    Frequency = 250
    Trigger Character = $
    Text Frame = 100
    AD1.3 = N
    AD0.3 = Y
    AD0.2 = Y
    AD0.1 = Y
    AD1.2 = N
    AD0.4 = Y
    AD1.7 = Y
    AD1.6 = N
    Saftey On = Y

    I bought both Logomatic v2 and 5DOF IMU from Sparkfun relatively cheap from other similar products around:

    Logomatic v2 Serial SD Datalogger:
    https://www.sparkfun.com/commerce/product_info.php?products_id=8627

    IMU 5 Degrees of Freedom:
    https://www.sparkfun.com/commerce/product_info.php?products_id=741

    And you will also need this cable for the JST mini power connector of the battery:
    https://www.sparkfun.com/commerce/product_info.php?products_id=8670


    You can use any MicroSD card up to 2GB with logomatic. These cards are quite cheap these days!


    Regards, Thanos
  8. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    I still need some help with the video plug in. It keeps crashing for no reason on random. Here is the error message it gives, before the video-plugin closes:

    rollercoasterplugin_issue.jpg



    And another issue that is even more important at this time is how to properly sync the video with the data. It seems that even If I give the correct values in seconds in the offset box, it keeps the same wrong sync. What is used in Offset value? Seconds, Microseconds? What? And will negative values work too?

    import_motion_data_offset.jpg


    Regards, Thanos
  9. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,656
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,862Coins
    Ratings:
    +1,999 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Hi,

    i tried last night for some hours the video plugin with your g-logs and video daa.

    Results as follow:

    - no sporadic crashes, so i can not reproduce that. Maybe your video codecs are broken? You could try another xp installation to see if it crashes nevertheless.

    - The length of te video and the timeline of the g-data sequence starts and stops syncron with the movie, but the effects does not fit excactly to the movements. It looks like when the g-data stream is shrinked or stretched to fit to the movie stream but that can not be as the setting is do not change timemorph

    Recording interval of 4ms by the logger is correct?

    What means data offset? The manual describe it as middlevalue...i can not imagine wherefore it is.

    I had another problem, but i hope thats is only a configuration mistake made by myself in the profiler:
    I did yesterday my first own math settings in the profiler for the video plugin, but only longitudinal movement was interpreted by my scn5 actuators, even though the lateral effects was shown correctly in the math dialog, when running the video. Really strange...think i have to read the x-im manual however ;D

    Btw. is there a option to all delete math settings all at once and to reset them to make new settings from the start?
  10. sterlingchristopher

    sterlingchristopher New Member

    Joined:
    Mar 16, 2009
    Messages:
    2
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    @ Thanos,

    That is an excellent point, being able to relive or share the experience on-demand is very exciting. I need to get a working platform off of the ground and start data-logging this summer. The SCN5 setup seems great, but I don't want to stop there.

    I can really see this community benefit from sharing platform setups, but actually now having the ability to share synced motion and video data is amazing :cheers:

    Thanks, Chris

    Attached Files:

  11. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,656
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,862Coins
    Ratings:
    +1,999 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Yes it is really great...but at first before start sharing our videoprofiles the sync issues have to be fixed or better described by sirnoname. I only repeat the problems Thanos approached, otherwise sirnoname probably read over that post and we don´t get the nescessary answer ;)

    regards
  12. Imaginex

    Imaginex New Member

    Joined:
    Apr 22, 2009
    Messages:
    8
    Location:
    London, Canada
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi!
    I didn't want to create a new post & this thread seemed appropriate.
    having some challenges with the video editor 2.0;
    save project is pressed and a file is created with the extension .fs2 (same directory/file name as the video);
    when this file is double clicked the video editor opens but no video or axis data appears;
    here is an example of the beginning of a .fs2 file using only the roll axis:

    [FileData]
    Path=C:\Users\John\Desktop\Simtestvids\testvid1.wmv
    Duration=1159
    [Data]
    Block1=000000000000000000AB0000000000560000000000000000000000AB000000000056000000
    0000000000000000AB0000000000560000000000000000000000AB00000000005600000000000000
    00000000AB0000000000560000000000000000000000AB0000000000560000000000000000000000
    310000000000610000000000920000000000C20000000000F3000000000023000000000054000000
    0000840000000000B40000000000E50000000000150000000000460000000000760000000000A700

    the actual loading of the video and axis editing seems to be fine...
    here's a screen shot at the time of saving project
    video_editor2_a.jpg

    have tried a number of different videos in different formats - same problem;
    also, X-Sim Wiki refers to the axis data file as an .fsm type file - not a .fs2 type, and indicates
    Also you have to load the Video plugin .rn2 simulator profile file in the profiler2
    guess I'm generally confused about using the video editor....

    any ideas would be much appreciated
    thanks!

    ps - OS is Vista 64