
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (103)
-
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 -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (8127)
-
504 Gateway Timeout ffmpeg video compression
18 mai 2022, par enfixI have a PHP script that use the ffmpeg to compress mov file and convert in mp4.


When I upload a 1gb file, this is converted and in the end appears in console 504 (Gateway Timeout).
The instruction I use is this :


$cmd = shell_exec("$ffmpegPath -i $UploadedFilePath -vcodec libx264 -preset ultrafast -filter:v scale=426:-2 $convertUrl 2>&1");



How can I do ?
I would like the videos to be reduced considerably while maintaining good quality and without overloading the server.
The PHP parameters can be found at this link :
https://artruism.me/test.php


UPDATE


The call to the script is with ajaxForm


-
Trying to convert an MP4 to WEBP with ffmpeg with different lossless/compression settings, but getting the same result
10 novembre 2023, par corgrathI am trying to convert an MP4 video to WEBP.


I am trying different
-lossless
and-compression_level
settings (as described here), but all the output videos have identical disk size.

-lossless
can either be0
or1
and-compression_level
can be from0
to6


For example


ffmpeg -y -i input.mp4 -vcodec libwebp -lossless 1 -compression_level 6 \
 -loop 0 -preset default output_lossless1_comp6.webp



and


ffmpeg -y -i input.mp4 -vcodec libwebp -lossless 0 -compression_level 0 \
 -loop 0 -preset default output_lossless0_comp0.webp



What have I missed here ?


-
ffmpeg best parameteres for fastest compression on FullHD mp4 ?
3 août 2021, par Mike AzatovI need to compress a bunch of FullHD(1920x1080, 3Gb, mp4) videos, each 2 hrs long. Some loss of quality is okay as is the lower resolution. I'm shooting for a 500Mb output video in 10 min processing time (2080TI Ryzen 9 3900X). It is important for the videos to be completely in sync, so frame x in the input video matches frame x in output. For this, I'm using
-vsync 0


My current working settings which get me to 500MB size in 20 minutes.


ffmpeg -i input_fullhd.mp4 -vcodec libx265 -crf 28 -vsync 0 -vf scale=800:-1 -preset medium output.mp4


I'd like it to be faster with potentially slightly better quality.


My concern is that I'm not utilizing my GPU at all and my CPU shows only 30% utilization. So feels like it should be possible to speed this up. I tried adding
-hwaccel cuda
but that made things a bit slower.

Are there any other settings I can try that I'm missing to either improve my conversion or utilize more resources for speed ?


Thanks