Does the SEEK node only work with a 30fps video?

Hi everyone,
I am struggeling with the new Media Framework since some weeks now.
In my project I am switching between different videos to play on a mesh. When I switch I want the new video to start at the same time as the old video is playing when I switch.
I’m doing it with the “Get Time” node of my first Media Player. This I plug in to the “Seek” node.
Somehow my videos would’nt start at the same time as the playing video is, but they start some seconds before. So if I switch at 7 seconds playback time the new video starts sometimes at 3 sometimes at 4 seconds…

Is it maybe because the videos have a framerate of 25? Or is there something I missed?
By the way, my videos are mp4 with a h264 codec and have a resolution of 3000x1500. Also I tried to load .wmv but this didn’t solve the problem.

Greetings
Evil_Fischi

Your Blueprint seems to be seeking to the current time. Did you intend to set a different time or add an offset?

Your Blueprint seems to be seeking to the current time. Did you intend to set a different time or add an offset?

Also, you won’t be able to seek until the media is fully opened.

I would try the following approach:

  1. Create two MediaPlayers, one for each video
  2. Disable the “Play On Open” box on both of them
  3. Wait for both players to call their OnMediaOpened event
  4. Now you can call Play, Pause, Seek, whatever

Seeking in general won’t be instantaneous. I think your only option for instantaneous switching of two videos without gaps would be to play both of them in parallel, but display only one, i.e. reassign the MediaTexture asset between players.

If you’re already doing all this, and the problem is that there’s a noticeable (and variable) delay between calling Play and actually getting the first frame, then things are going to get more complicated. You could maybe try to listen to PlaybackResumed on both players, Pause on the first player, then Play both players when the second player sends it.

We do not currently have a mechanism to time sync multiple players. This is a difficult problem that we’re investigating for 4.15.

\howdy,

Any luck with this in 4.15 preview? would be great to be able to frame sync video textures to the level sequence also … does it seem likely this will make into 4.15?

chrs

No, I’m currently working on that for 4.16.

roger that , thanks for letting me know!

Hi,
ther’s any news about having a mechanism to time sync multiple players exactly?
Thanks