
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 (36)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 (8502)
-
Update a connection to websocket in Meteor
3 août 2017, par Lucas CarvalhoI’m new in meteor and i want to create a video stream using JSMpeg and ffmpeg.
With meteor, i can start a separeted server to receive the ffmpeg data and now i need to pass this data through a websocket connection for the clients logged in the server.
How I can create this connection or how i can pass this data thru JSMpeg on the client side ?
This is how i started the http server inside the meteor application :
var http = require('http');
var STREAM_PORT = 8081,
WEBSOCKET_PORT = 8082,
RECORD_STREAM = false;
Meteor.startup(() => {
// HTTP Server to accept incomming MPEG-TS Stream from ffmpeg
var streamServer = http.createServer( function(request, response) {
var params = request.url.substr(1).split('/');
if (params.length != 3){
console.log(
'Failed Stream Connection: wrong number of parameters.'
);
response.end();
}
var userEmail = params[0];
//here goes an function to get the user id
var userID;
var connName = userID + "-" + params[1] + "-" + params[2];
response.connection.setTimeout(0);
console.log(
'Stream Connected: ' +
request.socket.remoteAddress + ':' +
request.socket.remotePort, connName
);
request.on('data', function(data){
//here i need to pass the data to an websocket
socketServer.broadcast(connName, data);
if (request.socket.recording) {
request.socket.recording.write(data);
}
});
// Record the stream to a local file?
if (RECORD_STREAM) {
var path = 'recordings/' + Date.now() + '.ts';
request.socket.recording = fs.createWriteStream(path);
}
}).listen(STREAM_PORT);
}); -
Discord.py : Playing audio to voice channel speeds up
7 juin 2021, par TobyI made a simple Discord bot using Discord.py to play short audio clips from local files and leave once it finished playing. The bot was working perfectly but now all the audio is getting sped up. I did not change anything in the code. There are a few audio clips that can be chosen, some are noticeably sped up while others don't even play sometimes. The speeding up is also inconsistent.


Main Code


@bot.event
async def on_ready():
 print('Logged in as {0.user}'.format(bot))

@bot.command()
async def meme(ctx, message):
 server = ctx.message.guild.name
 #check if user is in voice channel or if command is valid
 if not ctx.author.voice:
 return await ctx.send("Join a voice channel!") 
 else:
 if message in audioPathsDict:
 audioPath = audioPathsDict[message]
 else:
 return await ctx.send("Not a valid command!")
 #voice_channel is channel of command author
 voice_channel = ctx.message.author.voice.channel
 try:
 vc = await voice_channel.connect()
 print(f"Played {audioPath} in Voice Channel: {voice_channel}, Server: {server}\n")
 except:
 print("Already Connected to a voice channel")
 voice = discord.utils.get(bot.voice_clients,guild = ctx.guild)
 vc.play(FFmpegPCMAudio(audioPath))
 vc.source = discord.PCMVolumeTransformer(vc.source)
 vc.source.volume = 0.1
 while vc.is_playing():
 await sleep(2)#while audio is playing wait 0.5 then disconnect
 await vc.disconnect()



-
ffmpeg exited with code 1 : Error configuring complex filters
21 décembre 2015, par rycornellI am using the fluent-ffmpeg node package to merge videos. I am following the documentation exactly but I get the following error :
Error: ffmpeg exited with code 1: Error configuring complex filters.
Here is the code :ffmpeg('/videos/test/part1.mov')
.input('/videos/test/part2.mov')
.on('error', function(err) {
console.log('An error occurred: ' + err.message);
})
.on('end', function() {
console.log('Merging finished !');
})
.mergeToFile('videos/test/final.mp4', 'videos/test/tempDir');and here is the error output (I logged the command generated by fluent-ffmpeg to the console) :
C:\Program Files\ffmpeg\bin\ffmpeg.exe [ '-formats' ] { captureStdout: true }
C:\Program Files\ffmpeg\bin\ffmpeg.exe [ '-encoders' ] { captureStdout: true }
C:\Program Files\ffmpeg\bin\ffmpeg.exe [ '-i',
'/videos/test/part1.mov',
'-i','/videos/test/part2.mov',
'-y',
'-filter_complex',
'concat=n=2:v=1:a=1',
'videos/test/final.mp4' ] { niceness: 0 }
An error occurred: Error: ffmpeg exited with code 1: Error configuring complex filters.
Invalid argument
at ChildProcess.<anonymous> (C:\test\node_modules\fluent-ffmpeg\lib\processor.js:169:22)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:809:12)
</anonymous>I’m able to run ffmpeg on my machine for other tasks and it works fine. I’m not sure what the ’-filter_complex’ flag is supposed to do. I am using fluent-ffmpeg version 2.0.1 and ffmpeg windows static build git-9d1fb9e (2015-12-17).