m4v extension not allowed?

fmidgett

Joined: 2011-03-28
Posts: 2
Posted: Mon, 2011-03-28 18:53

I use Gallery to host a membership video site for RC airplanes. I post .mov files just fine. I want to add an iPod gallery but when I upload anything with a m4v extension it is being renamed by gallery and so the movie doesn't work. FileName.m4v is changed to FileName_m4v. Where is the control to allow the files with the m4v extension?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-03-28 22:00

my flashvideo update allows for mp4 to play in flash.
Actually on my site pretty much everything plays in flash/html5 video except win media.

If you have a html5 vodeo/webm capable browser you get Google's awesome VP8 video/webm else you get h264 via flash ;)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-03-29 02:57
fmidgett wrote:
Where is the control to allow the files with the m4v extension?

Install the Mime Maintenance Module and use this to add m4v to the list of recognised mime types.

--
dakanji.com

 
fmidgett

Joined: 2011-03-28
Posts: 2
Posted: Tue, 2011-03-29 16:39

Thanks for the help. Does it matter where exactly I add that? I installed the Mime module, and I added the m4v extension to the Quicktime movie so that it now lists: qt, mov, m4v . However when I upload a file it still changes the dot to an underscore. Filename.m4v becomes Filename_m4v. Is there a certain way I need to apply the change? It does show in the list but doesn't seem to be working.

I also saw on another thread that I could just open and edit the util.php file. But I can't find anything names "util.php" in the files for my site.

Fred

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-03-29 17:10

add a new mime type video/mp4 w/ extension: 3gp, f4v, mp4, m4v
then install my new flashvideo module.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2011-03-29 17:20

The underscore thing is happening because G2 still does not recognise the extension as this is the default treatment of unrecognised extensions.

The settings of the mime module are fairly basic so I'll assume you should be able to work that out.

Perhaps try clearing your caches.
Go to yoursite.com/gallery2/lib/support/index.php?cache and run the script. Check everything but the two with warnings.

PS. DO NOT OVERRIDE THIS SECURITY FEATURE BY EDITING ANY FILES!!!
You will be leaving yourself open to getting hacked otherwise.

--
dakanji.com