Videomaker – Learn video production and editing, camera reviews › Forums › General › Video and Film Discussion › Converting Video to Flash Files for the Internet
- May 29, 2007 at 4:49 PM #39636MicrochipParticipant
🙂 Hello again gurus of videomaking! Have you got any ideas about this:
I made a video which runs about 11 minutes long. For the purpose of putting it on a web page, I had to cut it down to about 7 minutes since Flash Video MX couldn’t convert beyond a certain amount of frames (16,000).
The original video is AVI and I selected the settings in Flash Video MX which would make the finished product suitable for Internet delivery, reduced it in size to 375 by 250 pixels, and also selected "de-interlace" since I read here on this forum recently that de-interlaced video is better for viewing on a computer monitor.
Flash Video brought the original video from 2.2 gigabytes as an AVI to 64 megabytes as a SWF file. I uploaded the SWF file and inserted it onto the html page. Well, it takes FOREVER to load on a high speed connection. Don’t even talk about dial-up – it’s hopeless in that situation.
Can I do anything to get this video to load more quickly – not including cutting it down to 4 minutes or streaming it?
I’d appreciate your thoughts on this.
A lot of info here! http://www.videomaker.com/forums/viewtopic.php?p=26136&highlight=flash#26136
Virtual Scribe, if you read this, haven’t I done it correctly, save for the final output which is a SWF file instead of FLV – or is that crucial?
Compusolver, in what format do you put the wedding clips onto your site?
Yes I was wondering this too for future reference.
Microchip Helen, Brandon0409 and anyone else wondering,
Adobe Flash used to be Macromedia Flash just before Adobe purchased Macromedia in April 2005. Macromedia predicted the emergence of online video and experimented heavily and are still doing so in order to create demand for their content producing tools. Their first trial was output of content to SWF. This is the incorrect way to do it. As you found out, Microchip Helen, this is simply converting each frame of video into jpeg form and placing it on a keyframe. While flash is very good at serviing up vectors, it is not the best at moving very heavy jpeg data frame after frame after frame.
Their next innovation was using flash the way it was meant, and separating the flash player from the flash video. You can opt to use a thousand freeware opensource flash players found online (5-10kb), or use the default builtin Macromedia/Adobe flash component players which come in at about 40-50kb. The way most programmers including me do it, is to use software to create FLV (FLashVideo) from source. And then build a very slick, 2kb swf player. This document can be called player.swf and inside it resides about 200 lines of code to control the external content.flv file. So instead of hundreds of thousands of frames of flash, you have 3 frames in your swf document. On the first frame it could have your name or your overlay logo, telling flash to visit frame 2. The next frame simply has a stop(); action in it and calls the video and play/pause or volume controls. At the end of your video you go to frame 3 and thank your visitor for watching or go back to frame 1.
player.swf ----------------------------> content.flv
FLV currently comes in 2 flavors. It is a proprietary format and even this flv format is evolving. Sorenson was the first company to be used for the professional conversion codec, it was the Sorensen 3 Spark codec in Flash MX 2004. The next iteration in less than 18 months was using the ON2 vp6 codec when Flash 8 came out. So to answer your question use your tools to export to FLV. And then find a freeware player to pull in the FLV or build your own player to pull in your FLV document. Don’t ever go back to pulling 64Mb worth of flash swf unless you are delivering vectors on CD/DVD.
The first step you can take is using built in exporters which exist in most major video editing tools. They do the job, but produce passable video but you can see the macroblocks in the resulting video. These are single pass tools. The real magic comes when you can purchase pro tools which allow you the subtle dual pass tool. Currently only http://www.Sorensonmedia.com and http://www.on2.com create dual pass tools for progressive downloadable video. Each of these solutions are in the $500 range for new purchase. It doesn’t sound like you need streaming media on the super expensive proprietary $4500 solution which serves up streaming media. Experiment with the freeware tools, I hear Riva has a freeware player. http://www.rivavx.com/?encoder and this is a free encoder. Limited inputs, but if you like it, pay something to keep developments like this going on. Just $5 or $15 would keep these developers churning out really great software. I use his standalone RIVA player to test out my flv documents before I put them online, and he did an amazing job with the standalone player. Simply drag your flv from any of your content and drag/drop to preview it before FTPing the entire document online.
Summary: Export to FLV. If you can afford it, export using dual pass to FLV. Play using a small swf player embedded in your online document.
Cheap tools use single pass encoding. When you want pro looking work purchase the dual pass encoders. Sorenson to target flash 6,7 players with average or older processors on their computers, depending on your target user base. My user base is made up of a very wide range, so I am currently using Sorenson. If your target user base has powerful processors on their machines go for the ON2 vp6 tool. It plays for flash 8 players and above for your clients who have powerful processors on their cutting edge machines. The main drawbacks for me currently are that on2 vp6 takes a much longer time to encode, and that company’s tool looks like it was thrown together by a non designer. Sorenson has lower video quality, but takes correspondingly less online viewer processor power to decode. It also has an interface which was designed incredibly well, and takes me less time to encode into flv than on2 vp6. Someone took a lot of time and care in designing Sorenson’s tool, and it shows in the detail of that software. There are drawbacks to each, but there are also advantages to each proprietary codec.
I think Flash MX exported only to swf. Flash 2004 MX began exporting to flv, Sorenson Spark 3 codec. Flash 8 began export to flv using ON2 vp6 codec.
I know it’s your first or initial trials, but put a link up so that we can see what it looks like on your online document and experience your work. Unless we can see what you’re doing, talking about it is all just theory. My own work is evolving with technology, but this is what my encoded client videos look like:
Share your wedding video online
There’s also a program called Flix form On2 Technologies that takes a video and converts it to FLV or SWF (with various settings).
Their standard (single pass only) product is only $39 and their pro (multipass) version is $249. I use the standard version and have had no problems with it.
Your video looks amazing, but you’re right, there is a bit of a lag. I am saying this without knowing your export settings, but I suspect that you should decrease your bitrate. Most people I know do not have more than a 500kbps line to experience content. And some people are still using 128kbps lines. I test my content, and create it for consumption between 300 – 500 kilobits per second. This level of bitrate allows for clean video, but still puts it within the high speed access lines, so even people with a bit of a lag or in a corporate network with congestion can view the video without problems. The idea in this kind of delivery is to keep your content at a rate below what they can consume, and build a bit of movement space, so that if their bandwidth freezes for a moment your content has progressively downloaded enough that they can watch without noticing or getting to the edge of your progressive download. I have high speed access lines, but I think your current setup encodes to very very high bitrate from the quality of your video I am seeing. I got the same results as you did when I watched your video, it got me stuck for a while, then downloaded more, then got stuck for a bit, then downloaded again.
You can afford to reduce your quality and bitrate a bit so that the user can begin watching as the file continues to progressively download. Birdcat suggested the $39 version, and for that price you can experiment. There is give and take, you give up a little bit of quality but get a smaller filesize. Good job on your website; I’m sure your project will turn out amazing results.