
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (25)
-
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 (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (6695)
-
aacenc : Fix target bitrate for twoloop quantiser search
4 mai 2013, par Claudio Freire -
Converting WebM audio to mp3 using ffmpeg and Rails
30 avril 2021, par Garrett BodleyI created an online step sequencer and want to add functionality so that users can record the audio and save it as an mp3 on their local machine. I've been able to use the WebAudioAPI to record the sound generated in the browser window and send it to my Rails backend as a WebM blob. I am attempting to incorporate ffmpeg using the Streamio gem.


How do I convert that blob to mp3 ? I'm planning on making a
Recording
model thatbelongs_to :user
andhas_one_attached :audio
. I imagine I should use abefore_save
callback to process the blob ? What's confusing to me is that it seems streamio creates a new copy of the file when transcoding. How do I convert the blob to mp3 in place ?

I've seen some posts where people call ffmpeg using
system("ffmpeg code goes here")
but I don't really understand how to grab the output so that ActiveStorage can link the resulting file to my models and whatnot.

To add complexity to all of this is that I ultimately want to host this publicly and store the audio in a Cloudinary folder, which I imagine would change the process quite a bit. As you can tell I'm a bit confused as to how best to approach this problem. Any help would be greatly appreciated !


-
Extracting audio from video using fluent-ffmpeg
12 mars, par Idi FavourIm trying to extract the audio from a video, an error is occuring
Error converting file : Error : ffmpeg exited with code 234 : Error opening output file ./src/videos/output-audio.mp3.
Error opening output files : Invalid argument


I use this same directory for my video compression that runs before this one and it works.


ffmpeg()
 .input(url)
 .audioChannels(0)
 .format("mp3")
 .output("./src/videos/output-audio.mp3")
 .on("error", (err) => console.error(`Error converting file: ${err}`))
 .on("end", async () => {
 console.log("audio transcripts");
 
 const stream = fs.createReadStream("./src/videos/output-audio.mp3");
 const transcription = await openai.audio.transcriptions.create({
 file: stream,
 model: "whisper-1",
 response_format: "verbose_json",
 timestamp_granularities: ["word"],
 });
 transcripts = transcription.text;
 console.log(transcription.text);
 })
 .run();