
Recherche avancée
Médias (1)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (36)
-
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 (...) -
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 (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (5732)
-
Module not found : Can't resolve './lib-cov/fluent-ffmpeg'
29 mars 2021, par anInputNameI created this project using
npx create-react-app
, and I'm trying to useffmpeg-concat
, but I get the error in the title. Node versionv14.15.1
, npm version7.7.5
. I haveffmpeg
installed and in my PATH.

Error :


./node_modules/fluent-ffmpeg/index.js
Module not found: Can't resolve './lib-cov/fluent-ffmpeg' in 'C:\Users\XXX\Desktop\test\node_modules\fluent-ffmpeg'



My code :


function App() {
 //this is taken from ffmpeg-concat documentation page
 const concat = require('ffmpeg-concat')
 await concat({
 output: 'test.mp4',
 videos: ["videos/a.mp4", "videos/b.mp4", "videos/c.mp4"],
 transition: {
 name: 'directionalWipe',
 duration: 500
 }
 })

 return (
 <div classname="App">
 <header classname="App-header">
 <video input="{"test.mp4"}"></video>
 </header>
 </div>
 );
}

class Video extends Component {
 render() {
 return (
 
 )
 }
}

export default App;



index.js
innode_modules\fluent-ffmpeg\
:

module.exports = process.env.FLUENTFFMPEG_COV ? require('./lib-cov/fluent-ffmpeg') : require('./lib/fluent-ffmpeg');



-
How to convert cctv footage to h265 for streaming and recording in nginx-rtmp module ?
6 avril 2021, par JoramI am using the
nginx-rtmp-module
here to pull anrtsp
stream from a camera on local network and convert it tortmp
. Thisrtmp
stream is then converted tohls
and made available for livestreaming. It is also being recorded in 5 min segments. (these things can all be seen in thenginx.conf
below).

I want to change the video codec to
h265
to save storage space, since each 5 min video is~230mb
, and usingopencv
andpython
, I was able to get<100mb
per 5 min video usingh265
, so I know there is a lot of space for storage saving.

How can I change the codec of the stream to
h265
?

I have tried installing
libx265-dev
and setting-vcodec libx265
, however this tells meflv
is an invalid container and I'm getting nowhere with finding a valid container for streaming + recording.

My
nginx.conf
:

rtmp {
 server {
 listen 1935; # Listen on standard RTMP port

 application relay {
 
 live on;

 hls on;
 hls_path /tmp/hls;
 hls_fragment 15s;


 exec_static /usr/bin/ffmpeg -i rtsp://test:test@192.168.100.10:8554/fhd -vcodec copy -f flv rtmp://localhost:1935/relay/fhd; 

 # record block 
 record video;
 record_path /tmp/hls;
 record_unique on;
 record_interval 5m;
 }
 }
}



-
node ffmpeg module stuck more than one file
29 mai 2021, par Muhammad Hamzawhen I read more than one file it will be stuck and also hang my pc. I need to restart my pc


on one file or 5 files it will work perfectly but not more than 5 files


if anyone know this issue let me know


const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path
const ffmpeg = require('fluent-ffmpeg')
ffmpeg.setFfmpegPath(ffmpegPath)


const testFolder = './videos/';
const fs = require('fs');

 


fs.readdir(testFolder, async(err, files) => {
 try {
 for(let i = 0; i < 10; i++){
 if(files[i] != '1 Surah Fatiha Dr Israr Ahmed Urdu - 81of81.mp4'){
 
 let converter = await ffmpeg(`./videos/${files[i]}`)
 await converter.setStartTime('00:00:00').setDuration('30').output(`./outputfolder/${files[i]}`).on('end', function(err) {
 if(err) { 
 console.log(`err durinng conversation \n ${err}`) 
 }
 else{
 console.log(`Done ${files[i]}`);
 }
 }).on('error', function(err){
 console.log(`error: ${files[i]}`, err)
 }).run()
 }
 }
 } catch (error) {
 console.log(error)
 }
});