Quote:
Gallery version = 2.1-rc-2a core 1.0.34
PHP version = 5.1.2 apache
Webserver = Apache/1.3.33 (Win32) PHP/5.1.2
Database = mysql 4.1.14-nt, lock.system=database
Toolkits = Exif, ArchiveUpload, Thumbnail, Gd, Ffmpeg(0.4.8), SquareThumb
Acceleration = none/86400, none/86400
Operating system = Windows NT ***** 5.1 build 2600
Default theme = classic
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
hi,
i'am new user and after many hours of tests to make thumbnail of quicktime movies with ffmpeg, i found only one solution:
change some code in gallery2.
i hope to help some users...
Table: g2_tkpropertymimetypemap added two records:
g_propertyName dimensions
g_toolkitId Ffmpeg
g_mimeType video/quicktime
g_propertyName dimensions-and-duration
g_toolkitId Ffmpeg
g_mimeType video/quicktime
Table: g2_tkoperatnmimetypemap added two records:
g_operationName select-offset
g_toolkitId Ffmpeg
g_mimeType video/quicktime
g_priority 24
g_operationName convert-to-image/jpeg
g_toolkitId Ffmpeg
g_mimeType video/quicktime
g_priority 24
File ./gallery2/modules/ffmpeg/classes/ffmpegToolkitHelper.class Line 139
Before: $relevantTypes['mov'] = 'mov';
After: $relevantTypes['mov,mp4,m4a,3gp'] = 'mov';
and thank's for your work !
Posts: 2
Hey, thanks a lot for posting this. Although I'm having trouble editing my database, mostly because Im very inexperienced with it. Would you mind giving a little more detail on adding the records? Im using MyPHPAdmin, but commands for the commandline work too.
Here are some screen shots of what Im looking at. I would do trial and error as I usually do to fix things, but I dont want to mess up my database so Id rather not.
[img]http://img240.imageshack.us/img240/2911/myphpadmin3sv.jpg[/img]
[img]http://img207.imageshack.us/img207/6193/myphpadmin20xb.jpg[/img]
Thanks in advance!
-SkyNative
Posts: 3
ok,
it's quite simple
FIRST
select the g2_tkpropertymimetypemap table and click browse link on the right screen.
on the bottom of the right windows there is à insert new record link.
click on it !
set this values for each fields:
g_propertyName dimensions
g_toolkitId Ffmpeg
g_mimeType video/quicktime
repeat this for the second record in this table with values:
g_propertyName dimensions-and-duration
g_toolkitId Ffmpeg
g_mimeType video/quicktime
TWO
select the g2_tkoperatnmimetypemap table and click browse link on the right screen.
on the bottom of the right windows there is à insert new record link.
click on it !set this values for each fields:
g_operationName select-offset
g_toolkitId Ffmpeg
g_mimeType video/quicktime
g_priority 24
repeat this for the second record in this table with values:
g_operationName convert-to-image/jpeg
g_toolkitId Ffmpeg
g_mimeType video/quicktime
g_priority 24
and now edit the ffmpegToolkitHelper.class
and finally, go to Site admin and click on module link in gallery2 to deactivate ffmpeg.
Be carefull do not unistall ffmpeg, just deactivate it.
after that re-activate the ffmpeg module and it's ok !
sorry for my english.
and good luck !
Posts: 2
Thanks a lot again. That's very helpful! When I go to add the record (row) for each field, it asks for a function and a value. Im guessing a value would be for example "video/quicktime" but what should I set for the function? It gives me a drop down list of options like ASCII, CHAR, SOUNDEX etc.
Also its showing two lists of fields, rather than one, with an "ignore" checkbox. Do I leave the second list of fields blank? Thank you so much.
-SkyNative /NOOB
Posts: 8601
madjer, my 'ffmpeg -formats' (0.4.9-pre1) output has two separate lines:
Does your output not have "mov" on a separate line?
Posts: 15
Are you using a linux server. I am trying to get ffmpeg set up on a linux server and i am unable to find the binaries or figure out how to install them. Can you help.
Posts: 8601
just google ffmpeg to find where to download it.. you may need to compile it.