mime mp4 m4v other video formats

Bug #674492 reported by Shaun Ward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DEPRECATED Pantheon
Fix Released
Undecided
Aaron Levy

Bug Description

Hi,

Having a lot of issues with video file formats on the 1.1 install w/ Ubuntu 10.04.

Here is one of the example videos that I am using and having problems with

http://www.youtube.com/watch?v=iWmgFrLFIxI

I use the firefox addon download helper to get the file.

I have it uploaded here on my test server:

http://www.srw-dev.com/nsbikesco.mp4

The server sends no data when downloading this file. I tried to add mp4 or m4v options to the server to the mercury confi file (/etc/apache2/conf.d/mercury), as I am guessing its a mod_deflate issue:

SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.m4v$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.ogg$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.ogv$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary

This does nothing for me.

Any help on this issue would be huge.

Thanks!

Revision history for this message
Shaun Ward (shaun-alethia-inc) wrote :

Got Video working, Thanks to Aaron on the #pantheon IRC Chat.

Had to pipe in mp4:

<code>
sudo nano /etc/varnish/default.vcl
</code>

Add:
<code>
  // No varnish for video
  if (req.url ~ "\.mp4") {
    return (pipe);
  }
</code>

Restart Varnish:
sudo /etc/init.d/varnish restart

Have a feeling that I will need to add more to this. Not too hard to do that though. Example for adding m4v (req.url ~ "\.mp4|\.m4v") should do it.

Revision history for this message
Shaun Ward (shaun-alethia-inc) wrote :

Code tags don't work here.....don't add that part if you use this code (<code></code>)

Greg Coit (gregcoit)
Changed in pantheon:
assignee: nobody → Aaron Levy (aaronlevy)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.