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 |

Posts: 216
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.
Posts: 5
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.
Posts: 16315
You can still use G2 that has the kitchen sink available as well.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 9281
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
Posts: 216
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.
Posts: 39
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 ??
Posts: 16315
A module similar to the transcode module in G2 could be written for G3.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
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.
Posts: 39
Where can i download movie module for G3?
Posts: 39
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)
Posts: 6
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.
Posts: 16315
Some other discussion on .avi:
http://gallery.menalto.com/node/91394
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team