Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Mp4 Streaming Problem


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?

Regards,
ByteCode

29 Community Answers

JW Player

User  
0 rated :

i have someting like this, the player charge it but i can't watch it !

I use the 3.12 player
and the file's address in flashvar plus 'type=mp4'

i doesn't understand what could be wrong :s


Thanks for your interest

JW Player

User  
0 rated :

We need the Flash *9.06* player

But where can we found it ! It is not listed on Adobe !! :s


JW Player

User  
0 rated :

i am using flash player 9.06 (Get from adobe labs) and i can play but it streams the whole file ie first downloads whole file then plays i want something like streaming for instance load 1% and play

JW Player

User  
0 rated :

the only to thing we have to do that i have notice are:
.instal Flash 9.06
.Flashvar 'type=mp4'


If someone can post a direct link to the flash 9.06, i will be realy happy


Thanks

JW Player

User  
0 rated :

Thanks a lot Will, now that right :)

Just the control bar isn't right, we see it but nothing when use it ! I have to use the 'esc' keybord one.
Is it the same for all of us ?

Thanks to tell us ;)

JW Player

User  
0 rated :

Do you have v3.12 of the JW Player (right-click on the player to check)? I think the dead control bar was an issue in an earlier version.

JW Player

User  
0 rated :

yes ive got the latest but still loads the whole mp4

JW Player

User  
0 rated :

>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?

Having the same problem, anyone has a solution?

JW Player

User  
0 rated :

same problem here i think. i can't get it to play an mp4 playlist, but a single mp4 with &file=blah.mp4 works fine.

JW Player

User  
0 rated :

James, I've spent so many hours trying to figure out what was wrong, and your post helped me so much. Thanks a bunch!

JW Player

User  
0 rated :

Does anybody know what happened to this thread?

*http://www.jeroenwijering.com/?thread=8026*

I'd like to read the origianl post and see if any other solutions were mentioned.

JW Player

User  
0 rated :

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..

JW Player

User  
0 rated :

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.

Thanks btw for all the input around here.

JW Player

User  
0 rated :

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.

JW Player

User  
0 rated :

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.

http://www.theroyal1.com/flashvids.htm


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.

-Royal

@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.


JW Player

User  
0 rated :

I made a program to add the metadata to the beginning of the mp4 file. It does only that, and it looks like it's working fine.

http://djlol.dk/up/files/MetadataMover.zip

JW Player

User  
0 rated :

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?

JW Player

User  
0 rated :

@Nick,

Perhaps this post will help you: *http://www.jeroenwijering.com/?thread=10143#msg65172*

I don't use Apple Compressor myself, so I don't know any details.

JW Player

User  
0 rated :

Thanks comedian - that did the trick. I was using "Fast Start - Compressed Header" instead of regular "Fast Start"

JW Player

User  
0 rated :

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:

mp4box -info my_ffmpeg_output.mp4

JW Player

User  
0 rated :

Actually, after re-reading other documentation it's better to use

mp4box -isma since -ismx says it removes all clock references:


mp4box -isma my_ffmpeg_output.mp4

JW Player

User  
0 rated :

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

Help?

JW Player

User  
0 rated :

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.

http://www.datagoround.com/lab/

JW Player

User  
0 rated :

I'm also having huge problems with this... FLV's stream just fine and don't require the browser to load the WHOLE movie first.

This is using FFMPEG produced output.

If anyone has a suggestion I would love to hear it!

JW Player

User  
0 rated :

[url=http://labs.adobe.com/downloads/]Adobe Labs[/url]

Look for: Adobe Flash Player 9 Update release candidate

JW Player

User  
0 rated :

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).

Now the files start playing immediately.

Have fun!

JW Player

User  
0 rated :

I wana ask from you I have applied isma encryption the same you applied but I am wonder why after encryption my file is playable.

Player should ask the keys before playing the encrypted contact.plz guide me.

mp4box -crypt drm_file inputfile.mp4
mp4 box -isma inputfile.mp4

Plz guide me why ISMA encrypted file played without supplying master and salt key.

Hussnain

JW Player

User  
0 rated :

Got same problem , nothing could help me :S
Opera > mozilla > Google chrome all download the whole file before playing !
No problem on IE , everythin runnin well =) but Lagg D:

Ethan Feldman

JW Player Support Agent  
0 rated :

@Spayman – Can you provide a link to where you are running this?

This question has received the maximum number of answers.