
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (81)
-
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 ) (...) -
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 (...)
Sur d’autres sites (9826)
-
avformat_write_header return error code when trying to write PCMU encoded frame into avi/mov file
9 août 2015, par Kaidul IslamI am trying to write PCMU G.711 enocded data into
avi
multimedia container using below program which yieldsError occurred when opening output file: Operation not permitted
and when usingmov
container, it yieldsError occurred when opening output file: Invalid argument
. I setAV_CODEC_ID_PCM_U16LE
as audio codec of output format andAV_SAMPLE_FMT_S16
as sample format.What’s the problem here ? Thanks in advance !
-
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
.

-
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 ?