4 Replies Latest reply on May 16, 2011 6:43 PM by adninjastrator

    Flash flv file problems

    Federal Blue

      I don't know if this is a fault on my part or not, it probably is though. I have been at this for over two days now, trying to figure out a way to do convert quicktime to swf.

       

      I managed to create a flv file of the movie, the audio and video works with it. However when brining it into flash, the video time stretches so much that it's incredibly slow. Oddly enough the audio stays the same. I can export it as a swf after publishing it, but I don't like how messed up the audio and video are.

       

      Is there a way to restretch the video in Flash? Or any other solution you can think of. I really need help as I have exhausted all resources that I can possibly think of. I am an amateur at best with these programs. Thank you for any help...

        • 1. Re: Flash flv file problems
          pziecina Level 6

          Hi

           

          You cannot import a video that contains audio into flash as the audio and video content will go out of sync after 15-25 seconds in my experience.

           

          The simplest way to do this is to play the flv file as an external item, (sorry don't know how to do this using flash CS5 as I only have CS4, maybe someone else can help) but I normally do this via an xml file and use the flash 'stage' as a holding area for the content if it is a slide-show, (or use the html5 video tag if it is just a single flv).

           

          If you could tell us exactly what it is you are trying to do, then it may be possible to help further.

           

          PZ

          • 2. Re: Flash flv file problems
            adninjastrator Level 4

            The biggest issue with out of sync audio/video when "embedding" an flv into the main timeline is that the frame rate of the Flash doc is not set to exactly the same frame rate as the video. So if the video was shot at 29.97 frames per second, you need to set the Flash doc to exactly that, 29.97. And unless there are some Internet download connection speed issues, it pretty much keeps the audio/video synced.

            It only makes sense that playing a 29.97 video file in a 15 frames per seond Flash doc will slow the video display way down, since one frame of video equals one frame in Flash... but the audio part just plays at normal speed... otherwise it would be way distorted, like playing a tape/record in slow motion.

            Here's a short sample video embedded directly into the timeline in a Flash doc set to 29.97 frames per sec:

            http://www.cidigitalmedia.com/tutorials/sync.html

            That being said, I would still not recommend embedding video into the main timeline except under special circumstances. Use the FLVPlayback component or NetStream to play an external video.

            Best wishes,

            Adninjastrator

            • 3. Re: Flash flv file problems
              pziecina Level 6

              Hi

               

              Whilst I do agree with what adminiastratot has said, the other thing to be aware of when using this technique is that doing so will cut the swfs usable time to slightly more than 9mins and any animations etc that you already have will also be affected by this, so it cannot be used with any swf longer that 9mins. There are a few work arounds that I have tried, but none that I can recommend.

               

              PZ

              • 4. Re: Flash flv file problems
                adninjastrator Level 4

                But the technique does solve the audio sync problem.

                Again, it's a specialized solution that you may want to use only for a few specific cases.... just another tool to add to your toolbox!

                And while I don't use it very often, when I do, I usually embed the video into it's own .swf and then load that .swf into a main .swf as needed.

                And with AS3, you can give the video .swf it's own frame rate... if that's of any help.

                Best wishes,

                Adninjastrator