
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (101)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (5804)
-
Compress video using ffmpeg.js
25 mai 2024, par John MarkI attempted to upload and compress a video using ffmpeg.js. However, it appears that this process is ineffective on modern browsers. I have already implemented console logging to verify if the video compression is occurring, yet thus far, no compression has been achieved. Could anyone suggest an alternative library for video compression that might better suit the requirements ?


<template>
 <div>
 <input type="file" accept="video/*" />
 <video ref="video" controls="controls"></video>
 </div>
</template>

<code class="echappe-js"><script>&#xA;import { FFmpeg } from &#x27;@ffmpeg/ffmpeg&#x27;;&#xA;&#xA;export default {&#xA; methods: {&#xA; async handleFileInputChange(event) {&#xA; const file = event.target.files[0];&#xA; if (!file) return;&#xA;&#xA; const video = this.$refs.video;&#xA; const url = URL.createObjectURL(file);&#xA; video.src = url;&#xA;&#xA; const inputVideoPath = &#x27;input.mp4&#x27;;&#xA; const outputVideoPath = &#x27;compressed_output.mp4&#x27;;&#xA;&#xA; console.log("Compressing video...");&#xA; await this.compressVideo(file, inputVideoPath, outputVideoPath);&#xA; console.log("Compression completed.");&#xA;&#xA; video.src = URL.createObjectURL(await this.downloadFile(outputVideoPath));&#xA; },&#xA; async compressVideo(file, inputVideoPath, outputVideoPath) {&#xA; const ffmpeg = new FFmpeg();&#xA; await ffmpeg.load();&#xA;&#xA; // Writing the input file to the FFmpeg file system&#xA; await ffmpeg.writeFile(inputVideoPath, file);&#xA;&#xA; // Execute FFmpeg command for compression&#xA; await ffmpeg.exec([&#x27;-i&#x27;, inputVideoPath, &#x27;-vcodec&#x27;, &#x27;libx264&#x27;, &#x27;-crf&#x27;, &#x27;28&#x27;, outputVideoPath]);&#xA; },&#xA; async downloadFile(filePath) {&#xA; const ffmpeg = new FFmpeg();&#xA; await ffmpeg.load();&#xA;&#xA; // Read the compressed file from FFmpeg file system&#xA; const data = await ffmpeg.readFile(filePath);&#xA;&#xA; return new Blob([data.buffer], { type: &#x27;video/mp4&#x27; });&#xA; }&#xA; }&#xA;};&#xA;</script>





-
Efficient Video Compression with ffmpeg.js
24 mai 2024, par John MarkI attempted to upload and compress a video using ffmpeg.js. However, it appears that this process is ineffective on modern browsers. I have already implemented console logging to verify if the video compression is occurring, yet thus far, no compression has been achieved. Could anyone suggest an alternative library for video compression that might better suit the requirements ?


<template>
 <div>
 <input type="file" accept="video/*" />
 <video ref="video" controls="controls"></video>
 </div>
</template>

<code class="echappe-js"><script>&#xA;import { FFmpeg } from &#x27;@ffmpeg/ffmpeg&#x27;;&#xA;&#xA;export default {&#xA; methods: {&#xA; async handleFileInputChange(event) {&#xA; const file = event.target.files[0];&#xA; if (!file) return;&#xA;&#xA; const video = this.$refs.video;&#xA; const url = URL.createObjectURL(file);&#xA; video.src = url;&#xA;&#xA; const inputVideoPath = &#x27;input.mp4&#x27;;&#xA; const outputVideoPath = &#x27;compressed_output.mp4&#x27;;&#xA;&#xA; console.log("Compressing video...");&#xA; await this.compressVideo(file, inputVideoPath, outputVideoPath);&#xA; console.log("Compression completed.");&#xA;&#xA; video.src = URL.createObjectURL(await this.downloadFile(outputVideoPath));&#xA; },&#xA; async compressVideo(file, inputVideoPath, outputVideoPath) {&#xA; const ffmpeg = new FFmpeg();&#xA; await ffmpeg.load();&#xA;&#xA; // Writing the input file to the FFmpeg file system&#xA; await ffmpeg.writeFile(inputVideoPath, file);&#xA;&#xA; // Execute FFmpeg command for compression&#xA; await ffmpeg.exec([&#x27;-i&#x27;, inputVideoPath, &#x27;-vcodec&#x27;, &#x27;libx264&#x27;, &#x27;-crf&#x27;, &#x27;28&#x27;, outputVideoPath]);&#xA; },&#xA; async downloadFile(filePath) {&#xA; const ffmpeg = new FFmpeg();&#xA; await ffmpeg.load();&#xA;&#xA; // Read the compressed file from FFmpeg file system&#xA; const data = await ffmpeg.readFile(filePath);&#xA;&#xA; return new Blob([data.buffer], { type: &#x27;video/mp4&#x27; });&#xA; }&#xA; }&#xA;};&#xA;</script>





-
Seeking Ideas : How Can I Automatically Generate a TikTok Video from a Custom Song Using C# [closed]
14 mai 2024, par JamadoIm creating a c# program which creates a video of the from a song and posts it on tiktok.


Right now my program


- 

-
Uses spleeter to split the song into stems


-
uses a script of GitHub to create waveform images of the stems








I want my end video to look like this :


https://vm.tiktok.com/ZMM7CDmUt/ - only one song will play per video


https://vm.tiktok.com/ZMM7Xdw8b/


https://vm.tiktok.com/ZMM7CcGtE/ - no webcam or that hitting animations


basically I want the stems of the songs to be placed on top of a FL studio timeline, synced to the song, then I want to overlay a image on top of the video. and then to contribute for todays gen's 3 second attention span, add some audio virtualisations ontop of the fl studio recording (the music making app in the video) and a little shake to the image


I've tinkered with ffmpeg before, and I reckon it could do the trick here. I'd use the waveform pictures and mix them with a pre-recorded FL Studio video using ffmpeg's filters, like VStack to stack images, Scroll to slide them around and Blend. And then tweak the overlay filter for that shake effect. Plus, I found out ffmpeg can whip up some basic audio visualizations, which is neat. (https://gist.github.com/Neurogami/aeed8693f7ac375d5e013b8432d04d3f)


But my main issue with this approach is, how the waveform images will look weird/out of place ontop of the fl studio video, because FL studio has a really spesific "theme". I could manually create a template and then use some other library to merge the template image and the waveform image. But, it feels a bit janky and would probably be a hassle to set up and implement.


So, I'm curious if you folks have any nifty libraries, GitHub gems, or ideas to help me nail this video ?


-