
Recherche avancée
Autres articles (42)
-
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 -
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (6664)
-
FFmpeg video creation getting stuck while executed from java
14 août 2016, par user11230I am using this line of code to create a simple video from an image.
ffmpeg -framerate 1/5 -i C:\mydir\img.jpg -c:v libx264 -r 30 -pix_fmt yuv420p test2.mp4
it works flawlessly if I execute it from the cmd. But if I call it from my java program I begin to see some lines of ffmpeg but it gets stuck on this line
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 110x162 [SAR 1:1 DAR 55:81], 0.20 tbr, 0.20 tbn, 0.20 tbc
note that eclipse doesn’t say that the program is < terminated >.
This is the method I’m using to call the command :try{
ProcessBuilder builder = new ProcessBuilder(
"cmd.exe", "/c",
//"cd \"C:\\Users\\Davide\\Downloads\\ffmpeg-20160811-b83d907-win64-static\\bin\" && "
ffCommand);
builder.redirectErrorStream(true);
Process p = builder.start();
BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while (true) {
line = r.readLine();
if (line == null) { break; }
System.out.println(line);
}
}catch(IOException e){
e.printStackTrace();where
ffcommand
is the line of code I wrote first.
Thanks. -
FFmpeg video creation getting stuck while executed from java
13 octobre 2018, par user11230I am using this line of code to create a simple video from an image.
ffmpeg -framerate 1/5 -i C:\mydir\img.jpg -c:v libx264 -r 30 -pix_fmt yuv420p test2.mp4
it works flawlessly if I execute it from the cmd. But if I call it from my java program I begin to see some lines of ffmpeg but it gets stuck on this line
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 110x162 [SAR 1:1 DAR 55:81], 0.20 tbr, 0.20 tbn, 0.20 tbc
note that eclipse doesn’t say that the program is < terminated >.
This is the method I’m using to call the command :try{
ProcessBuilder builder = new ProcessBuilder(
"cmd.exe", "/c",
//"cd \"C:\\Users\\Davide\\Downloads\\ffmpeg-20160811-b83d907-win64-static\\bin\" && "
ffCommand);
builder.redirectErrorStream(true);
Process p = builder.start();
BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while (true) {
line = r.readLine();
if (line == null) { break; }
System.out.println(line);
}
}catch(IOException e){
e.printStackTrace();where
ffcommand
is the line of code I wrote first.
Thanks. -
SDL2.0 Alternative for SDL_Overlay
19 juin 2019, par JoshSo I’ve been trying to go through the following tutorial on ffmpeg : http://dranger.com/ffmpeg/tutorial02.html
However, when I try to compile using gcc, I get the following output :
root:/Users/mbrodeur/Downloads/HACKATHON CONTENT/Tutorials-> gcc -o tutorial02 tutorial02.c -lavutil -lavformat -lavcodec -lz -lavutil -lm -lswscale -D_THREAD_SAFE -lSDL2
tutorial02.c: In function ‘main’:
tutorial02.c:41: error: ‘SDL_Overlay’ undeclared (first use in this function)
tutorial02.c:41: error: (Each undeclared identifier is reported only once
tutorial02.c:41: error: for each function it appears in.)
tutorial02.c:41: error: ‘bmp’ undeclared (first use in this function)
tutorial02.c:98: warning: assignment makes pointer from integer without a cast
tutorial02.c:110: error: ‘SDL_YV12_OVERLAY’ undeclared (first use in this function)Now, I read that SDL_Overlay is no longer used in SDL2, so therein lies the problem. I’ve been poking around, but can’t seem to find anything helpful. Is there a replacement for SDL_Overlay ? Is it necessary ?
SDL_Overlay is used in the following context :
SDL_Overlay *bmp;
bmp = SDL_CreateYUVOverlay(pCodecCtx->width, pCodecCtx->height,
SDL_YV12_OVERLAY, screen);