
Recherche avancée
Autres articles (100)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (7610)
-
Discord JS dispatcher goes immediately on finish
2 juillet 2021, par JonJonI experienced some issues with my Discord bot. I want to play a mp3-file in a voice channel. But the dispatcher goes immediately on status 'finish' and the song doesn't play. There are no errors. First I thought that ffmpeg might be the problem. But ffmpeg seems to work fine. Then I tried reinstalling nodejs. This didn't work out as well. The code can't be the problem as well, because it worked fine last week.
Has anyone an idea ?
Code :




const Discord = require('discord.js');
const client = new Discord.Client();

client.login('token');

client.on('message', async msg =>{
 if(msg.content === 'play'){
 msg.reply('playing');
 const connection = await msg.member.voice.channel.join();

 const player = connection.play('musik.mp3');

 player.on('finish', () => {
 msg.member.voice.channel.leave();
 });
 }
});







-
ffmpeg output always has frozen parts of the output mp4
5 mai 2022, par beinSo a little clarification i have a folder of videos that i want to combine into one. Ive looked at multiple overflows and everything i try ends up with an error. The first few videos work then on the later ones its just frozen. I can still however hear the audio. I currently have this as my video.js...


import { exec } from 'child_process';
import * as fs from 'fs';

let folders = fs.readdirSync('./videos')


folders.forEach(element => {
 if(element != '.DS_Store'){
 let videos = fs.readdirSync('./videos/'+element)

 fs.writeFileSync('./videos/'+element+'/list.txt','')
 
 try {
 fs.rmSync('./videos/'+element+'/combined.mp4')
 } catch (error) {
 //console.log(error)
 }

 let list = ''
 
 videos.forEach(video => {
 if(video != 'list.txt' && video != '.DS_Store' && video != 'combined.mp4'){
 fs.appendFileSync('./videos/'+element+'/list.txt',('file '+video+'\n'))


 list += `file ${video}`
 list += "\n"




 
 }
 });

 var writeStream = fs.createWriteStream('./videos/'+element+'/list.txt')

 writeStream.write(list)

 writeStream.end()


 exec(`ffmpeg -hwaccel d3d11va -safe 0 -ss 0 -f concat -i ${'./videos/'+element+'/list.txt'} -c copy -copyinkf -vsync 1 -s 1920x1080 -sws_flags lanczos -c:v h264 ${'./videos/'+element+'/combined.mp4'}`, {maxBuffer: 1024 * 100000},(error, stdout, stderr) => {
 if (error) {
 console.log(`error: ${error.message}`);
 return;
 }
 else{
 console.log("videos are successfully merged")
 }
 
 })
 }
});



Any Ideas ? Tried both on Mac and Windows


-
Build a C++ project with OpenCV 4.5.x in Visual Studio with custom flags for ffmpeg
18 mai 2022, par Ivy GrowingOur C++ project in MS Visual Studio under Windows 10 uses OpenCV 4.5.


#include <opencv2></opencv2>opencv.hpp>
#include <opencv2></opencv2>videoio.hpp>
#include <opencv2></opencv2>imgcodecs.hpp>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"



The project works well. The OpenCV uses ffmpeg as dependency for extracting video frames from a stream or a file. Our legals require following flags are not used when compiling the ffmpeg to approve the product release :


- 

- without
--enable-gpl
- without
--enable-nonfree






So far this page gets close to the answer, however, I cannot understand how to configure the Visual Studio to use custom flags just for ffmpeg and not for other dependencies. Elaboration is appreciated.


The Visual Studio has challenging and pretty confusing (for me in person, often) menues and settings. This is the root of the question :


How/where in Visual Studio can I see which flags are used for compiling of dependent libraries ?
Specifically, how can I check which flags are used in OpenCV to build the ffmpeg ?


- without