
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 (90)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (5018)
-
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)
 }
});




-
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;
 }
 }
}



-
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');