
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (110)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (11797)
-
ffmpeg unexpected exit code 1 for -list_devices and -list_options
8 janvier 2024, par djvgDescription


If I run any of the following commands from the examples in the documentation, using
ffmpeg
4.2.2 on Windows 10, the requested information is successfully displayed in the console, but the process exits with exit code1
, instead of the expected0
(success).

ffmpeg -list_devices true -f dshow -i dummy

ffmpeg -list_options true -f dshow -i video="MyCamera"



As far as I know, exit code
1
on Windows implies "Incorrect function", so I consider this behavior to be unexpected.

If I stream camera input to disk, using e.g.
ffmpeg -f dshow -i video="MyCamera" "myfile.mp4"
, then stop using q, the exit code is0
, as expected.

Question


Does the exit code
1
constitute normal behavior forffmpeg
, or am I doing something wrong ?

Relevance


When running the commands manually, from the command line, the exit code does not make much difference, as long as the requested information is displayed.


However, when running the commands programmatically, it may cause trouble. For example, using Python's
subprocess.run(..., check=True)
, the nonzero exit code causes a CalledProcessError.

Of course there are ways around this, e.g. use
check=False
, but the point is that a workaround would not be necessary ifffmpeg
behaved as expected, i.e. returned0
.

-
FFmpeg add complex filter image and audio to video
5 mars 2019, par fitzmodeI’m working with
fluent-ffmpeg
for Node and would like to add agif
image and anaudio
to an mp4 video. The gif added withcomplexFilter
works as expected, but the audio does not work with thecomplexFilter
applied. Without thecomplexFilter
, the audio works as expected.ffmpeg('/Users/xxx/functions/src/initialvideo.mp4')
.setFfmpegPath(ffmpeg_static.path)
.input('/Users/xxx/functions/src/somegif.gif')
.complexFilter(
[
{
"filter": "overlay",
"options": {
"enable": "between(t,0,4)",
"x": "810",
"y": "465"
},
"inputs": "[0:v][1:v]",
"outputs": "tmp"
}
], ['tmp'])
.addInput('/Users/xxx/functions/src/somemusic.mp3')
.outputOptions(['-pix_fmt yuv420p'])
.on('end',() => {
return response.status(200).send(`Error getting collection: `)
})
.on('error',() => {
return response.status(500).send(`Internal Server Error: `)
})
.save('/Users/xxx/functions/src/finalvideo.mp4')Any ideas on how I can solve this ?
-
Use ffmpeg from an electron app
8 février 2017, par Sharath HuddarI intend to build a basic video editor desktop app. I have built a working prototype in python ( using kivy ). In this prototype I directly call the command line ffmpeg tool.
How can I incorporate ffmpeg into my electron app ?