
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 (56)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (5241)
-
Firebase and FFmpeg : Download URL error for videos longer than one hour
11 août 2024, par braunlichSummary of the problem : I'm developing a video processing feature in a React application that uses Firebase as the backend. The video file uploads to Firebase Storage without issues. However, when attempting to use FFmpeg to extract the audio as a FLAC file, the process works for videos under an hour but fails for longer videos, producing the error : "Error : File could not be read ! Code=-1".


Code context : The issue occurs during the process of grabbing the video URL from Firebase Storage and extracting audio using FFmpeg. Here is the code snippet :


try {
const videoDownloadURL = await getDownloadURL(uploadTask.snapshot.ref);
console.log('Video file available at', videoDownloadURL);

await ffmpeg.load();
await ffmpeg.writeFile(file.name, await fetchFile(file));
await ffmpeg.exec(['-i', file.name, '-q:a', '0', '-map', 'a', '-ac', '1', 'output.flac']); // Ensuring mono channel
const audioData = await ffmpeg.readFile('output.flac');
const audioBlob = new Blob([audioData.buffer], { type: 'audio/flac' });
const audioStorageRef = ref(storage, `${user.uid}/${videoId}.flac`);
const audioUploadTask = uploadBytesResumable(audioStorageRef, audioBlob, {
 contentType: 'audio/flac',
 customMetadata: {
 uploadedBy: user.uid,
 videoId: videoId
 }
});

audioUploadTask.on('state_changed',
 (snapshot) => {
 const audioProgress = Math.round((snapshot.bytesTransferred / snapshot.totalBytes) * 100 * 0.1);
 setUploadProgress(Math.round(videoProgress + audioProgress));
 console.log(`Audio upload progress: ${Math.round(audioProgress)}%`);
 },
 (error) => {
 console.error("Audio upload error:", error);
 },
 async () => {
 try {
 const audioDownloadURL = await getDownloadURL(audioUploadTask.snapshot.ref);
 console.log('Audio file available at', audioDownloadURL);
 audioUploadComplete = true;
 } catch (error) {
 console.error("Audio download URL error:", error);
 }
 }
);

} catch (error) { console.error("Download URL error:", error); }



Issue description : The above code successfully extracts audio from videos shorter than one hour. However, for videos around two to three hours long, the code breaks with the following error message :
error code


I suspect this might be related to FFmpeg or Firebase's handling of larger files, but I'm not sure how to debug this further or what adjustments to make.


Research and attempts :


I've confirmed that the video files are successfully uploaded to Firebase Storage.


The issue appears to be related to either the FFmpeg processing or the retrieval of the download URL for larger files.


I've searched for similar issues but haven't found a solution specific to handling larger video files with FFmpeg and Firebase.


Request for help :


Any insights on why this error might be occurring for larger files ? Suggestions for debugging or modifying the code to handle larger videos efficiently.


-
ffmpeg download from m3u8 link but not from local m3u8 file
15 septembre 2022, par k4anubhavI downloaded a master m3u8 from a link and now I want to download by

ffmpeg -i test.m3u8 -acodec copy -vcodec copy out.mp4

it to mp4 but now it not downloading
and getting an errorOutput file #0 does not contain any stream

but when I use the link (like https://google.com/master.m3u8) it downloads the video file
ffmpeg -i https://google.com/master.m3u8 -acodec copy -vcodec copy out.mp4


I want to download the video using local m3u8 file


PS. my session is not out Vlc still show the VIDEO


-
Cannot download and install ffmpeg for python
19 février 2017, par ismail yussufI’m having a problem with downloading ffmpeg for python. It seems to me that no matter what I do it just doesn’t work.
Btw ,sorry for the images but I still don’t know how to post my command prompt on here. So here is the error i’m getting.I’ve already tried "pip install ffmpeg-normalize" and when I do that I get this.
FYI I already downloaded imageio and that went totally fine. I even have the ffmpeg.py file in imageio. Does anyone know how I can install it properly ?