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

Embed won't play until fully buffered with encode; solutions?


I used to, using an h264 (x264) encoded mp4, be able to have videos play while the video buffered. After updating my encoding method (MediaCoder), I've been having the weird problem that all new videos will wait until they're fully buffered before playing.

Compare:

http://www.kisamayatsu.com/TH/th5l2.html (loads immediately, will play while buffering)

http://www.kisamayatsu.com/TH/test2.html (will only load after buffering, won't play while buffering, despite being both smaller and shorter)

The video settings I'm using in MediaCoder are

Format: H.264
Mode: 2-Pass at various bitrate settings (would this even have an effect)
(Profile: Main, Preset: Medium, Tune: Touhou, default settings all around)
Audio is FAAC (LC-AAC) at 128 Avg Bitrate.

It's not a huge issue but... bizarre.

54 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Run this application on your 2nd video – http://renaun.com/blog/2007/08/22/234/

JW Player

User  
0 rated :

Thank you so much!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np! :)

JW Player

User  
0 rated :

Didn't word for me. =/

Ethan Feldman

JW Player Support Agent  
0 rated :

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

JW Player

User  
0 rated :

ffmpeg have the same trouble, it can be fixed with qt-faststart..

regards

JW Player

User  
0 rated :

I am having the same problem. I want users to be able to play my video while it is buffering. At the moment they have to wait until it has finished. Many thanks, Ru

This is the URL of the video:

http://www.surfsimply.com/podcast/

This is the code:

bc.. <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='700' height='300' id='single1' name='single1'>
<param name='movie' value='/jw/player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='base' value='/jw/'>
<param name='flashvars' value='playlistfile=http://www.surfsimply.com/podcast-rss-feed/&author=Surf Simply&lightcolor=#eee&backcolor=#444&frontcolor=#eee&height=300&description=A lot of surfers over the last few years, have asked us to make available online some of the key building blocks of surfing which we had covered with them during their lessons with us here in Nosara. So, being people who like to say yes to stuff, we obliged.&playlist=right&playlistsize=200&autostart=true'>
<embed
type='application/x-shockwave-flash'
id='single2'
name='single2'
src='/jw/player.swf'
width='700'
height='300'
bgcolor='undefined'
allowscriptaccess='always'
allowfullscreen='true'
wmode='transparent'
base='/jw/'
flashvars='playlistfile=http://www.surfsimply.com/podcast-rss-feed/&author=Surf Simply&height=300&description=A lot of surfers over the last few years, have asked us to make available online some of the key building blocks of surfing which we had covered with them during their lessons with us here in Nosara. So, being people who like to say yes to stuff, we obliged.&playlist=right&playlistsize=200&lightcolor=#eee&backcolor=#444&frontcolor=#eee&autostart=true'
/>
</object>

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi,

Use this application on your MP4 files, to fix the issue – http://renaun.com/blog/2010/06/qtindexswapper-2/

Best,
-Ethan

JW Player

User  
0 rated :

Thank you! This worked, and the batch function made it easy as it can get.

Ethan Feldman

JW Player Support Agent  
0 rated :

No problem!

JW Player

User  
0 rated :

I have done the above and it says that both of my files have the .moov in the right location but they still dont work.
I would love some help please.

I placed both of these files into the browser and I can watch them however as soon as I put them in a player, they dont play

Here are the files:
http://www.dualnetworking.com/wp-content/uploads/landingvideos/makealifestyle/thankyoupage/mannatechdestinyunfolding_qtp.mp4

www.dualnetworking.com/wp-content/uploads/landingvideos/releaseyourfatnow/thankyoupage/mannatechosolean.mp4

Please help

James

Ethan Feldman

JW Player Support Agent  
0 rated :

These files work fine for me in the JW Player wizard – http://www.longtailvideo.com/support/jw-player-setup-wizard

JW Player

User  
0 rated :

Hi, I've used the GT Index Swapper application above on my MP4 file, I have set the bufferlength to 5, and it still waits until the video has fully loaded to being playing. Is there something I need to enable on my server?

