
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (76)
-
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (7103)
-
Download,modify and upload video with S3
9 février 2017, par Gold FishI’m trying to write a Lambda function in nodejs that will download a file from S3 bucket, modify it, and then upload it back to another S3 bucket. For some reason, the algorithm prints the ’Modify Video’ log and then finishes and exit without error. What am I doing wrong ?
var AWS = require('aws-sdk');
var util = require('util');
var ffmpeg = require('fluent-ffmpeg');
var s3 = require('s3');
// get reference to S3 client
var awsS3Client = new AWS.S3();
var options = {
s3Client: awsS3Client,
};
var client = s3.createClient(options);
exports.handler = function(event, context, callback) {
// Read options from the event.
console.log("Reading options from event:\n", util.inspect(event, {depth: 5}));
var srcBucket = event.Records[0].s3.bucket.name;
// Object key may have spaces or unicode non-ASCII characters.
var srcKey =
decodeURIComponent(event.Records[0].s3.object.key.replace(/\+/g, " "));
var dstBucket = srcBucket + "-dst";
var dstKey = "mod_" + srcKey;
var dwnld_file_name = '/tmp/vid.mp4';
var mdfy_file_name = '/tmp/mod_vid.mp4';
// Sanity check: validate that source and destination are different buckets.
if (srcBucket == dstBucket) {
callback("Source and destination buckets are the same.");
return;
}
// Infer the video type.
var typeMatch = srcKey.match(/\.([^.]*)$/);
if (!typeMatch) {
callback("Could not determine the video type.");
return;
}
var videoType = typeMatch[1];
if (videoType != "mp4") {
callback('Unsupported video type: ${videoType}');
return;
}
console.log("Source bucket: ", srcBucket);
console.log("srcKey: ", srcKey);
console.log("Dest bucket: ", dstBucket);
console.log("dstKey: ", dstKey);
var params = {
localFile: dwnld_file_name,
s3Params: {
Bucket: srcBucket,
Key: srcKey,
},
};
console.log("params for download: ", params);
var downloader = client.downloadFile(params);
downloader.on('error', function(err) {
console.error("unable to download:", err.stack);
callback("unable to download");
});
downloader.on('end', function() {
console.log("done downloading");
console.log("modify video");
ffmpeg(dwnld_file_name)
.setStartTime('00:00:01')
.setDuration('1').output(mdfy_file_name).on('end', function() {
console.log('Finished processing');
params = {
localFile: mdfy_file_name,
//localFile: dwnld_file_name,
s3Params: {
Bucket: dstBucket,
Key: dstKey,
},
};
console.log("params for upload: ", params);
var uploader = client.uploadFile(params);
uploader.on('error', function(err) {
console.error("unable to upload:", err.stack);
callback("unable to upload");
});
uploader.on('end', function() {
console.log("done uploading");
callback('done');
return;
});
}); //
});
}; -
Concatenate a video and audio stream via urls and download them directly to user's computer
10 juillet 2019, par CeylonDomains SolutionsI’m looking for a solution for the following matter.
I need to concatenate a video and an audio stream via URL and then download them directly to user’s computer without creating a merged file on server. Is there any possible way to do this via ffmpeg or any other tool ?
Merging 2 files on server and then downloading this file to user’s computer is possible, but I’m expecting something more than that.
Please note my application is a PHP application.
Thanks in advance.
-
ffmpeg programatically set the export date to download date using python
16 janvier 2021, par Vladimir Tarasovi'm currently using the code below to export a youtube-dl converted video (with ffmpeg and youtube-dl for python)
how could i programatically set the good options for ffmpeg to add the download date (at least today's date) to the .mp3 file ?


ydl_opts = {
 'format': 'bestaudio/best',
 'outtmpl': path + urlToTitleYT(link) + '.mp3',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '320',
 }],
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([link])