Support SFMLab on Patreon

Keyframe MPC Sync Script V1.1


Description

This script is for syncing Reference video between the player Media Player Classic Home Cinema and SFM.
the player can be downloaded Here
this works with both 32bit and 64bit ver.

!embed

Important player setup step!

Before using the script and after installing the player
open up Mpc-hc then go to view-->options-->web interface and enable listen on port 13579

setup Instructions

  1. Move the folder “keyframe mpc” to “SourceFilmmaker\game\workshop\scripts\sfm\mainmenu\”

  2. Move file “core.py” to “SourceFilmmaker\game\workshop\scripts\”

  3. Move the folder “requests” to “SourceFilmmaker\game\sdktools\python\2.7\win32\Lib\site-packages\”

  4. For the video player you have two chooses.
    One is to move the file “keyframe mpc.exe” to the same directory as the mpc-hc.exe i.e somewhere
    like “C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\”. Then after its in the same folder run
    it to make sure there’s no error if there try the setup file in the install folder and move the .exe like before.
    The second option is to just use the normal mpc-hc player with the script ”keyframe_mpc-hc.py”

There are two versions of this script keyframe_mpc-hc.py & keyframe_mpc-vb.py.

keyframe_mpc-hc.py

this version just uses the normal player, nothing special

keyframe_mpc-vb.py

this version uses a vb.net container to add two features.

  1. change the windows opacity (make it see though)
  2. making the window click-though-able. lets you animate with the player overlapping the view port
    Note this Version is experimental and may not work well

if sync is checked and you click current then the script timeline will change to the current shot. moving the SFM timeline head over a different shot and re clicking current will scale it to that shot as well.

frame-step makes it so each time you move the slider the player will move 1 frame forward or back instead of moving the player to that exact frame number. due note frame step is less lagging then the other option.

Known Issues

  1. moving the slider fast lags the player or freezes.
    right now im not sure if its my code or that the player was not made to update that fast. for now use the arrow keys to move the slider and go frame by frame slower.
  2. when using frame-step moving forward for a few frames then back quickly skips frames.
    this is a bug in the player itself
  3. the player does not seek accurately
    open up Mpc-hc then go to view-->options-->tweaks and play around with the fast seek option.
  4. strange glitches in the video
    Hardware acceleration is most likely not working correctly. Try going to Options → Internal Filters, click Video decoder, set “Hardware decoder to use:” to “None” and then reload the video. or play around in the settings until you find what works.

The mpc-vb player program was made in Visual Basic with visual studio 2012 the source files can be downloaded here--> https://www.dropbox.com/s/jphacasef5i2iif/videoplayer.7z?dl=0

Feel free to modify the script for your own use
if you find any bugs or have suggestions message me in the comments below.



Comments

fl_studio

thank you

fl_studio posted 3 years, 1 month ago

eazygoing

very usefull, i will try that out thx!

eazygoing posted 3 years, 1 month ago

StealthClobber

The Keyframe MP version of this script has been super helpful for me. This version with the vb.net container should prove to be even *more* useful. I'll have to check it out.

StealthClobber posted 3 years, 1 month ago

StealthClobber

After using it for a while (and having to tweak the script to change the location it seeks the keyframe mpc.exe from), it really has too many bugs and problems to use it over Keyframe MP IMO. Mainly the player lagging behind the keyframe script.

StealthClobber posted 3 years, 1 month ago

ToXiiKGaminG

mmmh. I followed the instruction and SFM saying : "MPC not found. Please update the path" when i try to launch with the keyframe-mpc-vb. And for the keyframe hc nothing poped up

ToXiiKGaminG posted 3 years, 1 month ago

msu355

@ToXiiKGaminG, you installed Media Player Classic Home Cinema right? if so then its probably installed some where else besides the default directory. open the keyframe_mpc-vb.py script file to edit line 95 & 96 so it matches the same path as the "keyframe mpc.exe" file. "keyframe mpc.exe" and Media Player Classic exe needs to be in the same directory. then edit the line 94 in the 'keyframe_mpc-vb.py' file so it goes to the media player exe file.

msu355 posted 3 years, 1 month ago


Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon