Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

2 GB Limit in Firefox

22 replies [Last post]
Reply

It appears that JW Player 5.4 has a 2 GB limit in Firefox (v 3.6.14 and 3.6.15 with the latest flash installed 10.2.152.26). When I attempt to download a video that is more than 2 GB in size, it never plays, but continuously buffers. This happens on both Macs and Windows. I've tried multiple computers to make sure it wasn't just mine. I installed the httpfox add-on to see what was going on. It shows that the video is being downloaded. I let it fully download, and the animated buffering icon just turns to the play symbol, but the video never starts. The video plays fine from quicktime if using the /path/to/file.mp4?start=0 in the url. What's odd is that I can play the files fine from Firefox if I load the html page from my local hard drive, and not the web server. The videos stream fine from Internet Explorer and Safari, well except for Safari's hobbling of Flash causing choppy video.

I've created 2 test videos to demonstrate. Both were extracted from the same video using:

ffmpeg -ss 00:00:00.0 -t 01:11:00.0 -i /path/to/tmp.mp4 -acodec copy -vcodec copy -async 1 /path/to/test.mp4

Then again with the duration (-t) set to 01:12:00.0. The first video is exactly 2,130,246,938 bytes in size, and it plays fine. The second video is exactly 2,159,913,862 bytes, and it exhibits the problem. The original source video was encoded with the standard ffmpeg hq command:

ffmpeg -i /path/to/tsmuxed-camera-source.m2ts -vcodec libx264 -vpre hq -b 4000k -deinterlace -flags +ilme -acodec libfaac -ab 96k -threads 0 /path/to/tmp.mp4

The tsmuxed-camera-source.m2ts file was created with tsMuxeR v 1.10.6, joining the ts files from an AVCHD stream folder. I'm using the H264 Streaming Module with Apache 2.2.

I'm not sure who in the software stack is to blame: Firefox, Adobe Flash, or JW Player, but I thought I would try here first.

Reply

The spam filter on this site will not let me post the link to the test videos. Please email me at jtriende (at) wisc (dot) edu if you would like to see them.

Reply
Reply

I forgot to mention that I ran qt-faststart (from the ffmpeg extra tools) against both test videos as well, so this isn't a case of the moov atom being at the end of the videos.

Reply

Hi,

We have the same problem, a video more than 2 Gio in size do not load on Firefox.
One solution, a patch exists?

Thx,
Regards.

Reply

Do you have a link?

Reply

Hi,

I can't publish the link on a public forum.
Do you have an e-mail chere i can write you ?

Thx.
Regards.

Reply
Reply

I know this is an old thread, but I'm having the same problem with Firefox. It doesn't play files bigger than 2GB, while files with lower size play normally. They do play fine in Chrome however.

If you guys found a solution to this problem, can you please share?

Reply

Link plz

Reply

Have the Same problems with Files larger than 2.1 GB in Firefox
In Google Chrome it works fine
Link:
http://tinyurl.com/7d64t72

Reply

I see this in Firebug, maybe a clue is hidden in here?

Accept-Ranges bytes
Connection Keep-Alive
Content-Disposition attachment
Content-Length 3042393027
Content-Type video/mp4
Date Thu, 12 Jan 2012 17:46:00 GMT
Etag "1801421-b6aabeab-4b5e9fd44e200;-1252574269"
Keep-Alive timeout=15, max=29
Last-Modified Sat, 07 Jan 2012 06:08:08 GMT
Server Apache/2.2.16 (Debian)
X-Mod-H264-Streaming version=2.2.7
Reply

No idiea :-(

Reply

Maybe your host has an idea, can you ask them?

Reply

The Site is running on my server.
When i start the Video in Firefox it is loading and loeding a lot of bits and bytes but nothing hapens.
I realy dont know what to do now :-/

I also tryed older Firefox versions but same result.

Reply

What happens if you disable pseudo streaming?

Reply

Exact same thing.
Had the Problem before i enabled pseudo streaming.
The machine runs on 64 Bit Debian.
Could it have sommething to do with that?

Reply

Hm, not that I know of. Is there a max file size set by the server?

Reply

You can set file limits in php but that can not have to do sommething with it.
I have a blank server only with apache running on it and its the same problem.
Chrome is working, firefox is not.

not cool :-/

Reply

Hmm. Is there a default setting for this though? (not in php).

http://www.stevenwoodson.com/blog/archives/2011/02/16/apache-2gb-file-limit/

http://bit.ly/xMW4Lt

Reply

I have done some research, and although the reports aren't very consistent, it looks like a 2 GB filesize limit when accessing content through Flash can be caused when either the browser, or Flash, or the interface between browser and Flash is only 32 bit.

Since Chrome ships with its own Flash plugin, Chome will have fixed this issue, but with Firefox this is not possible, and there is simply no way for a web based player to work around this, because we are still bound by the limitations of the browser.

In any case, your real problem is that you're trying to play back an absurdly large file over HTTP. You need to use the right tool for the right job.

If your video is long (longer than 10-15 minutes), HTTP tends to be the wrong video format because the initial load time of a video goes up linearly relative to its length, so startup times become unacceptably long. This works much better if you use a streaming server (Wowza or Flash Media Server).

Also, if you serve up longer content, seek times will get longer if your video is longer too, and most importantly, a lot of time people tend to not watch the whole video, so if you serve up a 2 GB video over HTTP, this will likely result in terabytes of wasted bandwidth per month that is not viewed, but that you still pay for.

If your video is shorter than 15 minutes and yet >2 GB, you simply didn't compress it well enough.

Reply

Okay I solved the Problem with an earlyvideo rtmp server.
Files over 2 GB can now be played in JW Player.

Reply

Awesome, glad you got it!

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options