Forum rules - please read before posting.

Brief black frames swapping between video clips in video player

Hello, I'm working on an FMV game that's really coming along wonderfully thanks to Adventure Creator (and y'all being so helpful in here!)
One thing I'm still struggling with is when the video player moves from one clip to another within the same scene (something that happens many many times), I always see a moment or two of a black frame before it's able to move to the next video clip, even on a pretty powerful PC. Is there any way around having these frames appear, so the player just sees the shots cut seamlessly together?
Thank you!
-Reis

Comments

  • I'll need to get a few details about the exact setup. I'm not clear yet if this is down to Unity or AC.

    What are your AC and Unity versions, and are you using a single VideoPlayer for each clip, or separate ones that already have the intended clip assigned in their Inspectors?

    Any screenshots you can share of the setup (Inspectors, ActionLists) will help clarify the situation.

  • Adventure Creator version: 1.80.5
    Unity version: 2022.3.22f1
    Screenshot 1: https://drive.google.com/file/d/1h95TG3loezgOQfuel5aKnjceYaTk0BeB/view?usp=sharing
    Screenshot 2: https://drive.google.com/file/d/1SSwc0VmT2IVYaizj9ke4QQLBGOgKvUap/view?usp=sharing
    Screenshot 3: https://drive.google.com/file/d/1UVv-Yi8aKPqx7iScbiOyBlOkIsz6TY0g/view?usp=sharing
    Screenshot 4: https://drive.google.com/file/d/1pLdpnXjl87qbcAsUWdpFy0RJxqJ-H8Ek/view?usp=sharing

    I do constantly see a warning when running the project: 'Playerstart 'Playerstart2D' has no Camera on Start', however this hasn't seemed to cause (other) issues and I assumed it was expected given this is an FMV game and I'm not using traditional player controls.

    Thank you again for the help.

  • edited July 2024
    Oh, and I realized I didn’t really directly answer your question; as you can see from the screenshots, I’m using one video player, and calling it to play a new clip repeatedly.
  • Thanks for the details.

    I expect this is due to use of a shared VideoPlayer for all clips - as swapping out one clip for another would require a moment for the new data to get loaded in.

    You can test if this is the case by creating a separate VideoPlayer for e.g. the "A product recall" choice in your ActionList, directly assigning the "S1_D1_.." clip in its Inspector (and unchecking Play On Awake), and then playing it with an empty New clip (optional) field in the Engine: Play movie clip Action.

    I do constantly see a warning when running the project: 'Playerstart 'Playerstart2D' has no Camera on Start'

    It's safe to ignore, but you can remove this by setting your Settings Manager's Movement method to None.

  • Hello @ChrisIceBox, unfortunately I believe I correctly implemented this- as you can see in this screenshot- but I'm seeing no change; there's still a short moment of black screen between the clips.
    https://drive.google.com/file/d/1vOJFqk0ZNzdtF1Wsd9W3ZnSa_96aGOVj/view?usp=sharing

  • Try unchecking Wait For First Frame in the Video Player component's Inspector.

    If that has no effect, try the following test:

    • In the first Action, check Player can skip?, and enter in an Input button (defined in the Input Manager)
    • Press that input while the first video runs to skip the video

    Do the black frames still appear?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.