User Tag List

Results 1 to 9 of 9

Thread: Direct show: problem loading a video file

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Direct show: problem loading a video file

    Hi everyone,

    Direct show or Active Direct Show will load and play a video when path is manually selected but it won't when path comes from the expression editor.

    (Direct show will load and play an audio file from path in expression editor. So it seems to be a problem with video files.)

    (Video will play in Windows Media Player.)

    Anybody knows what's going on?

    Thanks,


    MB

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok!

    I tried everything again within a new app.

    It seems the problem comes from, well, me! :-p

    I'll figure out where my mistake is! ;-)

    MB

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What did you put in the expression editor? It may just be a simple syntax problem.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This:

    "Edittext$( "Edit Box Dossier video" ) + List Select$( "List Fichiers videos" )"

    Edit box text is:

    "C:\Users\Michel Bastien\Dropbox\Travaux_divers_UQAM\Expé_Caro\pars our\Test_vide\"

    Current line is (for example):

    "02_percep.mp4".

    And it doesn't work! (Although it works fine in a new app I just developed to diagnose.)

    Could my app code be corrupted, one way or another?

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will assume you didn't put quotes "" 's around the actual expression by accident, otherwise it would interpret it as a string literally.

    That slash at the end is important, if it was missing from the text box, that would explain why nothing played. (it could result in "C:\folder\folderfile.mp4") - An extra slash wouldn't matter if that was the cause, but it doesn't hurt to add one anyway, like this:
    Edittext$( "Edit Box Dossier video" ) + "\" + List Select$( "List Fichiers videos" )

    It would be very unlucky if it was a corrupted MFA, but it could be something very simple (like an extra space somewhere) -- Was the MFA originally saved from MMF2?

    You could try setting the expression to a global string / string object and see what it comes out with in the debugger, this may help identify if it is a syntax error or definitely a MFA bug.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Was the MFA originally saved from MMF2?"

    Yes. I've been upgrading this app since 2010.

    "You could try setting the expression to a global string / string object and see what it comes out with in the debugger"

    Ok, I'll take a look.

    Thanks!

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Path looks clean in the debugger when I set the expression as a global string.

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, this seems pretty unusual. As you confirmed the original MFA was saved from MMF2, there could be slight corruption when it was converted to Fusion 2.5's MFA version for the first time.

    I can only suggest 2 things that may or may not work:
    - Try removing all DirectShow objects completely from the MFA (so it won't appear in the extensions tab in Data Elements), save it, close it, re-open it and re-add the DirectShow object again and see if it happens.
    - Or, copy all your frames / global events / named global variables into a brand new MFA (still keeping your original application events) ← If it this fixes it then you know for sure it's a corrupted MFA... "but how?" should be the next worry.

    Of course, you could try build 284.1 beta, although there hasn't been any changes to DirectShow that would fix anything. If you do, make sure to backup your MFA before trying the beta!

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "- Or, copy all your frames / global events / named global variables into a brand new MFA (still keeping your original application events"

    I did. I copied all objects but Direct show and all events but the ones relative to Direct Show in a new 2.5 MFA. I added new events relatives to DS in new MFA. And it works!

    Great!
    Thanks lh37!

    Cheers,

    MB

Similar Threads

  1. Direct show - play avi file??
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th November 2012, 06:56 PM
  2. Active Direct Show doesn't show the image of MP4(H.264) video
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th November 2012, 04:47 PM
  3. Problems with Active Direct Show video playback in display mode DirectX9
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th December 2011, 04:06 PM
  4. Direct Show problem
    By piscesdreams in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th December 2007, 08:50 PM
  5. direct show / agrandissement de vidéo
    By REM in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th December 2007, 02:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •