
Recherche avancée
Autres articles (106)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 ;
-
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 (...)
Sur d’autres sites (14191)
-
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
-
c# NReco.VideoConverter Ubuntu 16.04
19 septembre 2018, par Neyt ChiI’m trying to use the functionality of the NReso library. VideoConverter. The program is launched from Ubuntu OS 16.04 in the MonoDevelopment environment. The operating system is 64 charging. I installed the application FFMpeg and it works fine.
And I have a problem that does not make a lot of sense. I’m trying to use code NReso.VideoConveter from the site official site https://www.nrecosite.com/video_converter_net.aspx :try
{
string [] paths = {"1.mp4",
"1.mp4",
"1.mp4"};
ConcatSettings concatSettings = new ConcatSettings ();
concatSettings.ConcatAudioStream = false;
concatSettings.ConcatVideoStream = true;
FFMpegConverter ffMpegConvert = new FFMpegConverter ();
Console.WriteLine ("Converting ... \ r \ n");
ffMpegConvert.ConcatMedia (paths, "3.mp4", Format.mp4, concatSettings);
Console.WriteLine ("Complete!");
}
catch (Exception e)
{
Console.WriteLine (e.Message);
}The code produces an error of type
"ApplicationName = ’/ home / neytchi / Projects / testVE / testVE /
bin / Debug / ffmpeg.exe’, CommandLine = ’- y -loglevel info -i
"1.mp4" -i "1.mp4" -i "1. mp4 "-f mp4 -filter_complex" concat = n = 3 :
v = 1 [v] "-map" [v] "" 3.mp4 "’, CurrentDirectory =’ / home / neytchi
/ Projects / testVE / testVE / bin / Debug ’, Native error = Access
denied" or so "Unhandled Exception : Systems
.ComponentModel.Win32Exception"I can not understand the cause of problem, but I’m assuming that the library starts the process as 32-bit, when everything else is 64-bit.
Any ideas ? Perhaps someone met with a similar on Ubuntu.