Recherche avancée
Autres articles (11)
-
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 (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)
Sur d’autres sites (515)
-
Android FFMPEG : Could not execute the ffmpeg from Java code
23 septembre 2013, par RajI am working on an Android app where I want to create a video from a
list of static images. After doing some search on internet, it made me
realized that using "FFMPEG" is the way to go in getting this thing
done. So I got hold of this site :
https://github.com/guardianproject/android-ffmpeg-java from where I
downloaded the C library and the Java wrapper. I was able to compile the
C library - of course not the way the instruction was laid out - but
still I was able to get "ffmpeg" executable under
/external/android-ffmpeg/ffmpeg directory. I copied that executable in
my current directory and then copied it to a directory under Android
where my app can access it. Then I called the provided Java wrapper but
I am seeing some errors in the log file like follows :08-13 11:55:37.848: D/FFMPEG(29598): /data/data/com.sample/app_bin/ffmpeg -y -loop 1 -i /storage/emulated/0/usersnapshot/ffmpeg/image%03d.jpg -r 25 -t 2 -qscale 5 /storage/emulated/0/video/snapshot-video.mp4
08-13 11:55:37.898: I/ShellCallback : shellOut()(29598): /data/data/com.sample/app_bin/ffmpeg[1]: syntax error: '(' unexpected
08-13 11:55:37.938: I/ShellCallback : processComplete()(29598): 1And following is the code snippet (where targetDirectoryForFFMPEG = directory where the images are stored) :
FfmpegController ffmpegController = new FfmpegController(this, targetDirectoryForFFMPEG);
String out = videoOutPutFile.getPath();
MediaDesc mediaIn = new MediaDesc();
mediaIn.path = targetDirectoryForFFMPEG+"/image%03d.jpg";
mediaIn.videoFps = "25";
ffmpegController.convertImageToMP4(mediaIn, 2, out,new ShellCallback() {
@Override
public void shellOut(String shellLine) {
Log.i("ShellCallback : shellOut()", shellLine);
}
@Override
public void processComplete(int exitValue) {
Log.i("ShellCallback : processComplete()", exitValue+"");
}
});Has anybody implemented this before ? If yes, can you point me to what am I doing incorrect ? I will provide more information if needed.
-
ffmpeg ideal format to convert videos using ffmpeg
27 octobre 2013, par Offboardwell the thing is, I intend to do a conversion of videos in the following qualities 240p, 360, 480p and 720p
I researched a lot out there and got some codes to use, but there's something wrong some videos takes several hours to convert and shows this message.
[libvo_aacenc @ 000000000032a0a0] Bitrate 32 is extremely low, maybe you mean 32k
The bitrate parameter is set too low. It takes bits/s as argument, not kbits/sbut some videos converts normally what I want is if someone has done some code that converts faster and is lighter in player jwplayer
ffmpeg -i discovery_channel.webm -ar 22050 -ab 32 -f mp4 -s 640x240 -preset ultrafast video240.mp4
ffmpeg -i discovery_channel.webm -ar 22050 -ab 32 -f mp4 -s 640x360 video360.mp4
ffmpeg -i FIDELIDADE.mp4 -ar 22050 -ab 32 -f flv -s 640x720 -preset ultrafast video720.mp4
ffmpeg -i FIDELIDADE.mp4 -s hd720 -c:v libx264 -crf 23 -c:a aac -strict -2 video720.mp4
ffmpeg -i discovery_channel.webm -s hd720 -c:v libx264 -crf 23 -c:a aac -strict -2 video360.mp4the last code I like most because it makes the conversion from vertical to 720 pixels, and does nothing in the horizontal video.
I tested several codes, when some take too much when video with the extension "webm"
anyway if someone has a good code that works in jwplayer and is unversão serves to any video.
-
Adding a border to ffmpeg video [ffmpeg-python]
17 décembre 2019, par GRSI am making a xmas card and I need to embed the video inside a card on the right (inside the border) and have some text displayed on the left.
For simplicity, let’s assume I have a box with a hole which is transparent. I would like to display the video inside that hole.
I am using
ffmpeg-python
and it would be great to see examples of how it can be achieved. It’s also fine to post a native ffmpeg solution, although there are some example of that I believe already.From what I understand, I need to always start with a master node e.g. the biggest node, and place the video inside the hole.
However, when I try something like :
import ffmpeg
in_file = ffmpeg.input('video.mp4')
border_box = ffmpeg.input('box.png')
(
ffmpeg.overlay(
border_box, in_file, x=50, y=50
)
.output('out.mp4')
.run()
)It doesn’t work. But vice versa, e.g. putting a border box inside the video doesn’t work as it overlays borders of the video.
What I think needs to be done
- Create an infinite video from a static
box.png
- Overlay, while scaling both streams appropriately
- Create output
Here is what I’m trying to achieve :
The reason for transparency is because it’s not actually a rectangle. I could place a video inside a heart shape etc.
- Create an infinite video from a static