
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (55)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
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 (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (7787)
-
log : Support for 256color terminals
26 avril 2013, par Luca Barbatolog : Support for 256color terminals
And provide extended coloring capabilities for debugging.
The default colors do not change in 256 more to keep
supporting people using Black on White, White on Black and
Solarized terminals.Signed-off-by : Luca Barbato <lu_zero@gentoo.org>
-
Audio Downloader from YouTube with youtube-dl and ffmpeg [closed]
22 janvier 2021, par Um9vdAoI am trying to make an audio downloader with
youtube-dl
andffmpeg
which will :



- 

- Download the best format of audio available on YouTube
- Embed thumbnail in the file.
- Convert the file to mp3.
- Delete everything from the folder except the converted mp3 file.












Below is the code I've come up with :


@echo off
cls
set /p playlist="Enter YouTube Link: " 
youtube-dl --cookies cookies.txt -f bestaudio[ext=m4a] -i --write-thumbnail --embed-thumbnail --max-sleep-interval 30 --min-sleep-interval 10 -o "%%(title)s.%%(ext)s" %playlist% --exec "ffmpeg -i {} -codec:a libmp3lame -qscale:a 0 {}.mp3 && del {}"



The issues I've been facing with my code :


- 

- The converted file is not renamed correctly. It's named
Filename.m4a.mp3
where I want it to be namedFilename.mp3
- Video thumbnail is saved as
Filename.jpg
and youtube-dl creates a file namedcookies.txt
. Those are not deleted automatically. - Lastly, this error shows up :










[swscaler @ 00000143e0a4ffc0] deprecated pixel format used, make sure you did set range correctly
[mp3 @ 00000143e09f0340] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2




I'd really appreciate it if you helped me fix those issues. Thanks !


- Download the best format of audio available on YouTube
-
How do I use ffmpeg in my renderer process in electron ?
16 juillet 2023, par InfinibyteI'm trying to use ffmpeg in my renderer process in my electron app. I expose the modules in my preload.js file like this :


const { contextBridge, ipcRenderer } = require('electron');
const ffmpegStatic = require('ffmpeg-static');
const ffmpeg = require('fluent-ffmpeg');
// make ffmpeg available as a function in the renderer process
contextBridge.exposeInMainWorld('ffmpeg', () => ffmpeg(ffmpegStatic.path));



And I try to acces it in my renderer.js file like this :


video.addEventListener('change', (event) => {
 const file = event.target.files[0];
 const filePath = file.path;
 const fileName = file.name;
 const fileExt = fileName.split('.').pop();
 const newFileName = fileName.replace(fileExt, 'mp4');
 const newFilePath = filePath.replace(fileName, newFileName);

 // Run FFmpeg
 ffmpeg()

 // Input file
 .input(filePath)

 // Audio bit rate
 .outputOptions('-ab', '192k')

 // Output file
 .saveToFile(newFilePath)

 // Log the percentage of work completed
 .on('progress', (progress) => {
 if (progress.percent) {
 console.log(`Processing: ${Math.floor(progress.percent)}% done`);
 }
 })

 // The callback that is run when FFmpeg is finished
 .on('end', () => {
 console.log('FFmpeg has finished.');
 })

 // The callback that is run when FFmpeg encountered an error
 .on('error', (error) => {
 console.error(error);
 });
});



But then I get following error in the console : Uncaught TypeError : ffmpeg(...).input is not a function at HTMLInputElement.
I really don't know how to fix this, can anyone help me ?


I tried writing it differently and defining ffmpeg in my rendere.js but nothing worked...