-
Flash Video no audio/other
I have a basic idea of flash but I've never really worked with video. I'm trying to make 16:9 video's play. What I've seen so far online and around is that flv convert it to 4:3. I have it playing now at 16:9 with an action script (2.0) but its reading it as an mov file not an flv cause i heard the wont work. The audio won't work and i can't figure out how the seek command works. 1 Goes to the second frame 0 goes to start of movie and thats all i've found. I also tried making the current play time show up in a dynamic text field titled 'frame' but that doesn't work either. Any help here would be great thanks for your time:
stop();
var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var stream_ns:NetStream = new NetStream(connect_nc);
myVideo.attachVideo(stream_ns);
stream_ns.play("2008-03-29_16x9 test.mov");
stream_ns.onStatus = function(infoObject:Object) {
if (infoObject.code == "NetStream.Play.StreamNotFound") {
trace("Could not find video file.");
}
};
stream_ns.pause(true);
pausebtn.onRelease = function() {
stream_ns.pause(true);
};
playbtn.onRelease = function() {
stream_ns.pause(false);
stream_ns.seek(0);
};
stopbtn.onRelease = function() {
stream_ns.status.complete;
};
rwbtn.onRelease = function() {
};
ffbtn.onRelease = function() {
};
frame = stream_ns.currentFps;
Last edited by bluewalrus; 06-21-2008 at 03:10 PM.
-
-
There could be a lot of problems going on here. That code snippet doesn't explain away anything.
Are you using a custom solution for a reason? If not, try giving the JW FLV Media Player a look. It might save you a lot of work.
Otherwise, post your .fla and .flv files and I'll take a look.
-
-
-
-
Ok, a few things.
1. What were you suing to convert .mov files into .flv? The FLV format doesn't have a native resolution. Different formats of video (namely NTSC and PAL) have resolution specific standards. So, if you want a wide-screen display with a FLV player, that's certainly doable. But all of the different parts of the puzzle have to be configured correctly. Read this article for more information.
2. The no audio problem is common. It's due to the audio compression that that movie is compressed in. I'm not sure of the source of these videos, but if you have access to recreate them, do so without audio compression. I see you're already encoding them H.264 -- which is good.
3. To your questions about the rest of the functionality, go to gotoandlearn.com. Scroll to the bottom of the page. The last 8 tutorials or so are on how to build a video player in ActionScript 2.0. I think they will help you in adding whatever other functionality you want.
There is nothing wrong with the code that you're using. The no audio is an video encoding issue. You can confirm this by attempting to play your video with the JW FLV Media Player (despite the name, the JW FLV Media Player has support for H.264 videos, so .mov and .mp4 files ARE supported).
HTH. Let me know if you have other questions.
-
The Following User Says Thank You to Medyman For This Useful Post:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks