
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (45)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)
Sur d’autres sites (7313)
-
Why are there multiple .m3u8 requests made by the browser ?
20 mai 2020, par 47fa0cI usually download my lectures instead of watching them on the online player provided by my university. I do this by finding requests that include .m3u8 in their url. There always seems to be two of these for each of the videos that I want to download, with one slight difference in the urls but otherwise identical. Why is that the case ?



My wild guess is that one of them is supposed act as a backup if the other failed to fetch but I am not sure.



I can't share the urls as they contain copyrighted material but it looks something like



domain/a/b/hashedvalue1/c/video.mp4/index.m3u8




and



domain/a/b/hashedvalue2/c/video.mp4/index.m3u8




Thanks for your help :)


-
Record live stream using ffmpeg as Process in Java
26 décembre 2020, par SerbrodaI can not figure out how to start a Process in Java for recording a live stream with ffmpeg.



I've tried several solutions, but my current code looks like this (simplified) :



public void startDownload() {
 String[] processArgs = new String[] {
 "ffmpeg", 
 "-i", 
 "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8", 
 "-c", 
 "copy", 
 "-bsf:a", 
 "aac_adtstoasc", 
 "C:\\temp\\test.mp4"
 };
 ProcessBuilder processBuilder = new ProcessBuilder(processArgs);
 try {
 process = processBuilder.start();
 process.wairFor(); // Do I need this? Actually the stream is running forever until I stop it manually.
 BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
 String line = null;
 while ((line = br.readLine()) != null) { // this blocks forever
 System.out.println(line);
 }
 } catch (IOException e) {
 e.printStackTrace();
 }
}




The problem is, that something blocks the process from starting. In this example the
br.readLine()
blocks it forever and I can not get any output from the process.


But after killing the jar / stopping launch config in Intellij, the process begins to work and I have to kill it via task manager.



Running a process that is not recording a live stream like just executing
ffmpeg
works by the way.


I'm using Windows, JDK 14, IntelliJ.


-
How to record lifestream in fluent-ffmpeg with screenshots on fixed intervals ?
3 juin 2020, par philipposI am using
typescript
to record a lifestream using my built-in webcam on my MAC. My goal is to record a video of 1 min length, and taking a screenshot every 10 seconds.


Here is my code :



import * as ffmpeg from 'fluent-ffmpeg'
ffmpeg()
 .input('0')
 .inputFormat('avfoundation')
 .inputFPS(30)
 .outputOptions([`-vf fps=1/10`])
 .output(`thumb%02d.jpg`)
 .duration(60)
 .save('test.mpg')




I am succeeding to take 6 screenshots in a minute, however, the video keeps recording even after it's more than one minute, until I stop recording manually by ^ + C from terminal.



I have to note that if I comment out the screenshot lines as following :



import * as ffmpeg from 'fluent-ffmpeg'

ffmpeg()
 .input('0')
 .inputFormat('avfoundation')
 .inputFPS(30)
 // .outputOptions([`-vf fps=1/10`])
 // .output(`thumb%02d.jpg`)
 .duration(60)
 .save('test.mpg')




Then it will stop recording automatically after 1 minute.



So how to make it record a 1 min video, take screenshots at intervals, and then stop automatically ?



UPDATE



I just read on the documentation the following :





Also note that when calling output(), you should not use the save() or stream() (formerly saveToFile() and writeToStream()) methods, as they already add an output. Use the run() method to start processing.





So as I understood, we can do both recording a video AND taking screenshots on the same time.



The following code takes screenshots every 10 seconds for a minute, without recording a video.



import * as ffmpeg from 'fluent-ffmpeg'
ffmpeg()
 .input('0')
 .inputFormat('avfoundation')
 .inputFPS(30)
 .duration(60)
 .outputOptions([`-vf fps=1/10`])
 .output(`thumb%02d.jpg`)
 })
 .run()




However, I still want to know if there is any workaround to do both recording and taking screenshots at the same time.