Go to "menu" when h.264 video ends

Hi there
I am working with Director 11.5 on Apple Mac.
I am looking for some code that will keep my h.264 video sprite playing until it finishes and then go to a marker such as "menu"
For some reason, all the codes I have tried so far don't work. Is this because I am on Mac or maybe because these codes don't work with h.264 video?

If you are using the built in MP4 asset, you would compare the sprite's currentTime to its duration.  When the current time reaches the duration, you go to your menu.
See the docs for that MP4 Asset:
http://help.adobe.com/en_US/Director/11.5/UsingScripting/WSCD0716BB-53F6-44b9-8D20-0CEDC6C 5E8A1.html

Similar Messages

  • Jumping back to the dvd menu after video ends.

    Helloooo, I have Dvd Studio Pro 3.0.2.
    1. When my movie/video ends it just goes to a black screen. How do I make it so it goes back to the start of the dvd menu?
    I know I have to use a script or something its just how do I go about it. Is there any step by step instructions anywhere on the net for this type of thing. I have tried the dvd studio pro help and can't seem to find what i am after.
    2. Also I have TWO MENUS and the first menu is like the intro, and the second is the actual menu where you play movie etc...
    Can I make it so when the first menu is done playing the intro it goes to the second menu. Cause there is no timeline for the menu. I just want an intro and then the menu!
    Cheers

    This is the help stuff in the DVD STUDIO PRO saying about the JUMP thingy for the scripts.
    I have applied it and nothing happens.
    I know you have to put the JUMP command and then where you want to go. (Main Menu)
    Nothing happens I have tried for hours to try and get it and it doesn't go back when i use the simulator.
    1 Create a script and select it.
    2 Enter Ocean End as the script’s name.
    Note: Enter Beach End and Trail End as the names when creating the scripts for
    the other two tracks.
    3 In the Script Editor, select the first command line (Nop).
    4 In the Script Command Inspector, choose Jump as the command.
    5 To configure the jump command, choose Tracks and Stories > Beach > Marker 1 from
    the Jump To pop-up menu.
    Note: Choose Tracks and Stories > Trail > Marker 1 and Tracks and Stories > Shopping >
    Marker 1 when creating the scripts for the other two tracks.
    6 Add a compare function to the jump command to test to see if a Play All function is
    in process.
    • Select the Compare Command checkbox.
    • Choose GPRM 0 as the “Execute if” element to be compared to.
    • Choose equal (=) as the “is” compare operation type.
    • Choose Immediate as the “to” element type to compare.
    • Enter 1 as the “with value.”
    If GPRM 0 has a 1 in it (indicating the Play All function is in progress), this jump
    command occurs. If not, the script moves to the next command line.
    7 In the Script Editor, click the Add button.
    The next command line (Nop) is added to the script.
    8 In the Script Command Inspector, choose Jump as the command.
    9 To configure the jump command, choose Menus > Main Menu > Button 1 from the
    Jump To pop-up menu.
    All I am guessing is that how does it know when the movie finishes. I am just putting in a jump command in. like it seems i have to do something else.
    Help me please!!!!

  • DVD doesn't return to main menu when reaches end - Why? How?

    My DVD plays through full movie and then essentially just stops at the end vs returning to the main menu. The menu button doesn't even return it at that point. What can I do to make it return to the main menu when it reaches the end?

    I'm having a similar issue...
    In all the previous projects I've created with iDVD, the movie always automatically returned to the DVD main menu at the very end of the presentation.
    On my current project using iDVD 6.0.2 (787), this is not occuring. At the end of the DVD presentation, the screen continues to stay black until the "stop" button is depressed.
    I'm obviously frustrated because I have looked everywhere in "iDVD Help" and within the on-line support discussions for an answer, but to no avail.
    I don't think that it's a DVD media issue because the problem occurs on iDVD when previewing (and obviously on the DVD media after burning).
    Does anyone know why this is happening? Is there a special command, tool, or secret handshake I need to provide in iMovie HD, or iDVD? Any insight is most appreciated.
    -j

  • How do I get to a sub menu when video is playing?

    when I have navigated to a Chapter Index submenu and am playing a chapter, I want to be able to return to that submenu if I hit the menu button. right now it only returns to the main menu. How do I direct the focus back to the submenu?
    This could be from either a track or a story.
    Thanks
    Powerbook G4   Mac OS X (10.4.1)  

    I think that Eric has it wrong. If you test exactly what he suggests you will still be taken back to the first menu when you press the menu button.
    Ideally you want to return to the same menu that you started from, and with the same button highlighted. In some cases you might want to highlight the following button, on the assumption that the user is progressing through some videos, but in most cases I think you want the same button to be highlighted.
    In the outline list, select any item that can be jumped to, whether it's a track or a story. When it's selected look in the inspector, and set the Menu button option in the Remote Control area to take you back to exactly the menu and button that would take you to that item in the first place.
    Also set the end jump for the item to be the same menu and button.

  • When exporting a video slideshow to my desktop it will start and then just end with no progress so I have to cancel it.

    When exporting a video slideshow to my desktop it will start and then just end with no progress so I have to close it out.  I get no warnings or any explanations. Any ideas?  I am running Windows 7.  No problem viewing it in LR.  Thanks

    Found out LR wasn't stopping but slowed way down. For 19 pictures, no video and no sound it took over 6 Hrs to export.  Does anyone have any ideas to help this?  Thank You.

  • When video ends go to timeline label

    Hi Everyone
    I am using this code to play a video when a user clicks on a button:
    function clicked(event:MouseEvent):void {
    var video:Video = new Video();
    addChild(video);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.client = {onMetaData:ns_onMetaData, onCuePoint:ns_onCuePoint};
    video.attachNetStream(ns);
    ns.play("video.flv");
    function ns_onMetaData(item:Object):void {
    trace("metaData");
    video.width = item.width;
    video.height = item.height;
    video.x = (stage.stageWidth - video.width) / 2;
    video.y = (stage.stageHeight - video.height) / 2;
    When the video ends I want to go to another part of the timeline. How can I do this?
    Hope someone can help!
    Many thanks!

    Many thanks Andrei!! that did the trick! (sorry Andrei I was meant to mark your reply as the correct answer!)
    ns.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
    function statusHandler(event:NetStatusEvent):void
        trace(event.info.code)
    switch (event.info.code)
            case "NetStream.Play.Stop":
                trace("next");
    gotoAndPlay(2);
                break;

  • Why did my browser completely glitch when a video ended?

    I was watching videos on Smosh.com, formerly without any problem, but as soon as a certain video ended, the top bar (the one with the Firefox menu and the button to close the browser) disappeared. I eventually brought it back by pressing F11 a few times (although now it is squished into a space half as big as before). Unfortunately, I can't press the "x" now, it looks aesthetically unappealing, and it is taking much longer to load (that could just be my connection). It works in full screen, but I hate that mode! What happened, and how can I fix it? (I can close it using Control-Alt-Delete, but it is

    You can check for problems caused by a recent Flash 11.3 update and possibly downgrade to Flash 11.2 or 10.3.
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
    *https://support.mozilla.org/kb/flash-113-crashes
    See also:
    *Classic (Small) Toolbar Buttons: https://addons.mozilla.org/firefox/addon/cstbb/

  • 720P 30 H.264 videos stutter when played back on Windows

    720P 30 H.264 videos stutter when played back on Windows
    I have an interesting problem that I am hoping someone can help me with.
    I have several short videos (2-4 minutes) in 1080i HDV that I have edited in FCP. When output to 720P 30 H.264 in Compressor at either 10 or 6 MB they look just drop dead gorgeous when played back on either of my dual processor Macs.
    However when played back on a Windows machine with QuickTime 7, they stutter to the point that playback locks up. This happens on 1.5 GHz to 3.2 GHz P4 class machines with 512 MB to 1 GB of RAM and 64 to 128 MB video cards. On the 3.2 GHz P4, the processor utilization peaks at 100%. The interesting thing is that all of these same Windows machines have no problem playing back 720p 24 trailers at 6 MB.
    Thanks all.

    First a correction. I am using the latest version of FCP – 5.
    Regarding the encoding, I have tried going from native HDV MPEG-2 to H.264 at 720P from 10 to 4 MB at 24, 30 and 29.97. The Mac seems to play everything back very well, but most PCs (the latest IBM T 40 – 43 series laptops) a couple of Dell desk tops (2.6 GHZ with 64 and 128 MB graphic cards) and a 3.2 GHz Shuttle PC with a 128 MB graphic card (that we routinely use to decode four MPEG-4, 4CIF images simultaneously and display on a 42” ED Plasma) choke/stutter to varying degrees with processor utilization hitting 100%.
    So, the real issue here is what is the difference between a 720p trailer that I can download from Apple and what I can output using Compressor 2 at a similar data rate – other than the frame rate?
    And why does the Compressor output stutter on most PCs?

  • When recording a Video demo slide in Captivate 8, pressing the [END] key takes more than a minute to stop the recording. Why is there such a lag?

    When recording a Video demo slide in Captivate 8, pressing the [END] key takes more than a minute to stop the recording. Why is there such a lag? Additionally, the software I record experiences terrible lag times. For instance, It may take 15 seconds to display a 2-digit number I typed into a blank field. the same software has no lag issues when I'm not recording it.

    Yes and no. The CPTX file is on my PC. Our software that I'm making the demo of is on the network. but I'm not the "IT Guy" so I can't provide specifics; however, I work at a computer software company and we probably have more servers than employees. The network hardware is kept current. I've been making similar tutorials for 10 years and haven't run into this issue until switching to the subscription Captivate.

  • Video play drags - Why does H.264 video drag when played using iPhoto?

    I recorded video using a Canon HD camera (VIXIA HFM301). I downloaded the video to my MacBook Pro. When selecting the video from my photo library to watch, the replay drags; almost looks like the video is blurry. When i download to my old PC, it does not drag.

    Material from a Camcorder goes into iMovie for processing, not iPhoto. Then you export the finished work and import it to iPhoto or wherever you choose. iPhoto is designed to get lightweight video from point and shoot cameras, not material from camcorders.

  • Video end action - load new page

    How can I create/add an end action to load a new page once an HTML5 video has played?  Basically trying to have a menu, play videos full screen and have browser return to home page/main menu at the end of the video.  Need to do this in a browser for a kiosk, not use DVD player software so that I can eliminate on-screen controls.
    Rick

    The FLVPlayback class comes with a "complete" event that fires off once the video ends.
    Give your FLVPlayback an instance name and simply apply this code in a frame script on the same frame (30, 60, etc). For example if you gave it the instance name myFLVPlayback, then:
    // import event
    import fl.video.VideoEvent;
    // attach event to instance name 'myFLVPlayback', run onCompleteF when at end
    myFLVPlayback.addEventListener(VideoEvent.COMPLETE, onCompleteF);
    // function that fires
    function onCompleteF(e:VideoEvent):void
         // do what you want here, for example,
         // go back to frame 1
         gotoAndStop(1);
    If the user pauses the video, do note that this event won't fire. The video must play through to completion for this event to fire.
    Also note some not-so-perfectly formed videos can cause the FLVPlayback component to fail to detect the end of the video or fire off this event. This has happened a lot less lately but it has been known to happen. Give it a try!

  • Momentary gamma shifts in PS-CS6 composed image h.264 video

    Before I finalize a bug report, wonder what others are seeing?
    Having discovered the problem in a more complex scenario, I've narrowed down to a simple set of jpg images placed sequentially in a video group, and exported as an h.264 video from Photoshop PS6. All is on Windows 7 Professional SP1, all software involved completely up-to-date.
    I first noticed the gamma shift using the 'High Quality' preset. It occurs with variations on Vimeo 29.97 and Youtube 29.97 presets. The gamma problem does not occur on HD 720p or 1080p 29.97 presets.
    When I view the resulting video through Quicktime, I see a gamma shift for a moment on the first image, making it look washed out. After another moment, the gamma goes back to normal. On other players such as Windows Media or VLC, no such shift is visible.
    Interestingly, the shift comes at 1 second when exporting to the Vimeo 29.97 preset, or 'High Quality', while at 3 seconds on Youtube 29.97. Similarly, the shift back occurs at 2 seconds, or 6 seconds for Youtube.
    What the gamma shift looks like sounds like the now age-old Apple Quicktime fault on h.264. -- except it occurs only for one or a few seconds, then reverts to proper gamma, instead of continuing..
    With the simple setup of single image (jpg) sequence, it occurs only on the first image. With a more complex scenario, some actual videos included, I've seen it occur on every jpg -- or on some -- in a sequence.
    This is very repeatable here - 100%. Anyone else who's noticed it? I'm on the CS6 trial, and still thinking whether to purchase, or go on the Creative Cloud.
    Regards,
    Clive

    We're seeing a worse issue when exporting in H.264 and playing in QuickTime 10.0 (Mac OS 10.6).  We are using a custom size video to fit a spot on our website (398x498).  When exported and played in QuickTime 10.0 the white inverts throughout the video (back and forth).  The same issue is not seen when viewed in VLC or QuickTime 10.1.
    This is how the video should look:
    And this is how they are appearing:
    But like I said, the issue is very specific to QuickTime 10.0 on Mac 10.6.  VLC, Flash, Chrome, FireFox all play it correctly.

  • Video playback on external monitor working. Only works when Print to Video

    I'm having a problem. I'm using FCP 5. When editing, my video playback is not showing up on my external monitor (Sharp MiniDV camcorder). It does however show up on the external monitor when I "Print to Video." This is the first time using FCP 5. I never had this problem with previous versions of FCP. Can anyone tell me whats going on? Thanks

    #8 External Monitor Viewing.
    Shane's Stock Answer #8:
    A simple path is mac > firewire > camera or deck > rca cables > tv
    Then start up your camera and tv, then open fcp.
    Then go View > External video > all frames
    Video playback should be Apple firewire NTSC (If you are using an NTSC set)
    Audio playback should be Audio follows Video
    Techinially, this should send synched video to your TV
    If for some reason you can't view your timeline on your external monitor, there are a few things to try:
    1) Make sure that the camera/deck is connected and powered on BEFORE you open FCP.
    2) In the Final Cut Pro menu select AUDIO/VIDEO Preferences and make sure your signal is being sent out thru Firewire DV.
    3) Go to the menu and select VIEW>EXTERNAL>ALL FRAMES.
    4) Click in the % box above the image and select FIT TO WINDOW.
    5) Go to VIEW->refresh A/V devices
    6) Make sure the Log & Capture window is closed
    If you want it to play in both the canvas and the external monitor you need to go to the FINAL CUT PRO menu and select AUDIO/VIDIO settings and make sure MIRROR ON DESKTOP is selected under the PLAYBACK OUTPUT section
    Shane

  • HD-H.264 video

    Hi all,
    I have an FLV file convered t in HD-H.264 video. So can an somebody please let me know which format I must choose at Easy Setup on FCP to edit my file. I've try some but I think I used the wrong one because when I apply effect on it come Unrendred on Canvas. I try to avoid the Render process.
    Thank you

    If possible, convert the flv file directly to a fcp friendly format like prores 422.  What are your pixel dimensions and frame rate.  Oddball frame sizes and frame rates can also sometimes cause problems in fcp.

  • VLC fullscreen sometimes makes screen stay black after video ends

    like the subject says, sometimes the screen just stays black when a video ends while VLC is in fullscreen mode.
    I'm using VLC 2.0.8.a-1. I got the laptop in April, just in time for Revision 2013, had the problem more or less from the start, so that's since version 2.0.5 or 2.0.6
    So far I haven't found a way to get things back to normal when it happens. I've tried
    press f
    press ESC
    close and reopen lid
    switch to console (screen just stays black, even on consoles)
    Apparently the only thing I can do is pop up a terminal window via shortcut and reboot.
    As far as I can tell /var/log/Xorg.[0,1].log doesn't tell what's going on.
    In case it's important, I've only experienced this on my Thinkpad T430, it never happend on my old ASUS laptop or on my desktop pc. An Intel issue maybe? The other two run on nvidia cards, the T430 does have an nvidia card in addition to the on-chip HD 4000 but I don't use it (I'd love to since the DP port is only usable with the nvidia card, haven't been able to make it work with bumblebee yet but that's a different issue).
    Any ideas? Which log and config files do you need?

    like the subject says, sometimes the screen just stays black when a video ends while VLC is in fullscreen mode.
    I'm using VLC 2.0.8.a-1. I got the laptop in April, just in time for Revision 2013, had the problem more or less from the start, so that's since version 2.0.5 or 2.0.6
    So far I haven't found a way to get things back to normal when it happens. I've tried
    press f
    press ESC
    close and reopen lid
    switch to console (screen just stays black, even on consoles)
    Apparently the only thing I can do is pop up a terminal window via shortcut and reboot.
    As far as I can tell /var/log/Xorg.[0,1].log doesn't tell what's going on.
    In case it's important, I've only experienced this on my Thinkpad T430, it never happend on my old ASUS laptop or on my desktop pc. An Intel issue maybe? The other two run on nvidia cards, the T430 does have an nvidia card in addition to the on-chip HD 4000 but I don't use it (I'd love to since the DP port is only usable with the nvidia card, haven't been able to make it work with bumblebee yet but that's a different issue).
    Any ideas? Which log and config files do you need?

