
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (66)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
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 (10927)
-
ffmpeg - overlay a video with rounded corners
4 novembre 2019, par asiI am successfully using overlaying a scaled (smaller) video on top of a larger one but am struggling to understand how could I give the small video a rounded corners mask.
Edit
thanks to @loogan comment I’ve managed to get a working command that created applies a circular mask :
ffmpeg
-i main.mp4
-i vignette.mp4
-filter_complex
[1:v]scale=300:-1[scaled];
[scaled]split [scaled0][scaled11];
[scaled0]trim=end_frame=1,geq='st(3,pow(X-(W/2),2)+pow(Y-(H/2),2));if(lte(ld(3),780*780),255,0)':3:3,loop=-1:1,setpts=N/FRAME_RATE/TB[mask];
[scaled1][mask]alphamerge[cutout];
[0][cutout]overlay=x=W-w:y=0[v];
-map [v]
-map [a]
output.mp4but how to get from a circle to a rounded rect still eludes me. cant quite get what are the params that geq expects and the math to generate them.
assuming that the video that needs masking is 200 * 300 and the corners should have a 5px radius, is there a geq command that can create this mask ? maybe en ellipse ?
or maybe a better way would be to use a pre-made png as a mask ?
any insights welcome
-
How improves Video Player processing using Qt and FFmpeg ?
13 septembre 2016, par Eric MenezesA time ago, I started to develop a video player/analyser. For beeing an analyser as well, the application should have inside its buffer the next frames and the previous as well. That’s where the complication begins.
For that, we started to use an
VideoProducer
that decodes the frames and audio from video (usingffmpeg
), added it into a buffer from where the video and audio consumers retrieve that objects (VideoFrame
andAudioChunk
). For this job, we have someQThreads
which is one producer, 2 consumers and (the biggest trouble maker) 2 workers that is used to retrieve objects from producer’s buffer and insert them into a circular buffer (that because of previous frames). These workers are important because of the backwards buffering job (this player should play backwards too).So, now the player is running well, but not so good. It’s notable that is losing performance. Like removing producer buffer and using just the circular. But still, some questions remains :
-
Should I continue using
QThread
with reimplementedrun()
? I read that works better withSignals & Slots
; -
If
Signals & Slots
worth it, the producer still needs to reimplementQThread::run()
, right ? -
Cosidering that buffer must have some previous frames and bad quality videos will be reproduced, is that (
VideoProducer
insert objects into aBuffer
,AudioConsumer
andFrameConsumer
retrieve these objects fromBuffer
and display/reproducer them) the better way ? -
What is the best way to sync audio and video ? The sync using audio pts is doing well, but some troubles appear sometimes ; and
-
For buffering backwards,
ffmpeg
does not provide frames this way, so I need to seek back, decode older frames, reorder them and prepend to the buffer. This job has been done by thatWorkers
, anotherQThread
the keep consuming from Producer buffer and, if buffering backwards, asks for seek and do the reorder job. I can just guess that it is bad. And I assume that do this reorder job should be done atProducer
level. Is that any way to do this better ?
I know it’s a lot of questions, and I’m sorry for that, but I don’t know where to find these answers.
Thanks for helping.
For better understanding, heres how its been done :
-
VideoProducer
-> DecoderQThread
. Runs in a loop decoding and enqueuing frames into aBuffer
. -
FrameConsumer
-> Video consumer. Retrieves frames from frameCircularBuffer
in a loop using anotherQThread
. Display the frame and sleep few mseconds based on video fps andAudioConsumer
clock time. -
AudioConsumer
-> Audio consumer and video’s clock. Works with signals usingQAudioOutput::notify()
to retrieve chunks of audio from audioCircularBuffer
and insert them intoQAudioOutput
buffer. When decodes the first frame, its pts is used to start the clock. (if a seek has been called, the next audio frame will mark the clock start time) -
Worker
-> Each stream (audio and video) has one. It’s aQThread
running in a loop (run()
reimplemented) retrieving objects fromBuffer
and inserting (backwards or forward) toCircularBuffer
.
And another ones that manage UI, filters, some operations with frames/chunks...
-
-
FFmpeg Composer Definition
9 mai 2017, par amanguelCould you please help me with the following ffmpeg command in order to compose 0 to 10 MKV Video and MKA Audio files to a single MPEG4 Video and Audio file. The resulting file layout is a grid of 3x3 circular videosVideo Output layout.
ffmpeg \
i "1.mkv" \
f matroska -vcodec vp8 \
an \
i "2.mkv" \
f matroska -vcodec vp8 \
an \
i "1.mka" \
i "2.mka" \
filter_complex "color=s=360x640:c=white [base] ; \
[0:v] setpts=PTS-STARTPTS, scale=100x100, geq=’st(3,pow(X-(W/2),2)+pow(Y-(H/2),2)) ;if(lte(ld(3),50*50),255,0)’ [upperleft] ; \
[1:v] setpts=PTS-STARTPTS, scale=100x100, geq=’st(3,pow(X-(W/2),2)+pow(Y-(H/2),2)) ;if(lte(ld(3),50*50),255,0)’ [upperright] ; \
[base][upperleft] overlay=shortest=0:x=5:y=5 [tmp1] ; \
[tmp1][upperright] overlay=shortest=0:x=125:y=5" \map 2:a -map 3:a \
t 60 \
y "composed.mp4"
Thank you very much in advance,
Andres