
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (31)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (5077)
-
FFmpeg : convert any video to square 1:1 video with blurred side bars
16 novembre 2019, par L0LockVery similar to this topic :
I’m trying to make myself a bat file that will automate my Instagram video creations.
The idea is that I make videos of variable resolutions and variable aspect ratios. I don’t want to spend time on each video just to make it fit.So here’s my goal with that bat file :
- Must output a square video
- The original video must keep its original aspect ratio no matter what it is
- The blank spaces filling the voids from the original video and the square aspect ratio must be filled with a squared & blurred version of the original video
- Optionally, let me choose the output resolution (for encoding time saving and because AFAIK Instagram displays only 600px² videos(?))
So far I managed to get results that work only for either vertical or horizontal videos but not both. Or end up with the original video cropped, which I don’t want : I frame my subjects as I want and I don’t want to frame them forethinking the additional cropping a FFmpeg encoding could do.
This is my script so far :
echo off
:again
ffmpeg.exe -i "%~1" ^
-c:v libx264 -crf 23 -filter_complex "[0:v]scale=600*2:600*2,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[0:v]scale=600:-1[ov];[bg][ov]overlay=(W-w)/2:(H-h)/2,crop=w=600:h=600" -profile:v baseline -level 3.0 -pix_fmt yuv420p -preset faster -tune fastdecode ^
-c:a aac -ac 2 -b:a 128k ^
-movflags faststart ^
"%~p1%~n1_Instagramized.mp4" -y
if NOT ["%errorlevel%"]==["0"] pause
shift
if "%~1" == "" goto:eof
goto:againEDIT :
Thanks to @Gyan I got the solution. I added my input as well :
Since I might reuse that bat file often and might want to change the output resolution, It’s not handy to have the resolution hardcoded in six different places.
So I create a variable calledSquareSize
which is called using%SquareSize%
(instead of the hardcoded resolution) and set at the begining of the file usingset SquareSize=XXX
. So now I can change easily when I need just by opening it and editing the XXX.echo off
:again
set SquareSize=600
ffmpeg.exe -i "%~1" ^
-c:v libx264 -crf 23 ^
-filter_complex "[0:v]split=2[blur][vid];[blur]scale=%SquareSize%:%SquareSize%:force_original_aspect_ratio=increase,crop=%SquareSize%:%SquareSize%,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[vid]scale=%SquareSize%:%SquareSize%:force_original_aspect_ratio=decrease[ov];[bg][ov]overlay=(W-w)/2:(H-h)/2" ^
-profile:v baseline -level 3.0 -pix_fmt yuv420p -preset faster -tune fastdecode ^
-c:a aac -ac 2 -b:a 128k ^
-movflags faststart ^
"%~p1%~n1_Instagramized.mp4" -y
if NOT ["%errorlevel%"]==["0"] pause
shift
if "%~1" == "" goto:eof
goto:again -
Encode Side by Side Video Sync'd by Audio (FFMPEG or similar)
9 décembre 2019, par NickI am trying to encode 2 videos side by side, sync’d by the audio of the 2 clips. I can successfully encode the 2 videos side by side and select the audio from one of the input streams. However the system we are using to record the 2 videos does not start and stop the recording at the same time (could be up to a second different between cameras). Basically we are using a CCTV system to capture what’s going on in a room from multiple angles. We export the 2 cameras between 2 timestamps and due to the way the system records the videos the start of the 2 clips are not the same point in time.
e.g. Export videos between 09:00:00:000 and 09:10:00:000
Video 1 - exports from 08:59:59:123 to 09:10:00:123
Video 2 - exports from 08:59:59:789 to 09:10:00:789
Therefore when video 1 and video 2 are stitched together side by side, they are out of sync by 666ms (which is very noticeable in the encoded video)
Both input streams have (near) identical audio and are both in the exact same format. We are currently placing these videos into Premiere Pro and syncing these videos by the audio and exporting them side by side, however we have a project where we need to do a lot of these in quick succession and this is not really an option. We need to look at scripting this.
Does anyone know if FFMPEG can do this ? Or anything else ?
Any info would be greatly appreciated.
-
How to compress video with uniform blur being the only side effect of compression ?
5 janvier 2020, par KukusterThe point is to somehow compress a video file, significantly reducing bitrate but somehow without changing its apparent quality, and because it would fit the design, I thought I will blur the video. In raster image processing I guess, it would be closer to the mean blur, or kind of like being behind turbid glass effect.
Ideally, I would like to be able to choose between compressing more with more strong blur and compressing less with less strong blur, all look pretty in any case.
I tried some ffmpeg postprocessing libraries including fspp, spp, uspp (takes a long time to render), etc. I almost reached the goal using fspp with parameters 5:60:15. But blur was either very strong for certain objects or left other undesired artifacts. Although uspp does a good job and looks pretty, it leaves about half of the image in frames unblurred, while I’m looking for more uniform blur across the frame. Because sometimes it takes a lot of time, I didn’t try all the features of uspp.
Here is my ffmpeg input data about the video streams :
Duration : 00:01:03.02, start : 0.000000, bitrate : 4010 kb/s Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 3870 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default) Metadata : handler_name : VideoHandler Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 133 kb/s (default) Metadata : handler_name : SoundHandler