
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (96)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site
Sur d’autres sites (6885)
-
FFMPEG : How do I maintain the aspect ratio of various images used in a slideshow ?
7 mars 2019, par Kimberly WI’m just starting out with FFMPEG and trying to use it to make a slideshow. Ideally, I’d like to get it where I can input an arbitrary number of images, and each image is shown for (example) 2 seconds and them moves on to the next. Each image also maintains it’s original aspect ratio and is not stretched in any way (they can of course be scaled up/down to fit the resolution of the output video).
I started off with a basic command like the following.
ffmpeg -r 1/9 -pattern_type glob -i "*.jpg" -c:v libx264 -y -pix_fmt yuv420p -vf scale="720:trunc(ow/a/2)*2" out.mp4
In this example, the first image is a wide (landscape) image and some of the others are tall (portrait) images. The portrait ones get squished in output video. Also the images aren’t displayed for equal amount of times.
A couple of problems I’ve been running into :
- There’s an error for
width not divisible by 2
, because the images can be literally any random width. To resolve that, I’ve been trying various-vf
options I’ve found through googling (like the one above). They take care of the error, but don’t solve my aspect ratio issue. - All the images seem to be stretch or squished to fit the dimensions of the first input image. In reality, the images are of various different dimensions (like frames in a comic book). There’s no pattern to them.
Is there a
ffmpeg
command for just taking images and creating as slideshow, while preserving their original aspect ratios ? - There’s an error for
-
Java execute ffmpeg commands with (pipe) "... -f nut - | ffmpeg -i - ..." just hangs
18 mars 2019, par user3776738I can’t get this to run,because java just waits for ffmpeg. But ffmpeg doesn’t give an input- nor an error stream. It just runs, but doing nothing.
The output of "System.out.println("command :.." insert into bash just runs fine as expected.So there is nothing wrong with the ffmpeg syntax.
Here’s the code.
package mypackage;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.imageio.ImageIO;
/**
*
* @author test
*/
public class ffmpeg_hang {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException, InterruptedException {
String INPUT_FILE="/path/to/media";
String FFMPEG_PATH="/path/to/ffmpegFolder/";
for(int i=0;(i+4)<40;i+=4){
String[] ffmpeg_pipe = new String[]{
FFMPEG_PATH + "ffmpeg_4.1.1",
"-ss",(i+""),"-t", "4",
"-i", INPUT_FILE,
"-ac", "1", "-acodec", "pcm_s16le", "-ar", "16000",
"-f","nut","-","|",
FFMPEG_PATH + "ffmpeg_4.1.1",
"-i","-",
"-lavfi", "showspectrumpic=s=128x75:legend=disabled:saturation=0:stop=8000",
"-f","image2pipe","pipe:1"};
System.out.println("command: "+String.join(" ", ffmpeg_pipe));
Process p;
//ffmpe wav->pipe->spectrogra->pipe->java
p = Runtime.getRuntime().exec(ffmpeg_pipe);
StringBuilder Boxbuffer = new StringBuilder();
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String line = "";
while ((line = reader.readLine()) != null) {
Boxbuffer.append(line);
}
System.out.println("ffmpeg errors->> "+Boxbuffer.toString());
p.waitFor();
BufferedImage image = ImageIO.read(p.getInputStream());
//do stuff with image
}
}
} -
How do I make my Discord Bot play mp3 files, while in a voice Channel ? (FFMPEG problem)
27 mars 2019, par João PimentaI’m trying to make a bot that joins the voice channel, plays a mp3 file from my computer, and leaves the channel afterwards.
It "does" work, joins, leaves, but it doesn’t plays any sound, sometimes it produces static-like noises though, which made me think it is a FFMPEG problem.
I’m on a ubuntu 16.04.
I have tried changing the way I show the function what the path is for my .mp3 file. I came to the conclusion that
('/home/user/djsBot/01.mp3');
is the correct way to do it (the documentation asks for an absolute path), because I thought it wasn’t able to locate my file.I have also tried uninstalling and installing ffmpeg-binaries, same for node-opus, both of which give me moderate vulnerability reports (not sure what this means) and tell to run
npm audit fix
.I’m somewhat new to ubuntu, and a complete beginner on JS and Node.JS, so any tips or clarification are welcome. :)
client.on('message', (msg) => {
if (msg.content === '1') { // user types '1' to play a sound
if (msg.member.voiceChannel) {
msg.member.voiceChannel.join() // bot joins user's channel
.then(connection => {
const dispatcher = connection.playFile('/home/user/djsBot/01.mp3');
dispatcher.on("end", end => {
msg.member.voiceChannel.leave();
});
}).catch(err => {
console.log(err);
});
}
else {
msg.channel.send(`You must be in a Voice Channel for me to talk to you, ${msg.author.username}!`);
}
}
});