
Recherche avancée
Autres articles (77)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
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 (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (7099)
-
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
.

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