Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Problem with a Flash animation  (Read 1309 times)

0 Members and 1 Guest are viewing this topic.

shmokes

  • Just think of all the suffering in this world that could have been avoided had I just been a little better informed. :)
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10397
  • Last login:September 24, 2016, 06:50:42 pm
  • Don't tread on me.
    • Jake Moses
Problem with a Flash animation
« on: December 14, 2006, 06:31:42 pm »
I'm trying to make an e-learning type video with Flash that consists of a combination of video of me explaining stuff, and animation with voiceover.  I'm having a big problem, though, with the video and audio losing their sync when I embed them into the Flash animation.  Can anyone give me any suggestions?  It's really frustrating. 
Check out my website for in-depth reviews of children's books, games, and educational apps for the iPad:

Best Kid iPad Apps

jbox

  • BYOAC Poet Laureate
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1032
  • Last login:November 30, 2007, 08:00:54 am
Re: Problem with a Flash animation
« Reply #1 on: December 14, 2006, 07:19:56 pm »
Apologise to your wife about whatever it was you said and/or did that means she wont help you?  :laugh2:
Done. SLATFATF.

lcddream

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 498
  • Last login:December 04, 2024, 03:59:31 pm
  • Say goodbye to gravity...
Re: Problem with a Flash animation
« Reply #2 on: December 14, 2006, 07:22:37 pm »
i haven't used flash in awhile...but i think it has something to do with how you have the sound defined as event or streaming.

preloading the content will surely help as well.
you might need to have the sound fully encompassed by frames also...not just in one keyframe.
i found this for ya an example fla with sound synched

http://www.flashkit.com/movies/Sound/Synched_-Matt_Ped-367/index.php

hope this helps

edit: re-reading your post i think i see what you mean.
you have a complete audio/video file that loses synch in the flash player.
you might want to separate the audio and video and line them up manually in flash by importing them individually....like i said it's been awhile.

also http://www.were-here.com/forum/ is a great flash resource, and friendly community.
« Last Edit: December 14, 2006, 07:28:26 pm by lcddream »

Dartful Dodger

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3453
  • Last login:July 23, 2012, 11:21:39 pm
  • Newer isn't always better.
Re: Problem with a Flash animation
« Reply #3 on: December 14, 2006, 08:11:45 pm »
The audio should be on the main time line, and like lcddream said, set Properties > Sync > Stream.

What version of Flash are you using?

Make sure all the files being imported are the same frame rate as the fla.

If you can, The video should be converted to an flv.

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re: Problem with a Flash animation
« Reply #4 on: December 15, 2006, 01:21:37 pm »
OK here's the deal, if the audio is in the video, then convert it to FLV and all will be well when you stream it through the FLVPlayback component (which is a youtube style simple player that comes free with Flash Professional and maybe even Basic)

Option 2, if the video has sound and you feel you MUST embed it into the main Flash movie (perhaps you have no way to convert to FLV), do this:

1. Determine what the frame rate of the video file is. Typical rates are 30fps, or 15fps and sometimes other.

2. Set the Flash movie properties to the SAME FRAME RATE.

3. Now import your video file. The sound will stay in sync.

Option 3: If the video has no sound and you are adding it seperately, you must put the sound file into a keyframe in the timeline, and in the Properties panel you must set the sync option to "STREAM". Anything else will not keep it in sync.
NO MORE!!

shmokes

  • Just think of all the suffering in this world that could have been avoided had I just been a little better informed. :)
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10397
  • Last login:September 24, 2016, 06:50:42 pm
  • Don't tread on me.
    • Jake Moses
Re: Problem with a Flash animation
« Reply #5 on: December 15, 2006, 05:50:58 pm »
Thanks a lot guys.  I'm almost possitive the problem is solved thanks to you (thought we haven't tried it yet).  My wife made the animation 15 FPS, but I know that I captured the video at 29.97 FPS or something.  It sounds like that is definitely the problem. 

If possible I'd like to embed the video because when I started capturing myself I always let the camera run a couple of seconds before I got all animated and then when I was done talking I'd sit there looking at the camera for a few seconds before turning to the keyboard to stop the capture.  My wife covered up these things with fades in Flash, keeping me from having to pull the videos into an editing app and chopping off the ends (not that that'd be hard, but the fades look nice and I'd just as soon not have to mess with the videos at this point if I don't have to).

BTW, it's Flash 8.  FWIW, I'm pretty sure that my wife has access to a program called Squeeze, or something to that effect, at work that can convert to FLV.  Is there any reason for her to do that as opposed to letting Flash do all the encoding, etc., for her?
Check out my website for in-depth reviews of children's books, games, and educational apps for the iPad:

Best Kid iPad Apps

Dartful Dodger

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3453
  • Last login:July 23, 2012, 11:21:39 pm
  • Newer isn't always better.
Re: Problem with a Flash animation
« Reply #6 on: December 15, 2006, 06:16:32 pm »
We use Squeeze too.  It can crop and cut off the heads and tails of the video for you.  When working with Squeeze don't set the compressions to low. It drops the audio if you try to create something for a 56k modem.

If you're happy with the video file there should have been a Flash Encoder installed when you installed Flash 8:

C:\Program Files\Macromedia\Flash 8 Video Encoder\Flash 8 Video Encoder.exe

This program will create an flv in the same folder the video file was in, with the same name *.flv

Add... > select the movie file
Setting... > select your settings
Start Queue

There are more options and they are all self explanatory.


You can import the video right into Flash too.
We use to work this way it's a lot easier, but it's very bulky to work with, and you don't have as many options when it comes to importing or compressing it.  Once you get your head around the flv components you'll see it's the better way to work with video.

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re: Problem with a Flash animation
« Reply #7 on: December 16, 2006, 12:23:02 am »
I use Squeeze as well, with linked external .FLV files. Though I have also worked with embedded FLVs converted to SWFs.
NO MORE!!