3g2 support

mixterp

Joined: 2008-04-16
Posts: 14
Posted: Sun, 2008-05-25 23:53

I have video files [3g2] from my phone that i uploaded, however, I currently only have the option to download the file when i click on it, and there is no thumbnail for it. On my computer this file plays in quicktime, how could I get it to work in my gallery?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2008-05-26 03:33

ffmpeg might generate a thumb for you. http://codex.gallery2.org/Gallery2:Modules:ffmpeg
if not then add your own custom thumbnail, you will need the thumbnail module: http://codex.gallery2.org/Gallery2:Modules:thumbnail
You will have to play with the MIME types to get Gallery to play them inline. Site admin; MIME types.

I cant get a example to play with quicktime in a browser so I'll need a example file that can play in a browser.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mixterp

Joined: 2008-04-16
Posts: 14
Posted: Thu, 2008-05-29 00:10

Here is an example file

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2008-05-29 01:51

Thanks for that.
Now I need a example of a HTML page that has a player that will play that/similar file in the html page.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mixterp

Joined: 2008-04-16
Posts: 14
Posted: Thu, 2008-05-29 02:07

i don't have one. if i play it on my computer it plays through quicktime.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2008-05-29 02:14

We need to know the code required to play embedded. Perhaps you can research this on the quicktime site and generate a html example?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
JavanDesigns
JavanDesigns's picture

Joined: 2008-07-03
Posts: 2
Posted: Thu, 2008-07-03 02:30

These videos do the same on my site. I edited ffmepg as directed in http://gallery.menalto.com/node/66915 and now I get thumbnail images for the videos. I also edited the Mime type in Gallery and it is recognized as a movie. However once you click to view the movie it just has a "Download movie" link. If you click on the link it opens a page in gallery and plays the movie in Quicktime. You can check out what happens at http://www.javan.ws/?q=gallery&g2_itemId=1039. This is in the latest svn version of Gallery 2 (Gallery version = 2.3-svn core 1.2.35 r17672).

How can I get it to play on the page after clicking the thunbnail instead of having to click again to get to the movie?

 
JavanDesigns
JavanDesigns's picture

Joined: 2008-07-03
Posts: 2
Posted: Thu, 2008-07-03 13:36

Sorry to answer my own post. After working on this problem for a little over a week it figures that I would find a fix within hours of asking for help. I am going to list the steps I took to get 3g2 videos to play on my site.

1. To get thumbnails follow instructions here: http://gallery.menalto.com/node/66915

2. Under Site Admin - MIME Types add video/3gpp2 with extension 3g2, 3gp

3. Under the Gallery 2 directory edit /modules/core/classes/GalleryMovieItem.class
Add 'video/3gpp2', to function canBeViewedInline() where the other Mime types are located.
Add case 'video/3gpp2': to function render($format, $params) where the other Mime types are located.

This will have all newly posted 3g2 items act like any other video/photo. It will load embedded Quicktime to play the video once the thumbnail is clicked. Can this be added into Gallery by default?

I do have one question that I will probably not figure out since I only had a few images posted. The 3g2 files that where already in the gallery did not pick up the new settings. I had to re-upload my images to get them to work. This was not a problem since I only have about twelve images, but could be bad if someone has a lot of these movies already posted. Is there a way to make Gallery reset the properties so that all the files work right?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2008-07-03 14:31
Quote:
Can this be added into Gallery by default?

Please create a patch file and submit to:
http://sourceforge.net/tracker/?group_id=7130&atid=307130
item in the forums tend to get lost.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team