
Recherche avancée
Autres articles (66)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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, (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (14702)
-
How to scape special characters for linux, nodejs exec function
22 février 2023, par David ChavezI'm running this ffmpeg command on my linux server and while I paste it into the terminal, it works just fine but as soon as I use execPromise to run the EXACT same command, it returns an error.


const { exec } = require('child_process');
const { promisify } = require('util');
const execPromise = promisify(exec);

const encode = async ffmpegCode => {
 try {
 console.log(ffmpegCode) //Here I can see that the code is the
 //exact same one than the one that works
 //when pasted into the terminal
 await execPromise(ffmpegCode);
 return 200
 } catch (err) {
 console.log(err)
 }
}



I need
\:
to be interpreted as such. When I type it as is,\:
, the error message shows me that it interpreted it as:
which is expected.

If I pass in
\\:
, I expect it to interpret it as I need it which would be\:
but the error shows me that it interprets it as\\:
.

\\\:
is interpreted as\\:
and\\\\:
is interpreted as\\\\:
.

Part of the command passed :


...drawtext=text='timestamp \\: %{pts \\: localtime \\: 1665679092.241...


Expected command :


...drawtext=text='timestamp \: %{pts \: localtime \: 1665679092.241...


Error message :


...drawtext=text='timestamp \\: %{pts \\: localtime \\: 1665679092.241...


How do I get
/:
through to the exec function ?

-
FFMPEG in Java (runtime error)
4 juillet 2012, par EricI want to write a program that converts video into frames using FFMPEG. When I use it on the Ubuntu terminal, it works fine. But when I try to put it into the Java code, it gives me a runtime error. Did I make a mistake in my code below ?
import java.util.*;
import java.awt.*;
import java.lang.*;
import java.lang.Runtime;
import java.io.*;
import java.io.IOException;
public class ConvertVideoToImage
{
private SingletonServer ss = null;
public ConvertVideoToImage(SingletonServer ss)
{
this.ss = ss;
}
public void run()
{
convertVideo();
}
public void convertVideo()
{
try
{
Runtime rt = Runtime.getRunTime().exec("ffmpeg" + "-i" + "display.wmv" + "image%d.jpg");
}
catch(Exception e){}
}
}Edit :
I have changed the code like you suggested, but it also doesn't work. And when I Googled it, I found out that someone put the full path inside the executable and it became like this :
Runtime.getRuntime().exec("/home/pc3/Documents/ffmpeg_temp/ffmpeg -i display.wmv image%d.jpg")
BTW, thanks for the reply. I have another question. Is it possible to make a counter for FFMPEG ? I used this command in the Ubuntu terminal to make it convert a video to 30 frames/1seconds :
ffmpeg -i display.wmv image%d.jpg
This will automatically generate numbers like image1.jpg, image2.jpg, to image901.jpg. Is it possible to make a counter for this ? Because I need to count the files and control the number.
Thanks in advance.
-
How to downsample all the videos in a folder ?
23 mai 2021, par amarykya_ishtmellaI had asked this question before, I have a solution using the moviepy library. But, this is taking a lot of time.

I know that when I use ffmpeg via the terminal, the down sampling process is much faster.

command = (
 f"ffmpeg -n -i {'inputvideo_path'} -filter:v "
 f"scale={width}:{height} {{}}-c:a copy {output_path}"
 )



I am looking for the implementation in ffmeg library