He instalado ffmpeg en servidor local modificando el archivo php.ini agregando otros archivos a php/ext y otras cosas por ahi, el hecho es que ya funciona, al momento de subir un video se toma una captura, una imagen en formato jpg y hasta ahora todo funciona muy bien la cuestion es que cuando subo un video se toma cierto tiempo, de modo local no se demora mucho pero cuando es a un servidor se demora un poco mas y pense en utilizar un barra de progreso hasta que le video se subo por completo.
La barra ya la tengo la cuestion es como la programa para que tarde en llenarse mientras el video se sube por completo.
Este es el codigo que tengo de la barra:
<HTML>
<HEAD>
<span style="font-weight: 700">
<font face="Verdana" style="font-size: 15pt">
Cargando video...<br><br>
</font>
</span>
<center>
<style>
#barMv{
POSITION:absolute;
LEFT:0;
TOP:0;
BACKGROUND-COLOR:red;
}
#barBg{
POSITION:absolute;
LEFT:0;
TOP:0;
BACKGROUND-COLOR:black;
BORDER:red 1px solid;
COLOR:red;
FONT-WEIGHT:bold;
FONT-FAMILY: "Verdana, Arial";
FONT-SIZE: 13px;
}
#prct{
COLOR:black;
FONT-WEIGHT:bold;
FONT-FAMILY: "Verdana, Arial";
FONT-SIZE: 13px;
}
</style>
<script language="JavaScript1.2">
function postaction(){
//Aqui definiriamos el redireccionamiento
// window.location="http://www-tupagina.com"
}
var percent = 0
var clipright=0
var widthIE=0
var widthNS=0
function initializebar(){
if (document.all){
document.all.barMv.style.clip="rect(0 0 auto 0)"
baranchor.style.visibility="visible"
widthIE=barBg.style.pixelWidth
startIE=setInterval("increaseIE()",200)
}
if (document.layers){
widthNS=document.baranchorNS.document.barBgNS.clip.width
document.baranchorNS.document.barMvNS.clip.right=0
document.baranchorNS.visibility="show"
startNS=setInterval("increaseNS()",200)
}
}
function increaseIE(){
percent = percent + 1
if (percent > 100) percent = 100
document.all.barMv.style.clip="rect(0 "+clipright+" auto 0)"
document.all.barBg.innerHTML = percent + "%"
document.all.prct.innerHTML = percent + "%"
if (clipright<widthIE)
clipright = Math.floor(widthIE * percent / 100)
else{
clearInterval(startIE)
postaction()
}
}
function increaseNS(){
percent = percent + 1
if (percent > 100) percent = 100
if (clipright<baranchor.style.width){
document.baranchorNS.document.barMvNS.clip.right=clipright
clipright = Math.floor(widthNS * percent / widthNS)
}
else{
clearInterval(startNS)
postaction()
}
}
</script>
</HEAD>
<BODY onLoad="initializebar();">
</script><script language="JavaScript1.2">
if (document.all){
document.write('<DIV id="baranchor" style="position:relative;width:400px;height:20px; visibility:hidden;">')
document.write('<div id="barBg" align=center style="width:400px;height:20px;z-index:9">0%</div>')
document.write('<div id="barMv" align=center style="width:400px;height:20px;z-index:10">')
document.write('<TABLE cellSpacing=0 cellPadding=0 border=0 width=400 height=20><TBODY>')
document.write('<TR HEIGHT=20><TD Valign=middle ALIGN=center ID=prct>0%</TD></TR>')
document.write('</TBODY></TABLE></DIV></DIV>')
}
</script>
<ilayer name="baranchorNS" visibility="hide" width=400 height=20><ilayer name="baranchorNS" visibility="hide" width=400 height=20><layer name="barBgNS" bgcolor=black width=400 height=20 z-index=10 left=0 top=0></layer> <layer name="barNS" bgcolor=red width=400 height=20 z-index=11 left=0 top=0></layer> </ilayer></ilayer>
<p dir="ltr">
<font face="Verdana" size="2">Por favor sea paciente<span lang="fr-ca">...</span></font>
</p>
</BODY>
</HTML>
Espero me entiendan y puedan ayudarme gracias.