
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (59)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (4081)
-
Where to inject code to print out motion vectors and DC coefficients inside ffmpeg lib
12 juin 2018, par KindermannFor research purposes, I need to extract information about motion vectors and DC coefficients from an MPEG4 video.
I have inserted many
printf
into virtually each function insidempeg4videodec.c
and recompiled theffmpeg
library then executeddemuxing_decoding.c
which is available at : http://ffmpeg.org/doxygen/trunk/demuxing_decoding_8c-example.htmlSurprisingly none of those
printf
I inserted was shown in the console. Can you give me some hints which file(s) in theffmpeg
library should I touch in order to print outMVectors
andDC
coefficients of a MPEG4 video file ? -
Where to inject code to print out motion vectors and DC coefficients inside ffmpeg lib
6 mai 2016, par KindermannFor research purposes, I need to extract information about motion vectors and DC coefficients from an MPEG4 video.
I have inserted many
printf
into virtually each function insidempeg4videodec.c
and recompiled theffmpeg
library then executeddemuxing_decoding.c
which is available at : http://ffmpeg.org/doxygen/trunk/demuxing_decoding_8c-example.htmlSurprisingly none of those
printf
I inserted was shown in the console. Can you give me some hints which file(s) in theffmpeg
library should I touch in order to print outMVectors
andDC
coefficients of a MPEG4 video file ? -
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
.