Support for additional movei formats

trackie999

Joined: 2009-09-06
Posts: 5
Posted: Sun, 2009-09-06 22:34

I was wondering how difficult it would be to add support for .mov & .avi files?

I tried to hack it in there myself, without luck. (I added mov and avi everywhere I found mp4 in the code. Allowed me to upload the files, but they never actually showed up)

Login or register to post comments
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 216
Posted: Mon, 2009-09-07 04:10

Gallery's video player (flowplayer) doesn't support .mov or .avi files:
http://flowplayer.org/documentation/technical-facts.html

You'd need to find an alternate video player to use with those types of videos.

Login or register to post comments
trackie999

Joined: 2009-09-06
Posts: 5
Posted: Mon, 2009-09-07 12:29

Thanks for the response. Looking at the fact sheet flowplayer only supports 3 formats.

It's one thing that gallery 3 supports limited options for software stacks to install it on,
but limited media format support is a different beast!

Think of a commercial Gallery host. They can come up with LAMP environment easy for G3.
What about users who want to store, avi, mov, mp3, wav, wmv, etc formats? no support -> user go bye bye

I hope as G3 matures, additional video formats will get support, otherwise uptake of G3 will suffer.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Mon, 2009-09-07 16:43

You can still use G2 that has the kitchen sink available as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Tue, 2009-09-08 00:44

Or write additional module(s) that support other formats, but at least for now it's not going to be part of the core feature set.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 216
Posted: Wed, 2009-09-09 19:58
trackie999 wrote:
Thanks for the response. Looking at the fact sheet flowplayer only supports 3 formats.

It's one thing that gallery 3 supports limited options for software stacks to install it on,
but limited media format support is a different beast!

Think of a commercial Gallery host. They can come up with LAMP environment easy for G3.
What about users who want to store, avi, mov, mp3, wav, wmv, etc formats? no support -> user go bye bye

I hope as G3 matures, additional video formats will get support, otherwise uptake of G3 will suffer.

If you've already hacked Gallery to allow for uploading of other formats, why not just hack gallery to use a different video player?

For example, VLC media player supports a bunch of different formats and has a browser plugin. Copy the attached file into your modules/gallery/views file to use it instead of flowplayer (you might need to manually install VLC for this to work, so its probably not as nice of a solution as a flash video player).

Edit:
The file name should be "movieplayer.html.php", the forum seems to have mangled the uploaded copy.

AttachmentSize
movieplayer.html_.php_.txt407 bytes
Login or register to post comments
hkkk

Joined: 2005-10-25
Posts: 39
Posted: Sun, 2009-09-13 22:55

maybe let G3 convert avi, mov, mp3, wav, wmv, etc formats to flv, h.264, mp4 which flowplayer supported.

ffmpeg -i myvideo.flv -f avi -vcodec mpeg4 myvideo.avi ??

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Sun, 2009-09-13 23:05

A module similar to the transcode module in G2 could be written for G3.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
ThomasNovin

Joined: 2008-01-06
Posts: 5
Posted: Mon, 2009-09-14 19:09

Native <video> support from the browser would be really nice!

https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox

One could probably write a module that allows uploading in pretty much any format and then convert it to ogg/theora. It has a fallback to flash also so probably nice to convert it to A) ogg/theora and B) flash as fallback.

Login or register to post comments
hkkk

Joined: 2005-10-25
Posts: 39
Posted: Thu, 2009-10-01 04:17

Where can i download movie module for G3?

Login or register to post comments
hkkk

Joined: 2005-10-25
Posts: 39
Posted: Sat, 2009-10-03 04:13

Since, G3 support flv (flash format) movie.

It work for me, the quality and size is acceptable
ffmpeg -i old.avi -vcodec flv -ar 44100 -b 1200000 new.flv

(PS: the "-b 1200000" can control the size and quality, just try different bit, then see what bit is you want)

Login or register to post comments
freechelmi

Joined: 2009-01-23
Posts: 6
Posted: Wed, 2009-11-04 17:33

the best might be to use :

FirefOgg for video uploaders so the upload is only the encoded theora file

Itheora for visitors so they always watch the same video format and then don't have issues.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Thu, 2009-11-05 02:59

Some other discussion on .avi:
http://gallery.menalto.com/node/91394

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments