
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 (56)
-
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 ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9340)
-
Node-JS convert mp4 to m3u8 with FFMPEG : Unable to find a suitable output format for 'v:1,a:1"'
18 mars 2021, par Jérémy GachonI am writing a server-side function to convert a mp4 file to m3u8, but there is an error with the differents video size. I want to have my video in differents sizes (4k UHD, 2k, 1080p, 720p...) but, with this line :
"-var_stream_map", "'v:0,a:0 v:1,a:1'",
, there is an error :



[NULL @ 0x7fe9de00d800] Unable to find a suitable output format for 'v:1,a:1"'
v:1,a:1" : Invalid argument




When I delete this line, all work, but I have just the v0 in 640x360 and not the v1 (960x540).


How can I bypass this error to have all the video sizes ?


const ffmpeg = require('fluent-ffmpeg');
var infs = new ffmpeg

infs.addInput(doc.data().url).outputOptions([
 '-preset slow', '-g 48', '-sc_threshold 0',
 '-map 0:0', '-map 0:1', '-map 0:0', '-map 0:1',
 '-s:v:0 640x360', '-c:v:0 libx264', '-b:v:0 365k',
 '-s:v:1 960x540', '-c:v:1 libx264', '-b:v:1 2000k',
 "-var_stream_map", "'v:0,a:0 v:1,a:1'",
 '-master_pl_name master.m3u8',
 '-f hls', '-hls_time 6', '-hls_list_size 0',
 '-hls_segment_filename fileSequence%d|v%v.ts',
 '-max_muxing_queue_size 1024',
 ]).output('./video.m3u8')
 .on('start', function (commandLine) {
 console.log('Spawned Ffmpeg with command: ' + commandLine);
 })
 .on('error', function (err, stdout, stderr) {
 console.log('An error occurred: ' + err.message, err, stderr);
 })
 .on('progress', function (progress) {
 console.log('Processing: ' + progress.percent + '% done')
 })
 .on('end', function (err, stdout, stderr) {
 console.log('Finished processing!' /*, err, stdout, stderr*/)
 })
 .run() 



-
What does "dash" - mean as ffmpeg output filename
26 août 2020, par DDSI'm trying to use ffmpeg with gnuplot to draw some audio spectra, I'm following this ffmpeg doc link.


Now I'm asking what "dash"
-
means on this line right after-f data
, it should be a filename : the last element of ffmpeg command should the output file but I have no files named-
in the directory after running the command.

ffmpeg -y -i in.wav -ac 1 -filter:a aresample=8000 -map 0:a -c:a pcm_s16le -f data - | gnuplot -p -e "plot 'code>


I looked on ffmpeg docs but I didn't find anything.


-
ffmpeg -var_stream_map Invalid keyval "v:0
22 septembre 2020, par rmrf flythe ffmpeg command is correct,


use ffmpeg command execute at command line is ok,


int windows10 use java exec the command is ok ,


by only in linux when i use java exec the ffmpeg command throw expection


the command :


ffmpeg -i /data/vsftpd/Anchor.mp4 -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k -map 0:v -map 0:a -map 0:v -map 0:a -f hls -var_stream_map "v:0,a:0 v:1,a:1" -hls_segment_filename 'file_%v_%03d.ts' out_%v.m3u8





[hls @ 0xd31b5c0] Invalid keyval "v:0
[hls @ 0xd31b5c0] Variant stream info update failed with status ffffffea
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument



jar


<dependency>
 <groupid>org.apache.commons</groupid>
 <artifactid>commons-exec</artifactid>
 <version>1.3</version>
</dependency>



java code


public static int exeCommand(String command, OutputStream out) throws ExecuteException, IOException {
 CommandLine commandLine = CommandLine.parse(command);
 PumpStreamHandler pumpStreamHandler = null;
 if (null == out) {
 pumpStreamHandler = new PumpStreamHandler();
 } else {
 pumpStreamHandler = new PumpStreamHandler(out);
 }

 // time out 10s
 ExecuteWatchdog watchdog = new ExecuteWatchdog(10000);

 DefaultExecutor executor = new DefaultExecutor();
 executor.setStreamHandler(pumpStreamHandler);
 //executor.setWatchdog(watchdog);

 return executor.execute(commandLine);
}