/**************************************************
  Coppermine 1.5.x Plugin - video2flash_ffmpeg
  *************************************************
  Copyright (c) 2010 Abbas Ali
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/branches/cpg1.5.x/plugins/video2flash_ffmpeg/README.txt $
  $Revision: 7119 $
  $LastChangedBy: gaugau $
  $Date: 2010-01-24 21:39:28 +0100 (So, 24 Jan 2010) $
  **************************************************/
  
This plugin requires ffmpeg (with mp3 codec) [http://ffmpeg.mplayerhq.hu] pre-installed and working on your server. 
Please DO NOT ask for support on installing or configuring ffmpeg. If you don't have ffmpeg or can't install ffmpeg on your server then this plugin is not meant for you.


What will this plugin do?
--------------------------
This plugin will convert all uploaded videos to flv format and create thumbnail from the uploaded video file on the fly. 
FLV and thumbnails will be placed in the directory where the videos are uploaded/batch added. 
Though ffmpeg supports many video formats but i am unsure about wmv. File formats which i tested were avi, mpg, asf, mov.

Secondly on displayimage page a flash player (JW FLV Player) will play those videos. 
So the functionality of this plugin is similar to what Youtube offers i.e. upload video in any format and it will be converted to flv and played using flash player.

So what are you waiting for? Turn your personal gallery into youtube.


How to install
---------------
1. Upload folder video2flash_ffmpeg to your plugins folder.
2. Install via plugin manager.


How to uninstall
-----------------
1. Uninstall via plugin manager.
2. Remove folder video2flash_ffmpeg from your plugins folder.


Usage of plugin
-----------------
Here I try to describe main parameters you have to set
1. Absolute path to ffmpeg binary
	Put the path to the ffmpeg binary file. Example: /usr/bin/ffmpeg
2. Width of the FLV player and Height of the FLV Player
	Set the dimensions of the JW Player box to display
3. Thumb extraction interval in seconds (< 60)
	Before video starts to play JW Player shows an image in it's background. For this purpose it needs to make thumbs.
4. Audio discretization rate
	FFMPEG encodes audio in MPEG Layer version 3. Choose what discretization rate it will use in Hz.
5. Audio bit rate
	FFMPEG encodes audio in MPEG Layer version 3. Choose what bit rate it will use (e.g. 128k).
6. Choose audio encoding method
	Choose what codec to use to encode audio. On some systems mp3 encoding doesn't work, so you can try to use libmp3lame instead of it.
7. Select JW Player Skin
	You can upload as much skins as you want to "plugins/video2flash_ffmpeg/skin" directory. New skins you can find here: http://www.longtailvideo.com/addons/skins
8. Automatically start the player on load
	Will JW Player starts to play video automaticly, when you load video's page in you browser or you have to push Play button first.
9. Control Bar Position
	Set the position of navigation toolbar of the JW Player. Top or bottom means top or bottom. Over means that toolbar will disappear when video is playing. None means JW Player shows no toolbar.
	

Support
-------
Plugin support is only available on coppermine support forums - http://forum.coppermine-gallery.net/index.php/topic,60539.0.html
Please do not email me asking for support.


CHANGELOG
----------
v1.0
[2009-07-10] Release of v1.0
v1.2
[2011-01-25] Added some functions