Link - http://theecareportsdev2010.ecasitebuild.com/

Code -

<script type='text/javascript' src='/sites/all/themes/theeca/jwplayer/jwplayer.js'></script>
<div id="mediaplayer"> </div>
<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'playerID',
'width': '748',
'height': '465',
'file': '/sites/all/themes/theeca/video/ECA-Do You Game-v2-3_qtp.mp4',
'skin': '/sites/all/themes/theeca/jwplayer/skins/glow/glow.zip',
'image': '/sites/all/themes/theeca/video/video-still.jpg',
'controlbar': 'over',
'bufferlength': '5',
'modes': [
{type: 'html5'},
{type: 'flash', src: '/sites/all/themes/theeca/jwplayer/player.swf'}
]
});
</script>

Any help would be appreciated, thanks.

-Mike

Ethan Feldman

JW Player Support Agent  
0 rated :

If you are sure that you swapped the MOOV-ATOM using this program – http://renaun.com/blog/2010/06/qtindexswapper-2/, then I would suggest making sure that your server has GZIP Compression disabled.

JW Player

User  
0 rated :

Great, thanks for your prompt reply I will look into that and let you know how it works.

-Mike

JW Player

User  
0 rated :

Hey Ethan,

Thank you for the tip, but I just checked via a third-party site and my server is not gzipping the page... anything else you can think of that I could try?

Thanks,
Mike

Ethan Feldman

JW Player Support Agent  
0 rated :

Are you positive you ran the index swapper? Also, it is possible that your server is gzipping the mp4 files, or you do not have the mp4 mime-type set up.

JW Player

User  
0 rated :

Hi Ethan,

Yes I am positive that the index swapper ran, it said it was successful and then when I ran it again on the same file it failed saying that the index was already in the correct position.

As for gzipping MP4 files I will look into that as all I was able to confirm before is that it wasn't gzipping the page itself.

Could you explain the MIME-type suggestion a bit? For instance my file does play, it just won't do it until it has fully buffered... if the MIME-type wasn't set up would it play the video at all? If it would still play it, then I will look into that as well.

Thanks for all your help, it is much appreciated.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, it probably isn’t a MIME-TYPE issue, then. I would check with your hosting provider about GZIP, though.

JW Player

User  
0 rated :

Hey Ethan, was able to check with my hosting company and nothing on our server is currently being compressed so it looks like we have hit a dead end ... if you have any other suggestions they would be much appreciated it, if not thanks for all your help, we gave it a good run and it looks like I will unfortunately have to use youtube... which is too bad because I wanted to make use of a custom still-frame lol!

-Mike

Ethan Feldman

JW Player Support Agent  
0 rated :

You need to ask your hosting company to turn off the compression. Can’t they do that for you?

JW Player

User  
0 rated :

Well the compression isn't even enabled is the thing... our site isn't compressing the MP4 file (or anything for that matter)... IDK if you have any other ideas as to what could be causing the video to fully download before playing?

Ethan Feldman

JW Player Support Agent  
0 rated :

Try to download this file – http://www.longtailvideo.com/jw/upload/bunny.mp4

Put it on your site.

See if it works.

If it does, then your video encoding is to blame.

If it has to download fully, something is up with your server.

JW Player

User  
0 rated :

Okay, good idea thank you Ethan I will let you know how it works out :)

JW Player

User  
0 rated :

Hi Ethan, good call, it is definitely an issue with my videos encoding I will have to take a look at that. Thanks for helping me to figure this issue out.

-Mike

JW Player

User  
0 rated :

I guess what is happening is when I shrink down the file using Format Factory it messes with the encoding. My video is currently about 68MB (this original version does load correctly) and I need to be able to optimize it for my web page... do you know of any free programs to do so?

Ethan Feldman

JW Player Support Agent  
0 rated :

http://handbrake.fr/

JW Player

User  
0 rated :

Thanks Ethan, I actually ended up using bitsontherun.com from your FAQ section.. great service if anyone else has similar problems.

