
Recherche avancée
Autres articles (28)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (3616)
-
ffmpeg alpha merge mp4 to alpha mov (heic)
25 mars 2022, par AlexI have two video files (mp4), matte/alpha (white silhouette) and normal.
I want to create a .mov file with transparent background that is possible to play on iOS/Safari devices.


Commands I'm trying to run :


ffmpeg -i color.mp4 -i alpha.mp4 -filter_complex '[1][0]scale2ref[mask][main];[main][mask]alphamerge' -c:v libx265 -tag:v hvc1 -pix_fmt yuva420p output.mov

ffmpeg -i color.mp4 -i alpha.mp4 -filter_complex '[1][0]scale2ref[mask][main];[main][mask]alphamerge' -c:v qtrle output.mov



Expected result : Transparent background


Actual result : Background is not transparent


What I'm trying to achieve :
https://rotato.app/blog/transparent-videos-for-the-web


-
How can I find out what this ffmpeg error code means ?
27 septembre 2018, par AsikI’m using the function avcodec_decode_video2. On an encoding change in the stream, it returns -1094995529. The documentation only states :
On error a negative value is returned, otherwise the number of bytes
used or zero if no frame could be decompressed.But there doesn’t seem to be an enum of return codes or any other form of documentation. What does the error mean and how can I determine that in general ?
-
FFmpeg av_register_all() memory leak
1er septembre 2015, par Joe AllenI made a conversion function and I started to figure out the memory leaks.I started by make a small program to figure out the leaks but for some reason av_register_all() is also getting a memory leak. Is there something that I am suppose to free ?
main.cpp :
#include
#include <string>
#include <queue>
#include <deque>
#include <iostream>
//#ifdef __cplusplus
extern "C" {
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#include <libavformat></libavformat>avformat.h>
#include <libavcodec></libavcodec>avcodec.h>
#include <libswresample></libswresample>swresample.h>
#include <libswscale></libswscale>swscale.h>
#include <libavutil></libavutil>channel_layout.h>
#include <libavutil></libavutil>common.h>
#include <libavutil></libavutil>imgutils.h>
#include <libavutil></libavutil>mathematics.h>
#include <libavutil></libavutil>avassert.h>
#include <libavutil></libavutil>avstring.h>
#include <libavutil></libavutil>frame.h>
#include <libavutil></libavutil>opt.h>
#include <libavutil></libavutil>samplefmt.h>
#include <libavutil></libavutil>timestamp.h>
#include <libavfilter></libavfilter>avfilter.h>
#include <libavfilter></libavfilter>buffersrc.h>
#include <libavfilter></libavfilter>buffersink.h>
#include <libavutil></libavutil>dict.h>
}
int main (int argc, char ** argv){
AVFrame *frame;
AVFrame *filteredFrame;
AVPacket pkt;
//Initialize all codecs
av_register_all();
}
</iostream></deque></queue></string>Output from valgrind :
==31165== HEAP SUMMARY:
==31165== in use at exit: 81 bytes in 2 blocks
==31165== total heap usage: 4 allocs, 2 frees, 167 bytes allocated
==31165==
==31165== Searching for pointers to 2 not-freed blocks
==31165== Checked 9,196,888 bytes
==31165==
==31165== 32 bytes in 1 blocks are still reachable in loss record 1 of 2
==31165== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31165== by 0x6DE768F: _dlerror_run (dlerror.c:141)
==31165== by 0x6DE70C0: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==31165== by 0x8DC7273: x265_api_get_63 (in /usr/local/lib/libx265.so.63)
==31165== by 0x5958E74: ??? (in /usr/local/lib/libavcodec.so.56.41.100)
==31165== by 0x59D76B1: avcodec_register_all (in /usr/local/lib/libavcodec.so.56.41.100)
==31165== by 0x4E6B342: av_register_all (in /usr/local /lib/libavformat.so.56.36.100)
==31165== by 0x400830: main (main.cpp:39)
==31165==
==31165== 49 bytes in 1 blocks are still reachable in loss record 2 of 2
==31165== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31165== by 0x400FDC0: _dl_signal_error (dl-error.c:90)
==31165== by 0x40146CF: _dl_open (dl-open.c:715)
==31165== by 0x6DE702A: dlopen_doit (dlopen.c:66)
==31165== by 0x400FFF3: _dl_catch_error (dl-error.c:187)
==31165== by 0x6DE762C: _dlerror_run (dlerror.c:163)
==31165== by 0x6DE70C0: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==31165== by 0x8DC7273: x265_api_get_63 (in /usr/local/lib/libx265.so.63)
==31165== by 0x5958E74: ??? (in /usr/local/lib/libavcodec.so.56.41.100)
==31165== by 0x59D76B1: avcodec_register_all (in /usr/local/lib/libavcodec.so.56.41.100)
==31165== by 0x4E6B342: av_register_all (in /usr/local/lib/libavformat.so.56.36.100)
==31165== by 0x400830: main (main.cpp:39)
==31165==
==31165== LEAK SUMMARY:
==31165== definitely lost: 0 bytes in 0 blocks
==31165== indirectly lost: 0 bytes in 0 blocks
==31165== possibly lost: 0 bytes in 0 blocks
==31165== still reachable: 81 bytes in 2 blocks
==31165== suppressed: 0 bytes in 0 blocks
==31165==
==31165== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==31165== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)