Play mp4 video files

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi there! I've played around with different extensions and it seems i cannot get mp4-Videos play within a windows-export - do you may have a hint for me, how to show mp4-videos inside a fusion windows exe?

    i've found for html5, flash, ios, android, even mac-export - but not for windows (just older avi players it seems)


    thanks for your help!

  • Hello, I had lot's of issues with video in the past and I figured it out. Fusion uses external codecs to play mp4 files.

    'FRAME EDITOR'

    - 'Insert' Active Direct Show on a layer in Fusion.


    'EVENT EDITOR'

    1. Start of Frame command - Click 'LOAD' & 'USE EXPRESSION' button on the lower right.

    2. Right click the 2 cogs - Filenames - App Path

    USE THIS CODE HERE: Apppath$ + "demo.mp4"

    "You can change 'demo' to your file name."

    Then make an event - Timer equals 00:01 - Play

    This should work fine, as long as your movie file is in the directory of your project.


    Also if you experience choppy video, set V-Sync to On, and set the frame rate to your movies frame rate.

    Dave,
    DPAD-FTW

    Also, search Google for my game, Ye Fenny. That has lots of video on it and I made the game in Fusion 2.5.

  • Thanks, but it doesnt seem to work here on my pc. the VLC player is playing my mp4 file fine, but within fusion nothing happens actually.
    even the old "DIRECT SHOW" example within fusion folder doesnt show there demo video ...

    may somebody have a working example with fusion and mp4 on windows? thanks ;)

  • MP4 is a much newer file format than Fusion's codebase, and to my knowledge, compatibility hasn't been built in. Your best bet will be to download Handbrake, convert the video to an AVI, and use the DirectShow object to play that.

  • Or just bump and bump Clickteam to support mp4 out of the box, it has been long overdue

    There's probably not much request, that's why it aint a priority...
    but everyone wants to have other codec support, we are just not requesting enough

  • Did you ever find a reliable way to play videos?
    I need to do that as well!
    I also need to be able to pause after time X, create button overlays (only seems to work in HTML5 export)
    Trying to make a CYOA video project ...

    Thanks!
    Scott

    101010 is the answer

  • MP4 does work in Fusion 2.5, follow my instructions and it will work.

    EDIT - If I have time later on, I'll show you an example.

    I'm also finding that MP4s do not play under any circumstances, including the method you recommended. I've also tried MP4s encoded a multitude of ways, including several which are considered native to Windows 10.

  • I've gotten .mp4 videos to work, but it relies on encoders/LAV filters being installed from packs found online. I found this out the hard way when I put a demo on Steam. I changed it to .wmv format and then everything worked out. This format is prevalent on all modern Windows machines and seems to be the most reliable for users without requiring extra installations.

    Please login to see this link.

  • I'm also finding that MP4s do not play under any circumstances, including the method you recommended. I've also tried MP4s encoded a multitude of ways, including several which are considered native to Windows 10.

    MP4 files work fine here, I've just tried a couple of MP4 files without any problem. Make sure DirectShow codecs are installed on your machine.

    Note: in the next update patch, there will be a new "Use Media Foundation with DirectX 11" option in the Active Direct Show object (I see you use the 2.5+ DLC, so maybe your app is in DirectX 11 mode?). Media Foundation is a more modern API and may support more codecs than Direct Show.

  • MP4 files work fine here, I've just tried a couple of MP4 files without any problem. Make sure DirectShow codecs are installed on your machine.

    Note: in the next update patch, there will be a new "Use Media Foundation with DirectX 11" option in the Active Direct Show object (I see you use the 2.5+ DLC, so maybe your app is in DirectX 11 mode?). Media Foundation is a more modern API and may support more codecs than Direct Show.

    I appreciate you checking for me. I've got the right codecs installed because I can play the MP4 videos directly from file explorer. Also, I am running in DirectX 9 mode, which I think provides the best compatibility at this point.

    Is the Media Foundation addition included in a beta release, or do I need to wait for the next official patch? I assume I will have to change to Dx11 mode in order for this to function?

    EDIT: Also, WMV loads consistently, and I won't have to worry about end users needing to install codecs, but it won't allow me to change the playback speed. Is there any known workaround to this problem?

    Edited once, last by CruddyBuddy (May 27, 2020 at 10:07 PM).

  • Out of curiosity, what are you using to render your mp4 videos? The mp4 format itself is a wrapper and the renderer is where the codecs come in to play. Some codecs used for rendering didn’t always work for me in Fusion, but eventually I used Adobe Premiere and their stock codecs worked. I can’t remember which ones didn’t though.

    You could try another codec when rendering the video and see if that maybe does the trick in the meantime for mp4.

    Please login to see this link.

  • Out of curiosity, what are you using to render your mp4 videos? The mp4 format itself is a wrapper and the renderer is where the codecs come in to play. Some codecs used for rendering didn’t always work for me in Fusion, but eventually I used Adobe Premiere and their stock codecs worked. I can’t remember which ones didn’t though.

    You could try another codec when rendering the video and see if that maybe does the trick in the meantime for mp4.

    Thanks for the suggestion. I've used VirtualDub, Adobe Media Encoder, and several others with different mp4 codecs like x264. They all play if I run them in "Movies and TV" or "Windows Media Player" so I don't think it's an issue with my codecs not being installed. Really, I would just stick with WMV if I could, because I'm getting some really good quality and compression from it, but I can't control the playback speed, or "Set Position" to jump to a different part of the video, so I'm stuck with either uncompressed AVIs that are like 50MB/s or WMVs that cannot be controlled.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!