
Recherche avancée
Autres articles (56)
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (5831)
-
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 !