
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (83)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (7753)
-
typeError when using ffmpeg with buffer in NodeJS ["argument must be of type string or an instance of Buffer"]
16 mars 2021, par coolps811I am trying to covert buffer data into the correct mp4 video format. However I am getting an error : "UnhandledPromiseRejectionWarning : TypeError [ERR_INVALID_ARG_TYPE] : The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of FfmpegCommand". How can I fix this ?


router.post("/download", (req, res, next) => {
 axios({
 method: "get",
 url: req.body.url,
 responseType: "arraybuffer",
 }).then(function (response) {
 const data = new Uint8Array(Buffer.from(response.data));

 const proc = new ffmpeg(data)
 .videoCodec("libx264")
 .outputOptions(["-movflags isml+frag_keyframe"])
 .toFormat("mp4")
 //.seekInput(offset) this is a problem with piping
 .on("error", function (err, stdout, stderr) {
 console.log("an error happened: " + err.message);
 console.log("ffmpeg stdout: " + stdout);
 console.log("ffmpeg stderr: " + stderr);
 })
 .on("end", function () {
 console.log("Processing finished !");
 })
 .on("progress", function (progress) {
 console.log("Processing: " + progress.percent + "% done");
 });

 fs.writeFile("Assets/test.mp4", proc, callback);
 });

 const callback = (err) => {
 if (err) throw err;
 console.log("It's saved!");
 };
});



-
How do I read an mp4 file directly into moviepy from S3 ?
9 novembre 2022, par racket99Any idea how to read an S3 mp4 file directly into moviepy ?



I have tried,



import boto3
from io import BytesIO
from moviepy.editor import *

client = boto3.client('s3')
obj = client.get_object(Bucket='some-bucket', Key='some-file')
VideoFileClip(BytesIO(obj['Body'].read())) 




but I am getting,



Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/<path>/lib/python3.6/site-packages/moviepy/video/io/VideoFileClip.py", line 91, in __init__
fps_source=fps_source)
File "/<path>/lib/python3.6/site-packages/moviepy/video/io/ffmpeg_reader.py", line 33, in __init__
fps_source)
File "/<path>/lib/python3.6/site-packages/moviepy/video/io/ffmpeg_reader.py", line 243, in ffmpeg_parse_infos
is_GIF = filename.endswith('.gif')
AttributeError: '_io.BytesIO' object has no attribute 'endswith'
</path></path></path></module></stdin>



where path is my virtual environment


-
nginx ffmpeg mpegts http
6 mars 2024, par micheli can't understand how to serve .ts files from nginx.
for hls it works without problems (m3u8).



http://127.0.0.1/hls/stream_name.m3u8






I tried to compile nginx with the 2 modules :



nginx-live-module



nginx-ts-module



It works in part, if I send a stream it works, if I send for example 10 it doesn't work.



ffmpeg -re -f concat -safe 0 -i stream.txt -c copy -map 0 -f mpegts "http://127.0.0.1/stream_name?buffer_size=1048576"



with VLC I open the stream and it works but if I try to open more streams it doesn't open even if ffmpeg is sending to the nginx server.



what am I doing wrong ?



user www;
worker_processes auto;
worker_rlimit_nofile 300000;
events {
 worker_connections 16000;
 use epoll;
 accept_mutex on;
 multi_accept on;
}

error_log logs/error.log notice;

http {
 live_zone zone=foo:100m;

 server {
 listen 8080;

 location / {
 live foo;
 live_methods GET POST;

 # enable endless request body
 client_max_body_size 0m;
 }
 }

}