
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (92)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (9346)
-
Read S3 video file, process it with ffmpeg and upload to S3
28 avril 2020, par Dario RusignuoloI have a video stored in s3 bucket with authenticated-read ACL.



I need to read and make a trailer with ffmpeg (nodejs)



Here's the code I use to generate the trailer



exports.generatePreview = (req, res) => {
 const getParams = {
 Bucket: S3_CREDENTIALS.bucketName,
 Key: req.params.key
 }
 s3.getSignedUrl('getObject', getParams, (err, signedRequest) => {
 console.log(signedRequest, err, 'getSignedUrl')
 ffmpeg(new URL(signedRequest))
 .size('640x?')
 .aspect('4:3')
 .seekInput('3:00')
 .duration('0:30')
 .then(function (video) {
 s3.putObject({ Bucket: S3_CREDENTIALS.bucketName, key: 'preview_' + req.body.key, Body: video }, function (err, data) {
 console.log(err, data)
 })
 });
});




}



Unfortunately, the constructor path seems not to read remote url. If I try to execute an ffmpeg command line with the same signedurl (i.e.
ffmpeg -i "https://[bucketname].s3.eu-west-1.amazonaws.com/[key.mp4]?[signedParams]" -vn -acodec pcm_s16le -ar 44100 -ac 2 video.wav
)


The error I get is that the signedRequest url
'The input file does not exist'



It seems fs.readFileSync https is not supported even if I try the request with http with the same result.
fs.readFileSync(signedurl)
=> gives the same result


How to overcome this issue ?


-
ffmpeg image watermark on video first half of video on Bottom left and next half of video on Top Right
23 novembre 2020, par qedslI was playing with this for several hours, I couldn't make so thought of reaching for help, Can you please help me in framing the ffmpeg command to display the watermark Image on the video, For the Initial half video the watermark should be on the bottom left and for the rest half video the watermark shop be on the right top.


Bottom left :
ffmpeg -i input.mp4 -i logo.png -filter_complex "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -codec:a copy output.mp4


Top right :

ffmpeg -i input.mp4 -i logo.png -filter_complex "overlay=main_w-overlay_w-5:5" -codec:a copy output.mp4


Also, I had a look on this for Timeoverlay ffmpeg watermark first 30 second.


How to merge all these and satisfy my requirements as mentioned above ?


-
Video Seek Scroll (60FPS)
9 avril 2022, par EnijarTrying to achieve an effect of seeking through a video when the page is scrolled. This has been achieved by exporting all frames of the video to JPEG images, pre-loading the images, and rendering them to a
canvas
. However, this approach uses a lot of bandwidth and takes a long time to load on slow networks.

Trying to achieve the same effect by rendering a
video
to acanvas
does not play as smoothly as the image-based approach.

Here is a working demo with the video-based approach :


https://codesandbox.io/s/infallible-chaum-grvi0r?file=/index.html


Since HTMLMediaElement.fastSeek() doesn't have widespread browser coverage, how can one achieve a realtime playback rate of 30-60 FPS ?


Here is the relevant code for the effect (see CSB link above for the full code) :


const video = document.querySelector("video");
const canvas = document.querySelector("canvas");
const ctx = canvas.getContext("2d");

(function tick() {
 requestAnimationFrame(tick);

 const { scrollHeight, clientHeight, scrollTop } = document.body;
 const maxScroll = scrollHeight - clientHeight;
 const scrollProgress = scrollTop / maxScroll;

 canvas.width = document.body.clientWidth;
 canvas.height = document.body.clientHeight;

 // This is the line that causes the issue
 video.currentTime = video.duration * scrollProgress;

 ctx.clearRect(0, 0, canvas.width, canvas.height);
 ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
})();