
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 (75)
-
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 (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (6330)
-
Using location.search instead of location.hash to transfer the JSON data for cross-domain iframe transport access, due to IE ignoring the hash in redirects.
18 novembre 2011, par Sebastian Tschanm application.js m result.html Using location.search instead of location.hash to transfer the JSON data for cross-domain iframe transport access, due to IE ignoring the hash in redirects.
-
FFmpeg with node.js. Transcode a file to another format
19 juin 2014, par user2757842Have a bit of a problem with this, I have an .avi file in which I would like to transcode into a .flv file using FFmpeg, here is what I have so far :
var ffmpeg = require('fluent-ffmpeg');
//make sure you set the correct path to your video file
var proc = new ffmpeg({ source: 'C:/Users/Jay/Documents/movie/drop.avi', nolog: true })
//Set the path to where FFmpeg is installed
.setFfmpegPath("C:\Users\Jay\Documents\FFMPEG")
//set the size
.withSize('50%')
// set fps
.withFps(24)
// set output format to force
.toFormat('flv')
// setup event handlers
.on('end', function() {
console.log('file has been converted successfully');
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
})
// save to file <-- the new file I want -->
.saveToFile('C:/Users/Jay/Documents/movie/drop.flv');It seems straightforward enough and I can do it through the FFmpeg command line, but I am trying to get it working within a node.js app, here is the error it is returning :
C:\Users\Jay\workspace\FFMPEGtest\test.js:17
.withSize('50%')
^
TypeError: Cannot call method 'withSize' of undefined
at Object.<anonymous> (C:\Users\Jay\workspace\FFMPEGtest\test.js:17:2)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
</anonymous>It throws the same error for each built in FFmpeg function (.toFormat, .withFPS etc)
If anyone has a solution to this, I’d greatly appreciate it
-
What is the best ffmpeg command keeping the best quality to convert a m3u8 file into a mp4 file ?
16 novembre 2019, par NicrycOk so I downloaded a .m3u8 file on the Internet. I saw that this file extension corresponds to a HTTP Live Streaming protocol also called HLS. This protocol consists of an index file (the m3u8 file) that is a text file containing several URL redirecting to .ts files. Those .ts files are video files where each one are a little part of the whole video. Then I searched and found on Wikipedia and on the Apple website that this protocol embeds the MPEG-4 (H.264) video format.
If I’m not mistaken .mp4 is the file extension of the MPEG-4 (H.264) video format. So a mp4 file is always a MPEG-4 (H.264) video. I use ffmpeg to convert this .m3u8 file into a "normal" video file. Currently I use this command :
ffmpeg -protocol_whitelist "file,http,https,tcp,tls" -i input.m3u8 output.mp4
Although even if the video quality is almost perfect it’s a little below the quality of the original m3u8 file. I know I’m really pernickety but is there a better command to keep the original quality ? Or does the ffmpeg convertion command involve inevitably a quality loss ?