Hi, the mp4 playback is working fine but the problem is that the flv player first loads the full file then plays it.i even tried the bufferlength to play file after some seconds but still it loads the whole mp4 and then plays it. any help?
>the mp4 playback is working fine but the problem is that the flv player >first loads the full file then plays it.i even tried the bufferlength to >play file after some seconds but still it loads the whole mp4 and then >plays it. any help?
Lets hope Adobe fixes this. The player (Netstream layers) simply need to start supporting http 1.1s range-requests, this will allow random seeking within even very large files (without having to download), and, lends itself to asking the web server for the tail of the file (the moov atoms) when they arent detected in the head. For reference, VLC player already supports/does this over http, and pre-fetches the tail moov atoms when they dont exist at the head of a mp4..
James, Thanks for the heads up on the app. After reading for the past 24 hrs and finding out about the "moov" issue I have found 2 apps and the only one that seems usable is the one you are using. I am an uber-novice when it comes to sourcecode and whatnot so the instructions (http://gpac.sourceforge.net/doc_mp4box.php#general) were just way to complicated for me. If anyone understand what needs to be done with this (http://www.videohelp.com/tools/mp4box) i'd appreciate it.
Royal, I didn't find that the mp4box.exe file improved anything. My mp4 files still don't play. However, if you want to try it here is how to use it:
1. Download the mp4box zip file and unzip it. 2 Put the exe file in the same directory as the mp4 file you wish to convert. 3. Click Start button then Run. Type cmd then ok. 4. You will see the black "dos" box. 5. Navigate to the directory (folder) where the exe file and the mp4 file are located, using the cd commands. 6. Type (or paste in) in this: mp4box -inter 300 mymovie.mp4 (use your mp4 file name). 7. You will find it's easier to fix up your command line in notepad, then copy and paste it in. 8. The program will then work, fixing your mp4 and rewriting it (it overwrites your old one so save a copy first to be safe).
However, like I said, the mp4box conversion didn't help a thing. Mp4's just don't seem to play.
Upon hours of research I found a viable solution. It turns out that I am allowed to do this by using the mp4box thru YAMB. I've Tested it and it works. My MP4 Vids are playing without fully downloading.
The tricky thing here is that you have to make sure the 'Store file with all media data first' is UNCHECKED. IMO that's backwards and it should be checked (Unless the referred Media Data is Mdat not MOOV) but hey, I got it to work so :)
I hope this finds to be useful...Thanx again.
@Polemic, what are the chances of you posting while I was !??? We replied at the same time, Weird! Big Thanx for the reply but I already got them to work (I think) and all is well.
Aha! Thanks guys. I'm having the same problem, encoding with Apple Compressor. Anyone know what settings I need to tweak in Compressor to get the moov metadata where it needs to be, or can point me to a Mac app or Terminal command for fixing it?
Here is the magic mp4box.exe command-line I found after much experimentation.
mp4box -ismax my_ffmpeg_output.mp4
I'm using the -ismax as opposed to -isma since -isma sometimes crashes given non-standard input. This rewrites the standard ISM 1.0 AV headers including the InitialObjectDescriptor that Flash and perhaps other tools look for. I found this was missing when I compared Sorenson Squeeze-created MP4 files to FFMPEG-created MP4 files using the -info option:
Unfortunately, I need a "lame" command-line compressor since it needs to be called from a server-side script on a Linux web server.
The current system I'm using works fine, but it encodes sorenson .flv files via ffmpeg. I'd really like to switch everything over to h264 mp4s since they look better, are smaller, and are iTunes-video-podcast-compatible. Unfortunately, this won't be an option until I can figure out how to enable faststart via a command-line compressor of some sort.
I've googled all over for how to enable mp4/h264 streaming while encoding with ffmpeg and/or mencoder and still have no solution. (I already tried compiling and using the qt-faststart.c code that comes with ffmpeg source - no go there, either. After burning up all of the system's processor and a rediculous amount of RAM for way too long, it just returns an error saying it couldn't find something or other... not an option.)
I've also looked into: * mediacoder.sourceforge.net - needs windows or linux w. wine - gui-driven, not an option * QTIndexSwapper - Adobe air app - also not an option
Mp4box and metadata mover all work. I could not get QT-FastStart to work at all on my videos (from Sony Vegas). I found MP4 FastStart to be the quickest and easiest and worked on all my MP4s, won't do command line or server side though.
I found this article: http://howbits.com/stream-mp4-website-h264-high/
I downloaded the tool (using Vista) and it did the job very fast for mp4 videos (moving the metadata from the end to the beginning). You can even do some batch processing (it took me just one minute to move the metadata of 30 mp4 files (10MB each).