Ethan Feldman

JW Player Support Agent  
0 rated :

Okay!

JW Player

User  
0 rated :

Hi, i have a problem here
http://casaclubtv.com/maytte_consejo2.shtml

the files loads then play

i have already used
http://renaun.com/blog/2010/06/qtindexswapper-2/


any help?

Ethan Feldman

JW Player Support Agent  
0 rated :

Make sure GZIP Compression is disabled.

JW Player

User  
0 rated :

This worked perfectly for me, thank you so much! I wasted hours trying to figure out why it wouldn't play until fully downloaded. Now it's working perfectly, thanks to that program. I'm so happy!

Ethan Feldman

JW Player Support Agent  
0 rated :

Great!

JW Player

User  
0 rated :

hi all, i m encountering a prblm with my video player, below is the script of my player. when i upload this file on my website the video plays but i cannot forward it until it buffers to that specific point,
below is the code for my player

<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200">
<param

name="movie" value="player-licensed.swf" />
<param name="allowfullscreen" value="true" />
<param

name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=justin.flv&image=preview.jpg" />


<embed
type="application/x-shockwave-flash"
id="player2"
name="player2"


src="player-licensed.swf"
width="328"
height="200"


allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=justin.flv&image=preview.jpg"


/>
</object>
thx in advance,...

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link?

JW Player

User  
0 rated :

and onething else which i forgot to mention that when i use a link from youtube then it works fine

thx for any help

Ethan Feldman

JW Player Support Agent  
0 rated :

Please provide a link ;)

JW Player

User  
0 rated :

http://vid.orgfree.com/
here is link to my player
while it starts playing click somewhere to the middle or before end so it wont work but if instead of .flv link i put youtube;s link it works fine

Ethan Feldman

JW Player Support Agent  
0 rated :

This is because you are only using progressive download, so you can only seek to buffered parts of the video.

YouTube uses http streaming.

And you can use it too!

Here is how to use it – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12534/video-delivery-http-pseudo-streaming

JW Player

User  
0 rated :

i replaced my codes with this links codes but still i m facing the same prblm.
http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16010/connecting-to-an-http-pseudo-streaming-server
as i think i have prblm with jwplayer of this script
<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
plz help...

JW Player

User  
0 rated :

finally i put http streaming too in my code but i am facing the same prblm still
here is the link
http://vid.orgfree.com/j.html

any help would b appreciated//...

Ethan Feldman

JW Player Support Agent  
0 rated :

@Josh – What streaming module are you running on your server?

JW Player

User  
0 rated :

its useless asking here again and again and i get reply after 2 days .........................................
i ll help out myself....man

Ethan Feldman

JW Player Support Agent  
0 rated :

I asked you what streaming module you were using…?

JW Player

User  
0 rated :

Thank Ethan! This helped out a lot! And Don't bother with Josh, he seems to be rather impatient, and ungrateful. I mean, it was on the weekend when he posted his last question. People take days off, Josh. :D

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

JW Player

User  
0 rated :

Hi, i want to know how to integrate that into my video, can you please ellaborate on how to use this? this is my first time to work on with flash video

JW Player

User  
0 rated :

by the way, the flash video is on the ftp server. much thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Not sure what you are asking?

JW Player

User  
0 rated :

my video dont start playing until the video has been fully downloaded. i want to start my video while buffering. am i in a wrong thread?

Ethan Feldman

JW Player Support Agent  
0 rated :

Link ?

JW Player

User  
0 rated :

Hello
my video dont start playing until the video has been fully downloaded.

Whith the Iphone it start playing during bufferng.
I tried to compare the parameter whith your demo file and it seems similar!

The link is:
http://joomla17.1cd1.com/index.php/ipad

Will you please tell my which encoder you recommend?

Regards
Jean-Claude

JW Player

User  
0 rated :

Hello

I solved the problem by using QTIndexSwapper.air

Thanks to renau.com

Jean-Claude

Ethan Feldman

JW Player Support Agent  
0 rated :

Cool!

This question has received the maximum number of answers.