
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (51)
-
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. -
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 (...) -
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 (...)
Sur d’autres sites (4730)
-
Error : [Error : ENOENT : no such file or directory, open './1695556319341.mp3']
24 septembre 2023, par JamesI'm trying to convert an mp4 file to an mp3 file and then directly upload it to Firebase storage without saving it locally in my machine, How can I do that currently I'm getting an error when I try to do that the error is "Error : [Error : ENOENT : no such file or directory, open './1695556319341.mp3']" How can i fix this issue with my Node.js code and make things work ?


import { initializeApp } from "firebase/app";
import { getStorage, ref, getDownloadURL, uploadBytesResumable } from "firebase/storage";
import serviceAccount from '../firebase/serviceAccountKey';
import { path as ffmpegPath } from '@ffmpeg-installer/ffmpeg';
import ffmpeg from 'fluent-ffmpeg';
import { readFile, unlink } from 'fs/promises';

initializeApp(serviceAccount);
ffmpeg.setFfmpegPath(ffmpegPath);

async function convertMP4ToMP3AndUploadToFirebase(inputPath: any, firebaseStoragePath: any) {
 const date = Date.now();
 const outputPath = `./${date}.mp3`;

 try {
 await ffmpeg(inputPath)
 .output(outputPath)
 .audioCodec('libmp3lame')
 .format('mp3')
 .run();

 const storage = getStorage();
 const storageRef = ref(storage, firebaseStoragePath);

 const fileBuffer = await readFile(outputPath);
 const metadata = { contentType: 'audio/mpeg' };
 const uploadTask = uploadBytesResumable(storageRef, fileBuffer, metadata);
 const snapshot = await uploadTask;
 const downloadURL = await getDownloadURL(snapshot.ref);
 await unlink(outputPath);

 console.log('MP4 file converted to MP3 and uploaded to Firebase Storage successfully!');
 console.log('Download URL:', downloadURL);
 } catch (error) {
 console.error('Error:', error);
 }
}

const inputPath = './video.mp4';
const date = Date.now();
const firebaseStoragePath = `./${date}.mp3`;

convertMP4ToMP3AndUploadToFirebase(inputPath, firebaseStoragePath);



-
ffmpeg and libaom compilation failed "unable to open include file `third_party/x86inc/x86inc.asm"
7 octobre 2023, par samI'm trying to build ffmpeg using this guide :
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu


the problem is when i try to compile libaom using the following commands :


cd ~/ffmpeg_sources && \
git -C aom pull 2> /dev/null || git clone --depth 1 https://aomedia.googlesource.com/aom && \
mkdir -p aom_build && \
cd aom_build && \
PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_TESTS=OFF -DENABLE_NASM=on ../aom && \
PATH="$HOME/bin:$PATH" make && \
make install



i get the following error :


/root/ffmpeg_sources/aom/aom_dsp/x86/sad4d_sse2.asm:14: fatal: unable to open include file `third_party/x86inc/x86inc.asm'
CMakeFiles/aom_dsp_encoder_sse2.dir/build.make:62: recipe for target 'CMakeFiles/aom_dsp_encoder_sse2.dir/aom_dsp/x86/sad4d_sse2.asm.o' failed
make[2]: *** [CMakeFiles/aom_dsp_encoder_sse2.dir/aom_dsp/x86/sad4d_sse2.asm.o] Error 1
CMakeFiles/Makefile2:842: recipe for target 'CMakeFiles/aom_dsp_encoder_sse2.dir/all' failed
make[1]: *** [CMakeFiles/aom_dsp_encoder_sse2.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2



Is there any fix for this issue ?


-
Could not open codec 'libopenh264' : Unspecified error
15 novembre 2023, par GingerbreadI am using OpenCV to process videos for my research. I have Python 2.7 and OpenCV 3.2 versions installed on Windows 10. When I do background subtraction on a video in Python using OpenCV, it works fine and produces the output. However, when I try to save the background subtracted video, it throws this error :



warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:779)
warning: MAH00119.avi (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:780)
OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 28 and format 'h264 / raw H.264 video'

Failed to load OpenH264 library: openh264-1.6.0-win64msvc.dll
 Please check environment and/or download library: https://github.com/cisco/openh264/releases

[libopenh264 @ 0000000001f5bf60] Incorrect library version loaded
Could not open codec 'libopenh264': Unspecified error




I am processing MP4 videos. And I followed the instructions carefully while installing ffmpeg, like adding the bin's path to environment variables. I don't know what else to do. Stuck on this for three days now.



Any help would be much appreciated !
Thanks in advance !!