
Recherche avancée
Autres articles (44)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9104)
-
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.