Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

different sound tracks for flash video (flv)

Posted on 2005-03-15
12
Medium Priority
?
188 Views
Last Modified: 2010-04-03
Hello,

I'm using Flash for a multimedia cd-rom with video. The presentation will be multilangual, so I'll have to put the video multiple times on the cd with different sound tracks. But this will take a lot of time (rendering to flv) and a lot of space on the cd, so I'll have to shrink the quality of the video. Is there anyone who can help me with a better solution ?

It would be great to have some kind of system or component to use one video-flv with different audio-flv or -mp3 so it's easy to switch between different languages (like you would do on a DVD). Any ideas ?

Thanks a lot,
Frank
0
Comment
Question by:Amigo_fd
  • 6
  • 6
12 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 13545339
You can create one video, and load different flv with just audio stream based on user system language...
0
 

Author Comment

by:Amigo_fd
ID: 13545476
how would you do this ? with two video-components ? will they stay in sync ?
0
 
LVL 27

Expert Comment

by:negatyve
ID: 13545688
>how would you do this ? with two video-components

yes, you can use two mediaDisplay to play both video and sound, or a mediadisplay for audio and a mediaplayback for video. you have to check both streams are loaded before playing (but you should not have problem, as they are on cd), and yu could use mediadisplay timing feature to check if they are in sync (they should anyway).
If you have got a little video and a couple of audio streams I can make an example for you...
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Amigo_fd
ID: 13545735
that would be great ! I made a little test already but it gives a little "crack" in the audio each time I do a check if it is still sync.

the files are zipped 9,8 Mb. can I mail that to you ? or send you a link to a download ?
0
 
LVL 27

Expert Comment

by:negatyve
ID: 13545844
>or send you a link to a download

well, you should post it on a public server, unless they are really personal, as off board threading is against EE rules..
0
 

Author Comment

by:Amigo_fd
ID: 13545883
ok, i'll make some test files tomorrow.

thanx already !
0
 

Author Comment

by:Amigo_fd
ID: 13553468
I don't have an audio and video track I can share on a public server, but I made a test-fla which works like I think you would do:

* media-display on-screen for the video
* media-playback off-screen for the audio

* both paused at start
* loop while they are loading

* start and loop with a check every second if they are still in-sync. But this results in an audio-click every time it synchronises.

The fla can be downloaded from www.commaid.com/download/test.fla
0
 
LVL 27

Accepted Solution

by:
negatyve earned 500 total points
ID: 13553737
You don't have to synchronise them with loop. You should check it "once in a while":

this.synchroniseID = setInterval(this, "synchronise", 5000);
function synchronise()
{
      var at = this.audiotrack.playheadTime;
      var vt = this.videotrack.playheadTime;
      if(Math.abs(at - vt) > 2){
            at > vt ? this.videotrack.play(at) : this.audiotrack.play(vt);
      }
}
0
 

Author Comment

by:Amigo_fd
ID: 13563182
where do you put this ? in frame 1 of the timeline ?
0
 
LVL 27

Expert Comment

by:negatyve
ID: 13563244
In the same frame where you start both streams after checking for loading status. Delete all others frame from that on, you don't need a frame loop.
0
 

Author Comment

by:Amigo_fd
ID: 13563302
thanx a lot !
0
 
LVL 27

Expert Comment

by:negatyve
ID: 13563383
cheers.. :)
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question