
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (105)
-
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 (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (9993)
-
How to stich images into a video with resolution larger then 4K using FFMPEG ?
14 janvier 2023, par Aviram FirebergerI have a folder with images that I've extracted from one video.
The resolution for each image is 5760 X 2880.
All images are in the following format :
out-1.jpg, out-2.jpg , out-3.jpg ..... out-1000.jpg


I tried couple of different ways to stich them :


Using CPU - libx264


ffmpeg -r 30 -f image2 -s 5760X2880 -start_number 1 -i "AllFrames/out-%d.jpg" -vframes 119 -vcodec libx264 -crf 25 -pix_fmt yuv420p "/AllVideoChunks/Chunk_1.mp4"



Worked well but the speed is about X0.05 only.


Using GPU - h264_nvenc


ffmpeg -r 30 -f image2 -s 4000X2000 -start_number 1 -i "AllFrames/out-%d.jpg" -vframes 119 -vcodec h264_nvenc -gpu 0 -preset slow -b:v 75M -pix_fmt yuv420p"/AllVideoChunks/Chunk_1.mp4"



Working very fast and high quality, but the problem is that I can't use it for images and output bigger then width 4096


Using GPU - hevc_nvenc


ffmpeg -r 30 -f image2 -s 5760X2880 -start_number 1 -i "AllFrames/out-%d.jpg" -vframes 119 -vcodec hevc_nvenc -gpu 0 -preset slow -b:v 75M -pix_fmt yuv420p"/AllVideoChunks/Chunk_1.mp4"



Working X10 more then the CPU at the speed of X0.5, good quality, but the problem is that I can't use it in normal players (can't play it in Unity)


Is there another video codec that can work on GPU that support more then 4K resolution ?
Can I transform the 'hevc_nvenc ' output to 'h264' on GPU in higher resolution ? should I do this transformation on CPU ?


-
ffmpeg scaled output resolution is off by 1px for non-standard inputs [duplicate]
14 janvier 2023, par GROVER.I'm using the
ffmpeg
CLI to scale user-submitted videos :

ffmpeg -i path/to/file -vf scale=1920:-2 -c:v libx264 -r 30 output.mp4



The scaling works fine with standard video sizes, such as
1920×1080
and720×480
. However, once we start using videos that do not have conventional resolutions, the output begins to scale incorrectly.

For example, a video that has a resolution of
3360×1882
will output to1921×1076
, when the expected resolution should theoretically be :1920×1075
.

Now, obviously
ffmpeg
is attempting to account for that remaining.42857px
on the height, but I'd prefer it just get cropped off instead (doesn't matter if it's from the top or bottom).

How would I go about doing this safely for every video ?


For bonus points, how do I make it swap scaling depending on if the
height
is greater than thewidth
(and vice versa). For example, if the video has a ratio of2:1
, it scales using a height of1080px
instead of a width of1920px
.

-
How to scale watermark based on video resolution in android using FFmpeg command ?
16 février 2023, par Ravi SorathiyaI want to scale the watermark size based on the given video resolution. but this cmd scales the watermark without respect to the original video.


I want to scale the watermark based on the resolution of the video. if
the video is in high resolution then the watermark will adjust that accordingly. visa versa in lower resolution it will scale accordingly.


please suggest me FFmpeg cmd the dynamically cmd that helps to scale the watermark based on video's resolution


val cmd = arrayOf(
 "-y",
 "-i",
 sourcePath,
 "-i",
 watermarkImagePath,
 "-filter_complex",
 "[1][0]scale2ref=w=oh*mdar:h=ih*0.06[logo][video];[video][logo]overlay=${position}",
 "-map",
 "0:a",
 "-c:v",
 "libx264",
 "-crf",
 "$bitrate",
 "-preset",
 "ultrafast",
 outputLocation.path
 )