
Recherche avancée
Autres articles (112)
-
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 ;
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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 (6344)
-
How do I get FFMPEG Progress in order to create a progress bar ?
4 juillet 2022, par polandeerI'm trying to create a simple GUI for ffmpeg but am having problems getting the progress of a command. I'm using PySide as the GUI toolkit and I'm also using python3. I'm using QProcess to run the command and would just like to be able to create a progress bar.


EDIT : Preferably I'd like to use QProgressDialog : http://www.pyside.org/docs/pyside/PySide/QtGui/QProgressDialog.html


-
Can't compile project with ffmpeg-light
27 octobre 2016, par wowofbobCompilation of any project which uses openFile function from Codec.FFmpeg.Decode fails with error :
Couldn't match type ‘GHC.IO.Exception.IOException’ with ‘[Char]’
arising from a functional dependency between:
constraint ‘mtl-2.2.1:Control.Monad.Error.Class.MonadError
String IO’
arising from a use of ‘openFile’
instance ‘mtl-2.2.1:Control.Monad.Error.Class.MonadError
GHC.IO.Exception.IOException IO’
at <no location="location" info="info"></no>As an example, compilation of this fails :
openVideoFile :: String -> IO ()
openVideoFile filePath = do
initFFmpeg
avFmtCtx <- openFile filePath
return ()I guess the reason is that there is no ready instance of
MonadError String IO
. But, when I add a dummy instance like this :instance MonadError String IO where
throwError _ = undefined
catchError _ _ = undefinedI’m getting another error :
Functional dependencies conflict between instance declarations:
instance MonadError String IO
-- Defined at src/Video/Play/Base.hs:20:10
instance [safe] MonadError GHC.IO.Exception.IOException IO
-- Defined in ‘Control.Monad.Error.Class’I don’t know how to force compiler to use
MonadError String IO
instace here.- Should I assure GHC that my instance is better ?
- Do I have a wrong environment setup ? I’m using ffmpeg-light clone from here and resolver
lts-7.2
. Host OS is Ubuntu. - There is commit which replaces import of Control.Monad.Error.Class by Control.Monad.Except. But, Control.Monad.Error.Class is still used in Codec.FFmpeg.Common. First time I thought it caused a problem. But it turns out that Control.Monad.Except just re-exports MonadError class from Control.Monad.Error.Class. So, it’s not a problem.
-
Are there people interested in converting ffmpeg source to Go ?
30 septembre 2018, par No OneAfter seeing that Go compiler have been converted from C to Go I thought same for ffmpeg ? Don’t want to go deep into reasons as I think they are obvious. It was very hard to be so close to the have rich library as ffmpeg in other language. It was even hard to make bindings for that scale of library. I’m not enough advanced to start something like this myself, so is there anybody else interested in this ? If yes then where this question worth to be addressed, so people interested in this may have discussion ?
(Seems not enough obvious so adding some details.)
For applications which use large amount of commands with different complexity it is hard to read the code as it’s not actually a code. Instead, it’s commands which you will need to understand by reading docs from ffmpeg’s docs page. I had used ffmpeg before in Nodejs and there was lots of logic of manipulating command string. Also sometimes in windows it was ending with cmd limitations error. When you are working with some language it is nice to see whole logic in that language. So you know go ? than you know everything that is happening with this code without even going off from code and reading docs of another application.
There may be some benefits from executing stuff in goroutines so you can handle concurrency in the way you want not in the way it is implemented in ffmpeg.
Build faster with Go.
Less code.
Possibility to split code into smaller packages.
Also if you are familiar why community converted compiler from C to Go than I think some reasons will fit too.