
Recherche avancée
Autres articles (11)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
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 (...)
Sur d’autres sites (3641)
-
http: Stop reading after receiving the whole file for non-chunked transfers
11 août 2014, par Martin Storsjöhttp: Stop reading after receiving the whole file for non-chunked transfers
Previously this logic was only used if the server didn’t
respond with Connection : close, but use it even for that case,
if the server response is non-chunked.Originally the http code has relied on Connection : close to close
the socket when the file/stream is received - the http protocol
code just kept reading from the socket until the socket was closed.
In f240ed18 we added a check for the file size, because some
http servers didn’t respond with Connection : close (and wouldn’t
close the socket) even though we requested it, which meant that the
http protocol blocked for a long time at the end of files, waiting
for a socket level timeout.When reading over tls, trying to read at the end of the connection,
when the peer has closed the connection, can produce spurious (but
harmless) warnings. Therefore always voluntarily stop reading when
the specified file size has been received, if not using a chunked
transfer encoding. (For chunked transfers, we already return 0
as soon as we get the chunk header indicating end of stream.)Signed-off-by : Martin Storsjö <martin@martin.st>
-
How to free an AVBuffer and prevent a memory leak, when created with FFmpeg.AutoGen
27 février 2023, par FrostKiwiRegarding https://github.com/Ruslan-B/FFmpeg.AutoGen.Questions/issues/36.


I am using FFmpeg.AutoGen to inject per-Frame Metadata into a video in my C# program via an H.264 SEI Message. Works great. To do so I use
av_frame_new_side_data_from_buf()
, which requires anAVBuffer
to hold the SEI message, pointed at via anAVBufferRef
. This behavior is achieved via the following block. ( Full source file referenced in the GitHub issue. )

fixed (byte* pMessageData = message)
{
 AVBufferRef* MetaDataBuffer = ffmpeg.av_buffer_alloc((ulong)message.Length);
 MetaDataBuffer->data = pMessageData;
 AVFrameSideData* sideData = ffmpeg.av_frame_new_side_data_from_buf(&frame, AVFrameSideDataType.AV_FRAME_DATA_SEI_UNREGISTERED, MetaDataBuffer);
}



This creates a memory leak, as the buffer is never freed. However, I do not understand how to actually free this buffer. I have tried
av_free()
,av_freep()
,av_buffer_unref()
in different orders, but have either gotten no effect at all, or an immediate exit of ffmpeg, without exception an exception being thrown.

To add insult to injury, because the buffer is owned by the ffmpeg dll and not the C# process, the performance profiler is blind to this memory leak, reporting an unchanging heap size.


How can I properly free this buffer ?


-
NVidia driver libraries in nvidia/cuda image
16 février 2018, par Islam SabyrgaliyevI want to run ffmpeg with cuvid hw-accelerated decoding in the container based on official
nvidia/cuda
image. Ffmpeg is not able to find libnvcuvid.so, although there are all required cuda libs.
The output ofldconfig -p | grep libnv
from the container :libnvrtc.so (libc6,x86-64) => /usr/local/cuda-9.0/targets/x86_64-linux/lib/libnvrtc.so
libnvrtc-builtins.so (libc6,x86-64) => /usr/local/cuda-9.0/targets/x86_64-linux/lib/libnvrtc-builtins.so
libnvidia-ptxjitcompiler.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.1
libnvidia-opencl.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
libnvidia-ml.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
libnvidia-fatbinaryloader.so.390.12 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnvidia-fatbinaryloader.so.390.12
libnvidia-compiler.so.390.12 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnvidia-compiler.so.390.12
libnvidia-cfg.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnvidia-cfg.so.1
libnvgraph.so (libc6,x86-64) => /usr/local/cuda-9.0/targets/x86_64-linux/lib/libnvgraph.so
libnvblas.so (libc6,x86-64) => /usr/local/cuda-9.0/targets/x86_64-linux/lib/libnvblas.so
libnvToolsExt.so (libc6,x86-64) => /usr/local/cuda-9.0/targets/x86_64-linux/lib/libnvToolsExt.soShould I just copy
libnvcuvid.so
from the host ? Wouldn’t it break if underlying driver version changes ?