
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (94)
-
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 (6598)
-
ffmpeg - color-grading video material AND display original source as picture-in-picture, using -filter_complex
5 octobre 2019, par raventhis is my first post on this forum, so please be gentle in case I accidentally do trip over any forum rules that I would not know of yet :).
I would like to apply some color-grading to underwater GoPro footage. To quicker gauge the effect of my color settings (trial-and-error, as of yet), would like to see the original input video stream as a PIP (e.g., scaled down to 50% or even 30%), in the bottom-right corner of the converted output movie.
I have one input movie that is going to be color graded. The PIP should use the original as an input, just a scaled-down version of it.
I would like to use ffmpeg’s "-filter_complex" option to do the PIP, but all examples I can find on "-filter_complex" would use two already existing movies. Instead, I would like to make the color-corrected stream an on-the-fly input to "-filter_complex", which then renders the PIP.
Is that doable, all in one go ?
Both the individual snippets below work fine, I now would like to combine these and skip the creation of an intermediate color-graded TMP output which then gets combined, with the original, in a final PIP creation process.
Your help combining these two separate steps into one single "-filter_complex" action is greatly appreciated !Thanks in advance,
raven.[existing code snippets (M$ batch files)]
::declarations/defines::
set "INPUT="
set "TMP="
set "OUTPUT="
set "FFMPG="
set "QU=9" :: quality settings
set "CONV='"0 -1 0 -1 5 -1 0 -1 0:0 -1 0 -1 5 -1 0 -1 0:0 -1 0 -1 5 -1
0 -1 0:0 -1 0 -1 5 -1 0 -1 0'"" :: sharpening convolution filter
::color-grading part::
%FFMPG% -i %INPUT% -vf convolution=%CONV%,colorbalance=rs=%rs%:gs=%gs%:bs=%bs%:rm=%rm%:gm=%gm%:bm=%bm%:rh=%rh%:gh=%gh%:bh=%bh% -q:v %QU% -codec:v mpeg4 %TMP%
::PIP part::
%FFMPG% -i %TMP% -i %INPUT% -filter_complex "[1]scale=iw/3:ih/3
[pip]; [0][pip] overlay=main_w-overlay_w-10:main_h-overlay_h-10" -q:v
%QU% -codec:v mpeg4 %OUTPUT%
[/existing code] -
FFMPEG Adding intro video and scaling it to the original video
10 octobre 2019, par QuestionsI have one intro video of fixed resolution, 1920x1080, and main videos with different resolutions. I could merge the videos using the following command
ffmpeg -i intro.mp4 -i main.mp4 -i intro.mp4 -filter_complex " \
[0:v]scale=640x352,setsar=sar=16/9[intro]; \
[1:v]scale=640x352,setsar=sar=16/9[video]; \
[2:v]scale=640x352,setsar=sar=16/9[outro]; \
[intro][video][outro]concat=n=3[output]; \
[0:a][1:a] acrossfade=d=1 [audio]" \
-vcodec libx264 -map "[output]" -map "[audio]" "main__.mp4"This works perfectly if I specify the scales manually. But this doesn’t work for portrait videos which has resolution of 640x352 with rotation of -90 degrees, when I check them with ffprobe.
Is there a way to scale the intro video dynamically to match the dimensions of the main video ? It’s fine if the intro video’s aspect ratio is distorted, and just retain the main video’s size.
-
Mix original clip audio with audio of an overlay clip
28 octobre 2019, par Mr. MessyI have a video clip on which I want to add commentary videos (someone talking in a bubble).
I have 3 commentary videos I need to insert in specific times.The video rendering is working well, but I can’t seem to add the audio tracks.
I tried both amix and amerge, but I got the same issue.When I added "[0:1][2:1]amerge ;" I get the follwing :
and the process freezes.
The full ffmpeg command is as follows :
ffmpeg -y -i story.mp4
-loop 1 -i mask.png
-itsoffset 10 -i commentary1.mp4
-itsoffset 22 -i commentary2.mp4
-itsoffset 34 -i commentary3.mp4
-filter_complex "[0:v]scale=w=1/2*in_w:h=1/2*in_h[vid1],
[2:v]crop=w=480:h=480:x=0:y=120[vid2in],
[1:v]fifo[2af],[2af]alphaextract[alf2],[vid2in][alf2]alphamerge[vid2alf],
[vid2alf]format=yuva420p,fade=in:st=10:d=0.5:alpha=1,fade=out:st=22.7294:d=0.5:alpha=1[vid2fade],
[vid2fade]scale=w=-1:h=160[vid2],
[vid1][vid2]overlay=790:10:enable='between(t\,10,21)'[out2],
[3:v]crop=w=480:h=480:x=0:y=120[vid3in],
[1:v]fifo[3af],[3af]alphaextract[alf3],[vid3in][alf3]alphamerge[vid3alf],
[vid3alf]format=yuva420p,fade=in:st=22:d=0.5:alpha=1,fade=out:st=32.768733:d=0.5:alpha=1[vid3fade],
[vid3fade]scale=w=-1:h=160[vid3],
[out2][vid3]overlay=790:10:enable='between(t\,22,33)'[out3],
[4:v]crop=w=480:h=480:x=0:y=120[vid4in],
[1:v]fifo[4af],[4af]alphaextract[alf4],[vid4in][alf4]alphamerge[vid4alf],
[vid4alf]format=yuva420p,fade=in:st=34:d=0.5:alpha=1,fade=out:st=44.598189:d=0.5:alpha=1[vid4fade],
[vid4fade]scale=w=-1:h=160[vid4],
[out3][vid4]overlay=790:10:enable='between(t\,34,45)'[out4]"
-map [out4] -pix_fmt yuv420p -c:v libx264 -crf 18
final_video.mp4(mask.png is a circle on a transparent image that crops the video to a bubble)
Thank you for your help.