
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (72)
-
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 (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
La gestion des forums
3 novembre 2011, parSi les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
Accès à l’interface de modération des messages
Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)
Sur d’autres sites (6478)
-
What is the best way to get duration of a video using ffprobe (ffmpeg) ?
15 juin 2023, par promaxdevMost of the solutions to get duration revolves around parsing the output to get the duration. Even FFProbe official documentation here says that there is no duration stored for MKV, webm, etc.


Take the below examples.


ffprobe -v error -i <inputmkv> -show_entries stream=...,duration,.. -of default=noprint_wrappers=1
</inputmkv>


This gives me the below output. This is not having duration.




But when I run the same command differently like below, I am getting this output but having duration. Just removed '-v error' part.


ffprobe -i <inputmkv> -show_entries stream=...duration,... -of default=noprint_wrappers=1 
</inputmkv>




If you notice the same command shows the duration in one place and not in another place.


So my question is, What is the best way to get duration in ffmpeg, especially for the video streams ?


Edit : I have already explored decoding using null mux option. But that is a costly operation and also need to parse the output.


-
How to force AVCodecContext to release all references to any buffers
17 septembre 2024, par imikboxI'm using FFMPEG to decode a video stream and I have implemented a custom functions for
AVFrame
memory allocation and de-allocation (by setting a custom function forcodec_ctx->get_buffer2
). So when anAVFrame
requires new memory, I do the memory allocation and wrap anAvBufferRef
around it usingav_buffer_create
. I also define my custom de-allocation function, so when the reference countedAvBufferRef
is not required anymore, I do the memory clean up.
This way I can log precisely when memory gets allocated and when a buffer becomes free.

During video decoding I want to do a seek, for that I need to clear out all buffers from my
AVCodecContext
. I'm following the official documentation for that :

- 

- enter draining mode by sending
NULL
to the decoder - collect all frames from the decoder
- flush
AVCodecContext








This is the code for that :


avcodec_send_packet(codec_ctx, NULL);
 auto result = 0;
 while (result != AVERROR_EOF)
 {
 auto frame = av_frame_alloc();
 result = avcodec_receive_frame(codec_ctx, frame);
 av_frame_free(&frame);
 }
 avcodec_flush_buffers(codec_ctx);



However, I can see (due to my custom memory management) that not all frames are released.
Only when I close the codec context by calling
avcodec_free_context
, I see all frames getting released.

Any hints how I can completely release all resources in
AVCodecContext
(without closing it) ?

- enter draining mode by sending
-
Compiling FFmpeg with option —enable-libass on CentOS 5 32bit [closed]
26 mai 2012, par whatUwantI have already installed libass and libass-devel
yum install libass libass-devel
...
Package libass-0.9.11-1.el5.rf.i386 already installed and latest version
Package libass-devel-0.9.11-1.el5.rf.i386 already installed and latest version
Nothing to doThe source code of ffmpeg is from official git.
I try to compile ffmpeg with the option —enable-libass. But it prompts "ERROR : libass not found" every time../configure --enable-version3 \
--enable-libvorbis \
--enable-libx264 \
--enable-libxvid \
--disable-ffplay \
--enable-shared \
--enable-libmp3lame \
--enable-gpl \
--enable-pthreads \
--enable-postproc \
--enable-x11grab \
--enable-libgsm \
--enable-swscale \
--enable-nonfree \
--enable-avfilter \
--enable-libassIn config.log it says
check_pkg_config libass ass/ass.h ass_library_init
ERROR: libass not foundI've checked
/usr/local/include/ass/ass.h
and
/usr/include/ass/ass.h
this ass.h does exist in both places.
"pkg-config —cflags —libs libass" says
Package enca was not found in the pkg-config search path.
Perhaps you should add the directory containing `enca.pc'
to the PKG_CONFIG_PATH environment variable
Package 'enca', required by 'libass', not found"yum install enca" says
Package enca-1.10-1.el5.rf.i386 already installed and latest version