
Recherche avancée
Autres articles (34)
-
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (5828)
-
How to change size of watermark image and set Size and Aspect Ratio of Video using fluent-ffmpeg ?
12 avril 2021, par KirasirisDoes anyone knows how to change the size of the watermark image ? ; secondly I tried to use
complexFilter()
with thesize()
andaspect()
methods but it throws an error of complex-filter can not be used with complexFiltergraph in the same input stream ?

This is my code :


await ffmpeg('tmp/' + file.name)
 .input(waterMarkImage)
 .videoFilter([
 'overlay=10:10',
 'scale=1280:720',
 'aspect=16:9',
 'crop=1280:554:0:90',
 ])
 .output(key)
 .on('progress', function (progress) {
 console.log('Processing: ' + progress.percent + '% done')
 })
 .on('end', function (stdout, stderr) {
 console.log('Finished')
 fs.unlink(dir + file.name, function (err) {
 if (err) throw err
 console.log('File deleted')
 })
 })
 .on('error', function (err) {
 console.log('an error happened: ' + err.message)
 fs.unlink(dir + file.name, function (err) {
 if (err) throw err
 console.log('File deleted')
 })
 })
 .save(dir + key)



Thanks.


-
FFMpeg : scale down videos with maximum width and height while maintaining aspect ratio
20 février 2021, par R3D34THR4YIn my program the user can input any video file he wants and have it transcoded ready for social media no matter its dimensions and aspect ratio.
The "export profiles" have many variables but the important ones here are maxheight and maxwidth.


The FFMpeg filters must output a video that follows the following rules :


- 

- If the video is vertical, permutate the maxheight and maxwidth values (social media considers both 1280x720 and 720x1280 as "720P")
- The video must not have a height superior to maxheight or a width superior to maxwidth.
- The original video and exported video have the same aspect ratio and no distortion occurs.
- No padding or cropping should occur.
- The video should not be scaled if it is already under those maximum dimensions (no upscaling).
- The function must work even with odd input resolutions.














I have tried finding a combination of filters that do that but I haven't been able so far, either the video gets distorted or it gets huge black bars if the aspect ratio isn't right, the solution may be simple but I'm a beginner on this library so I'm probably just missing an easy solution.


My current solution :


ffmpeg -i input.mp4 -vf [in] scale=1280:720:flags=lanczos:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1 [res]; [res] format=yuv420p [format] -c:v libx264 -c:a aac -movflags +faststart output.mp4



Thanks for reading


-
How to change mp4 aspect ratio to 16:9 using ffmpeg ?
20 février 2023, par user1788736I got an mp4 video that I copy 4 minute of it using ffmpeg. After uploading to YouTube I noticed the uploaded video has black bars on both side of video(right and left side) !After searching for a way to remove those black bars I found that I need to use yt:stretch=16:9 !However,using yt:stretch=16.9 tag will not remove the black bars on iPhone and Samsung smart tv YouTube app !



could an expert help me change the aspect ratio of original mp4 video to 16:9 using ffmpeg (without losing video quality) for re uploading to YouTube ? Thanks in advance ?



I got two types of source with following information :



1)Resolution:720x576 ,Frame rate:25 . Codec:H264 - MPEG-4 AVC(part 10)(avc1),
2)Resolution:848x480 , Frame rate:24.804393,Codec:H264 - MPEG-4 AVC(part 10)(avc1)




ffmpeg code used to trim the original video :



ffmpeg -i orginalVideo.mp4 -ss 00:25:55 -t 00:04:02 -acodec copy -vcodec copy videoForYoutube.mp4