5 Replies Latest reply on Mar 5, 2007 7:14 AM by Newsgroup_User

    video problem

    hwa-jun yu Level 1
      I put an .mpg file to my project.
      At the first two seconds of the mpg (48 sec, 25 fps), it plays a little lag. After that, it plays normally.
      I tried with a smaller size mpg file (7 sec, 25 fps), but still make no difference.
      My project's tempo is also set to 25 fps..
      Is there a solution to this? Please help. thank you
        • 1. Re: video problem
          Level 7
          The symptom that you describe is common if you force a DV file to play
          immediately. The problem is that the video player has no time to
          instantiate, stream the file's data, and get the video card to render it
          correctly, all in one frame's time.

          I usually place the DV sprite in the score a few frames before I need to
          it to play. I usually reserve the first five sprite channels in the
          score for digital video. I place the dv member in one of these channels,
          and set it's direct to stage property to false and it's paused property
          to true. Now I have a stopped dv sprite sitting behind my background
          sprite(s). When the playback head reaches this hidden sprite, it will
          get the video player loaded and begin loading the file's data. In two or
          three frames, I can then tell that dv member to change it's direct to
          stage property to true and tell the sprite's movieRate property to be 1.
          This will pop the dv sprite through the background and start it playing.
          The playback is usually very smooth and predictable.

          When I'm finished with the dv sprite, I reset the member's direct to
          stage property back to false.

          --
          Rob
          _______
          Rob Dillon
          Adobe Community Expert
          http://www.ddg-designs.com
          412-243-9119

          http://www.macromedia.com/software/trial/
          • 2. Re: video problem
            hwa-jun yu Level 1
            Yes, Rob
            That was definitely the answer.
            I read Director's help and looked around the net, all the search result seemed like the answer you gave me.
            I've tried that before.
            I may sound like an idiot who can't follow simple instructions and solve a problem, and guess what, it's not working..
            First, Set Paused to true, DTS to false.
            I gave my video 45 frames before I set its movieRate to 1 and DTS to true.
            But still it only results little improvement to my video playback.

            I think I'll get around with the video problem again later.
            I still have plenty of other Director problems to study.
            Thanks, Rob.
            • 3. Re: video problem
              Level 7
              If the video playback is still not smooth, then you may need to lower
              the data rate of the file. It sounds like there is too much data coming
              through too quickly. It may be that the opening of the video is just too
              heavy to play smoothly.

              --
              Rob
              _______
              Rob Dillon
              Adobe Community Expert
              http://www.ddg-designs.com
              412-243-9119

              http://www.macromedia.com/software/trial/
              • 4. Re: video problem
                hwa-jun yu Level 1
                quote:

                Originally posted by: Newsgroup User
                If the video playback is still not smooth, then you may need to lower
                the data rate of the file. It sounds like there is too much data coming
                through too quickly. It may be that the opening of the video is just too
                heavy to play smoothly.



                errr...
                the file's data rate....
                It sounds funny because the mpg files run smoothly when I include 'em in a VB - DirectX project.
                So, can we say that VB with DirectX can run mpg files smoother than using Director?
                • 5. Re: video problem
                  Level 7
                  Yes, the directX project may have less overhead than the Director
                  project. Another problem may be that you have filled all of the
                  available memory with your Director project and so there's no room left
                  for the video file to stream through. If this is the case then Director
                  will clear out some memory space before it begins to play the video
                  file. You can use the memory inspector to see how memory is being used.

                  --
                  Rob
                  _______
                  Rob Dillon
                  Adobe Community Expert
                  http://www.ddg-designs.com
                  412-243-9119

                  http://www.macromedia.com/software/trial/