
Recherche avancée
Médias (10)
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (68)
-
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 (12464)
-
Is there a way to stream download a mp3 file that is being converted on a nodejs server ?
19 février 2019, par ThriskelI am looking for a way to send the url to the nodejs server and respond the user with the mp3 file download.
I searched some examples, and read about requests and responses, but I am not sure what the problem really is.
This is the Javascript for the HTML :
var downloadBtn = document.querySelector('.download_button');
var URLinput = document.querySelector('#myUrl');
downloadBtn.addEventListener('click', () => {
console.log(`URL: ${URLinput.value}`);
sendURL(URLinput.value);
});
function sendURL(URL) {
window.location.href = `http://localhost:4000/download?URL=${URL}`;
}This is the Javascript for the Nodejs server :
const express = require('express');
const cors = require('cors');
const ytdl = require('ytdl-core');
const app = express();
const ffmpeg = require('fluent-ffmpeg')
app.use(cors());
app.listen(4000, () => {
console.log('Server Works !!! At port 4000');
});
app.get('/download', (req,res) => {
var URL = req.query.URL;
res.header('Content-Disposition', 'attachment; filename="file.mp3"');
let stream = ytdl(URL, {
quality: 'highestaudio',
}); //HERE THE STREAM FILE IS SELECTED TO BE CONVERTED TO MP3
ffmpeg(stream)
.audioBitrate(128)
.pipe(res); // HERE IS CONVERTED AND WHERE I WANT IT TO SEND IT AS A DOWNLOAD TO THE USER.
});I expected it to stream download the file but instead it gets me to the nodejs server page to /download/url_to_vid
-
Deprecation error when using imageio.ffmpeg.download()
29 novembre 2022, par SHASHIKUMAR B JI'm trying to merge the prerecorded videos using python Opencv.
But i'm getting the error while importing.



"Traceback (most recent call last):
 File "video.py", line 4, in <module>
 from moviepy. editor import VideoFileClip,concatenate_videoclips 
 File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/moviepy/editor.py", line 26, in <module>
 imageio.plugins.ffmpeg.download()
 File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/imageio/plugins/ffmpeg.py", line 40, in download
 "imageio.ffmpeg.download() has been deprecated. "
RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'"
</module></module>



would anyone please help to get out of this problem



Here is the code :



import cv2 
import os 
import time 
from moviepy.editor import VideoFileClip,concatenate_videoclips 
def vidcapt():
 a = time.strftime("%H,%M,%S")
 cap = cv2.VideoCapture(0)
 fourcc = cv2.VideoWriter_fourcc(*'XVID')
 out = cv2.VideoWriter(a+'.avi', fourcc, 24.0, (640,480))
 t1 = time.time()
 while(cap.isOpened()):
 ret, frame = cap.read() 
 if ret == True:
 out.write(frame)
 cv2.imshow('frame',frame)
 t2 = time.time()
 time_diff = t2-t1
 if time_diff >= 5:
 break
 else:
 break
 cap.release()
 out.release()
 cv2.destroyAllWindows()

while True:
 vidcapt()


clip1 = VideoFileClip("11,05,42.avi")
clip2 = VideoFileClip("11,05,47.avi").subclip(50,60)
final_clip = concatenate_videoclips([clip1,clip2])
final_clip.write_videofile("merged.avi")



-
Python : movie stream into pygame
4 mars 2019, par user1533267Quick challenge :
I’m streaming part of my desktop screen trough the network using the following :
Server
$ ffmpeg -f x11grab -s 800x600 -r 30 -i :100 -an -q 10 -f mjpeg - | nc -lp 5000
Client
$ nc <computer address="address"> 5000 | ffplay -
</computer>I would like to display the following stream inside my pygame opengl window on the client, I read some documents on pygame.movie and found :
"Load a new MPEG movie stream from a file or a python file object."
Would it be possible to load the stream into pygame ?
I need it to be as responsive as possible, and right now im seeing about 500ms lag.Any ideas ?
Thanks.