
Recherche avancée
Autres articles (35)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (6498)
-
Running ffmpeg command using shell_exec in php as a background process in windows
2 octobre 2014, par Vedant TerkarI’m trying to convert a video from
.mp4
to.flv
in php using :shell_exec("ffmpeg -i input.mp4 output.flv 1>output.txt 2>&1");
Also I am taking output of entire process in
output.txt
file to use it in creation of progress bar injavascript
(that’s not the problem here).The problem is :
if video(input.mp4) size is>50Mb then it takes too long to completeshell_exec
(>30secs). which hangs the UI unnecessarily.So what i want to know is :
-
Is there any way to make
shell_exec
work together with rest of the script ? -
I need only to initiate
ffmpeg.exe
viaphp
script and then php script can terminate. -
Once the process is initiated
javascript
will start its magic(at client side).
So I need to execute
shell_exec
async. with rest of the script. and once the process is initiated the script should inform client by simplyecho
ing. It should not wait forffmpeg.exe
to complete its working. Is it possible ?I’ve seen several similar questions on SO, many of them describing the same problem
ex :
Run a ffmpeg process in the background
ffmpeg Progress Bar - Encoding Percentage in PHP
Can ffmpeg show a progress bar ?
etc.
BUT
They all were using
linux
OS’s or Usingcurl
. I’m usingwindows 8
(wamp without curl and any other add-on exceptffmpeg.exe
).So Is it possible ? can experts here please help me one more time ?
Thanks in advance.
-
-
how to enable libvorbis codec in ffmpeg windows ? and how convert from .mov to .webm
22 juillet 2014, par AmeyI am using ffmpeg-20140717-git-fa6716c-win64-shared latest one and they have mentioned
— enable-libvirbose .but once I run the command to convert .mov to .webm then its saying unknown encoder libvorbis
I am not able to enable libvorbis in ffmpeg windows.
what command to enable any codec.
and I am trying to convert .mov to .webm format with this command
ffmpeg -i input.mov -codec:v libvpx -quality good -cpu-used 0 -b:v 225k -qmin 10 -qmax 42 -maxrate 300k -bufsize 1000k -threads 2 -vf scale=-1:560 -codec:a libvorbis -b:a 128k -pass 2 -f webm output.webm
but its having an error of :
Unable to parse option value "-1" as pixel format
Error setting option pix_fmt to value -1and even in command I added some -pix_fmt value like
1] -pix_fmt yuv420p
2] -pix_fmt yuv422p
and many more but still giving same error as I have mentioned...and my .mov file is very high HD file.
please guide me what to write
Thank You.
-
Tests : Fix newline expectation on Windows
9 novembre 2016Tests : Fix newline expectation on Windows
Closes #622