How to Use:
Part 1 – Setup
-
- Lightbox v2.0 uses the Prototype Framework and Scriptaculous Effects Library. You will need to include these three Javascript files in your header.
<script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script>
- Lightbox v2.0 uses the Prototype Framework and Scriptaculous Effects Library. You will need to include these three Javascript files in your header.
Konfigurasi Media Preview di Alfresco
Share
image #1
Screenshot:
Environment : Alfresco 3.4D, Windows
Server 2008
Langkah-langkah instalasi dan konfigurasi:
1. Download file media-preview.jar
http://code.google.com/p/share-extras/downloads/detail?name=media-preview-0.2.jar&can=2&q=
2. Buat folder lib pada tomcat/shared, sehingga struktur foldernya akan
seperti ini : tomcat/shared/lib
3. Copy file media-preview.jar ke folder tomcat/shared/lib
4. Install FFmpeg pada Windows, sesuaikan apakah Windows yang dipakai
32 bit atau 64 bit.
http://ffmpeg.zeranoe.com/builds/
5. Pada alfresco-global.properties
tambahkan:
ffmpeg.exe=C:\Program Files\FFmpeg\ffmpeg.exe
ffmpeg.base=C:\Program Files\FFmpeg
6. Untuk mengetahui log-nya tambahkan konfigurasi berikut pada file
webapps/alfresco/WEB-INF/classes/log4j.properties:
log4j.logger.org.alfresco.util.exec.RuntimeExec=debug
log4j.logger.org.alfresco.repo.content.transform=debug
log4j.logger.org.alfresco.repo.thumbnail=debug
7. Restart Alfresco
8. Login Alfresco Share
Environment : Alfresco 3.4D, Centos 5
Langkah-langkah instalasi dan konfigurasi:
1. Download file media-preview.jar
http://code.google.com/p/share-extras/downloads/detail?name=media-preview-0.2.jar&can=2&q=
2. Buat folder lib pada tomcat/shared, sehingga struktur foldernya akan
seperti ini : tomcat/shared/lib
3. Copy file media-preview.jar ke folder tomcat/shared/lib
4. Install FFmpeg dengan x264, caranya:
– Download x264-snapshot-20110817-2245
– Chmod +x x264-snapshot-20110817-2245
– cd x264-snapshot-20110817-2245
– ./configure –enable-shared
– ./configure –disable-asm
– make
– make install
– ldconfig
– yum install subversion
– svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk
ffmpeg
– cd ffmpeg/
– ./configure –enable-libx264 –enable-gpl
–enable-shared –disable-yasm
– make
– make install
– ldconfig
– whereis ffmpeg
5. Pada alfresco-global.properties tambahkan:
### FFMPEG
ffmpeg.exe=/usr/local/bin/ffmpeg
6. Untuk mengetahui log-nya tambahkan konfigurasi berikut pada file
webapps/alfresco/WEB-INF/classes/log4j.properties:
log4j.logger.org.alfresco.util.exec.RuntimeExec=debug
log4j.logger.org.alfresco.repo.content.transform=debug
log4j.logger.org.alfresco.repo.thumbnail=debug
7. Restart Alfresco
8. Login Alfresco Share
Referensi:
http://code.google.com/p/share-extras/wiki/MediaPreviews