PDA

View Full Version : FLV initial sound problem


tsj4
07-31-2007, 09:16 PM
in my flv player when the player triggers the ns.play('somevideo.flv") I here a crackle or some sort of chirp at the very beginning even if autoPlay is set to false. It might be the beginning of the audio of the .flvcode. I am wondering if it is my code or if someone else has experience something similair.

code:


if (autoPlay_FV == "true") {
ns.play(flvURL_FV);
ns.seek(0);
trace("play");
_global.playStatus = true;
} else if (autoPlay_FV == "false") {
ns.play(flvURL_FV);
ns.seek(0);
ns.pause(true)
_global.playStatus = false;
} else {
ns.play(flvURL_FV);
trace("play");
autoClose = setInterval(forceClose, 10, ns);
}

atomic
08-01-2007, 02:01 AM
Same problem on any .flv, or just on this particular one?

pan69
08-01-2007, 03:24 AM
Does the same occurs when you play the video with a player like VLC (http://www.videolan.org/vlc/)?

http://www.lukeschreur.com

tsj4
08-01-2007, 05:07 AM
sorry for the late response. I have noticed it happens to any. Sounds like when the net stream is initiated the player makes a crackling sound but some times it is obviously the first piece of the audio that begins and then stops.

tsj4
08-01-2007, 05:10 AM
Pan69 I use wimpy flv or perian for quicktime but no it does not seem to be a sound artifact at the beginning of the file if thats what you are getting at.

pan69
08-01-2007, 06:29 AM
Yep, thats what I was getting it, if you don't here it in another player you can safely say its not in the sound data. It sounds like there is some residue data in the sound buffer. What player version are you using and are you using by any change a debug player?

http://www.lukeschreur.com

tsj4
08-01-2007, 07:19 PM
I am using 9,0,47,0 but I have noticed this on multiple player versions. Not sure if it is a debug player.

pan69
08-01-2007, 11:11 PM
Are you using progressive download or are you using a streaming server to retrieve the FLV data?

http://www.lukeschreur.com

tsj4
08-01-2007, 11:13 PM
progressive download

atomic
08-02-2007, 12:16 AM
In the Property Inspector, set the initial volume at 0, then when the player starts playing, re-set it to 100 or whatever else...

tsj4
08-02-2007, 03:33 AM
I have set the volume to 0 via actionscript. like so and I do think it has fixed that issue but know I have noticed the netStream object makes a clicking sound when initiated. If you go to youtube.com each page makes that noise once the netStream object i open.


this.createEmptyMovieClip("vSound",this.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(0);
// --
ns.onStatus = function(info) {
trace(info.code);
if (info.code == "NetStream.Play.Start") {
//netStreamStopRedundancyCheck = setInterval(stopRedundancyCheck, 10);
so.setVolume(50);
}
}


Don't think I will find a solution to that one. If you find out some any other info about it please let me know.

atomic
08-02-2007, 05:08 AM
Ummmmh! Was under the impression you were using the FLVPlayback component... My bad!

What about fading in the sound, rather than setting it's volume straight to 50?

tsj4
08-02-2007, 05:19 AM
I am actually thinking about doing that.
something like this?

var volVal:Number = 0;
// --
function initFadeSound(){
onEnterFrame = function (){
if (volVal <= 48)
volVal =+2;
so.setVolume(volVal);
} else {
delete onEnterFrame;
}
}
}
// --
ns.onStatus = function(info) {
if (info.code == "NetStream.Play.Start") {
initFadeSound();
}
}


Sorry for asking but I can't test my file right now.

pan69
08-02-2007, 05:20 AM
I have set the volume to 0 via actionscript. like so and I do think it has fixed that issue but know I have noticed the netStream object makes a clicking sound when initiated. If you go to youtube.com each page makes that noise once the netStream object i open.

Are you saying that if you visit youtube you hear the clicking sound as well? If thats the case then it might be a driver problem.

http://www.lukeschreur.com

tsj4
08-02-2007, 05:31 AM
yes. At work when I am testing I always have my headphones on so i can notice it more. When I play through my laptop speakers I can only here the clicking some of the time. But please note this is not the initial issue I was having were the sound of the audio track in the flv would play then quickly stop. Testing for that has made me notice a clicking sound when there is a flv player loads in a page which is why I am thinking it has to do with the netStream Object.

pan69
08-02-2007, 07:33 AM
So does that mean that you can replicate the problem on every machine you would test it on or only on certain machines? If it's only on certain machines than I guess its not a problem with the NetStream object (Flash Player) but more likely something external (like a driver or even hardware).

http://www.lukeschreur.com

tsj4
08-02-2007, 04:53 PM
I have replicated it on two separate machine which were both macs and one of them I also have parallels running windows xp service pack 2 and that uses separate drivers and it is just as noticeable on that machine as well.

Not just as noticeable but the same click, no different.