
Recherche avancée
Autres articles (65)
-
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...) -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)
Sur d’autres sites (4471)
-
Server-side generated video with custom texture - Where to start ?
12 février 2014, par opznhaarlemsI am working on a project in which a user can upload an image and then after uploading the image, a video is generated and then displayed, containing the image which was uploaded as some sort of texture/mask. (Like they do in Elf Yourself).
The original video should contain some sort of placeholder for the image to allow it to move around and be transformed on a matrix.
I'm not really sure where to start off or how I should even call such a merging/blending process in the first place.
A few requirements I've came up with so far :
- The server runs PHP
- I am able to use GD, Imagick and FFMPEGRegards
-
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.
-
Using find / for how do I remove the original file extension for the output file name ?
2 septembre 2022, par burntscarrWhen using
find
orfor
to run things on multiple files, how would I make something not keep the file extension ?

For example if using ffmpeg on multiple files to convert from DTS to WAV I would run one of the following :


find . -name "*.dts" -exec ffmpeg -i "{}" -c:a pcm_s24le "{}.wav" \;


or


for f in ./*.dts; do ffmpeg -i "$f" -c:a pcm_s24le "$f.wav"; done


Both of these make files that end in .dts.wav rather than just .wav


My goal is to find out what I would add/change to make the "{}.wav" or "$f.wav" not include the .dts part for the output file name. (and several other examples with various extensions)


This happens automatically when using the cli version of
flac
, the output file automatically removes .wav and has .flac instead, when no output file is specified.
(Ex :flac -8 *.wav
would create .flac files next to the .wav files, but they aren't .wav.flac, they're just .flac)