Maybe you are looking for

  • XML encoding to UTF-8 charset - Oracle 9i

    Hi Masters Database Version : 9i Can you please help me here.. I am in a process of writing an Inventory Adjustment tool that will generate the XML and encode it to utf-8 charset… I have successfully written the code to generate the XML in this forma

  • Don't even know which title to give. sorry! :)

    Can anyone help with this: bash-3.2# pacman -Syu :: Synchronizing package databases... core is up to date extra is up to date community is up to date archlinuxfr is up to date :: Starting full system upgrade... resolving dependencies... looking for i

  • SOAP RECEIVER SSL Problems

    Dear Community,    I have configured a SOAP Receiver to an external web service (https://server:7002/service). I have use IE to get the certificate of the server and have imported it into the keystore of the j2ee (using VA). I have imported it to the

  • SYSDBA - problem with viewing other users package body texts on sys account

    Hi, SQL Dev 1.0.0.15.27 has problem with correct display of other users package body texts on sys account. All bodies have "create or replace" text instead of all pck. bodies text. I guest it's problem with SYSDBA role. On system account text is disp

  • Weather Channel posting fake shill reviews to their App

    It's painfully obvious that the Weather Channel is posting fake shill reviews to their App. Just a week ago they had a horrible rating in the App store. Then they released a new version a few days ago that is not any better than the last one and they