I am a newbie to embedded videos and have searched the web for a day and still can't find the reason for the issue i am seeing. This forum seems like my best bet.
I have 3 .flv files on my local harddisk and have hacked up a webpage with javascript (swfobject.js) and flash flayer (flvplayer.swf). Everything works fine and i can watch all 3 videos with one little glitch which has become a headache. In one of the videos i can jump to any location in the video and start playing from there. But with other 2 they start and play to end and i cannot jump to any location. The videos are 2hrs long. So basically i cannot watch them in parts. I have to watch all of the video in one shot or have to start from the beginning every time. I have tried almost all of the flashvars in vain.
How can i make the videos play from random locations?
Note: All three videos were mpg files and were encoded to flv files using 3 different encoders.
2 hr long FLV's ! I'd be getting a streaming solution happening for videos of that length. Anyhow, to sort out your immidiate issue, I'd suggest that the metadata has not been correctly created by one or more of your encoding programs. Check out Buraks's excellent FLVMDI tool which will inject the correct metadata into your flv file file you.
Thank you. I tried flvmdi but it gives error after 87% of processing, so looks like the flv file itself is bad. The reason i moved to .flv file was because the .mpg files were about 2GB and none of the players would play them. Converting them to .flv reduced the size to around 300-400MB and the flv players played them well. I will look for a streaming solution, if you have any quick links to get me started on how streaming solutions work and which ones to use, that will be very helpful.
Metadata injection - there is one other tool which does the same thing - FLVtool - http://inlet-media.de/flvtool2. See how tou go with that. If you still have probelms, then I would suggest you do have something wring with your flv file. You can always use an encoder which does add the metadata correctly such as on2 or even the flash8/cs3 encoder.