
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (67)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (5150)
-
I am trying to generate thumbnail by using ffmpeg but I can not define pathways and make my codes work
17 juillet 2020, par D. MerchantFffmpeg modul is installed in my shared hosting.




My goal is to get a thumbnail of a video. My codes is in below. I can not make them work. This is my first time I use ffmpeg.


require 'vendor/autoload.php';

$video_path = 'home/sasasasasa/public_html/wp-content/uploads/jvhyicpzxy.mp4';

$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($video_path);
$video
 ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(5))
 ->save('new_preview1.jpg');



When I try the codes in the above, I get this error :




1- What does 'vendor/autoload.php' pathway mean ? I can not see a folder called "vendor" in my file manager.


2- I've check my ffmpeg folder with this code "exec('which ffmpeg') ;" and it outputs "/usr/bin/ffmpeg". But there is no directory in my file manager like that. After a search, Ive found this directory about ffmpeg : "/perl/usr/lib/perl5/FFmpeg". If I enter this path in my hosting, I can see only "Command.pm" and "Thumbnail.pm". What is my wrong, and how can I make my codes work and have a preview of the video ?


-
ffmpeg : memory not freed on multi-threaded decoding
31 mai 2020, par toby_eI am developing a video player based on the ffmpeg libraries and have run into a rather strange memory increase or failure to decrease memory when unloading a video file. My code is based on various examples of demuxing, decoding and scaling video and audio frames - but with the excecption that i have put each of these steps into seperate threads to avoid waiting for time-consuming calls. Everything works perfectly, but Visual Studio shows that Process Memory does not decrease when i call the various avclose and avfree calls. My Windows task manager confirms these memory increases that continue into the gigabyes !



My player is roughly made up by two clases with the following calls to the ffmpeg libraries :



—



READER :



Open (on main thread) :
avformat_open_input(), avformat_find_stream_info()



Read (on seperate thread) :
av_read_frame()



Close (on main thrad) :
avformat_close_input()



DECODER :



Open (on main thread) :
avcodec_find_decoder(), avcodec_alloc_context3(), avcodec_parameters_to_context(), avcodec_open2()



Decode (on seperate thread) :
avcodec_send_packet(), avcodec_receive_frame()



Close (on main thread) :
avcodec_free_context()



—



Is threre any issues with opening/closing on the main thread and reading/deconding on other threads ?


-
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.