5/7/2010 6:41:30 PM
Title:
problems with .flv audio
Is it true that .flv audio only cannot seek or has problems going to a specific frame. I'm using a flash project called http://www.moviemasher.com to do a video project. Recording from the user's microphone gives back an audio only .flv file on the wowza server. MovieMasher cannot handle these files because of some problem seeking to a frame according to the author. Is this true? What about speex, would that have the same problem.
It might work if the .flv audio file could be converted into an .flv video file somehow with minimal video data. I've asked around on a bunch of forums but no one knows how to do that.
Thanks,
Dan
Inder
Points: 2980
Posts:0
5/7/2010 10:00:27 PM
Video files can be only seek to keyframes but its not so with the audio only flv files. You can seek audio files to any second. There should be no such problem. Whether you use speex or nellymoser it should not be the problem. If you can share your flv I can check if there is a seeking problem in that file.
5/7/2010 10:47:31 PM
From the MovieMasher author...
it seems that Flash is treating FLVs without video tracks differently... Essentially, it's not possible to seek these tracks to a different point in the file while playback is paused. This is problematic in Movie Masher because all buffering occurs while playback is paused, so it just seems like the files are never loading.
Does this sound correct?
Thanks,
Dan
Inder
Points: 2980
Posts:0
5/7/2010 11:12:09 PM
He says that when paused we should not seek it. If we try to seek the file the buffering is stopped and file won't load further. When normally we play and seek an audio flv file there is no seeking problem, this is a tested thing.
I think the problem is occurring because of lack of video track in the flv file. Video masher is a video editing application. Which would be using video frames for process of editing etc. You can try generating a video+ audio file and test if it works.
There application might be trying to seek to some particular frames rather than seeking to seconds.
Inder
Points: 2980
Posts:0
5/7/2010 11:20:28 PM
you can test your flv file using this code , it will allow you to seek and show time where you seek:
import fl.video.*;
videoCom.addEventListener(VideoEvent.PLAYHEAD_UPDATE, completePlay);
function completePlay(e:VideoEvent):void {
//will show you time where you reached when tried to seek
// time is usually some miliseconds bigger than actual time like 6.300
trace(videoCom.playheadTime);
}
//place videoPlayer component on stage and give instance name videoCom
var videoCom:VideoPlayer;
btnFocus.addEventListener(MouseEvent.CLICK, funfocus);
function funfocus(evt:Event){
//time where you want to seek
videoCom.seekSeconds(6);
}
5/7/2010 11:48:36 PM
Awesome help.
Is there a way to link an audio file to a video file. Like have a default video file to link to each audio clip?
Also he doesn't have a problem doing the seeking with mp3. Is there some fundamental difference between .flv audio and mp3 that would make one be able to work and the other one to freeze?
Dan
5/8/2010 12:16:39 AM
Live files generated by Media servers like FMS ,WOWZA and RED5 miss data in the stream which may cause freezing when used with other application than flash player. The missed data packets are caused due to network conditions. So ideally a live captured flv file is not continuous it's like -- ----- ---- ---- ---- -. but the flv files generated by software are continuous like ----------------------.
Technically mp3 and flv are very much different. So there can be many reasons for such behavior.
There is no way to link a audio file to video file in flash.