
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (105)
-
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 -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (8468)
-
ffmpeg returns "method SETUP failed : 404 Not Found"
1er juillet 2019, par AlexWe’re using ffmpeg (build ffmpeg-20190628-098ab93-win32-static) to take a snapshot from camera RTSP streams on a Win 10 system. On some cameras, we’re getting this error :
[rtsp @ 06813ac0] method SETUP failed: 404 Not Found
rtsp://username:password@example.com: Server returned 404 Not FoundHere’s an example command we use :
ffmpeg -y -i rtsp://username:password@example.com -vframes 1 -pix_fmt yuvj420p
-vf select='eq(pict_type\,I)' -q:v 1 _test.jpgHowever, VLC can load the same stream (we can’t use VLC, though) from the same machine. Additionally, we’ve opened the firewall to ffmpeg (it popped up the two firewall dialogs and we allowed it through).
We’ve found posts on the
DESCRIBE
error but nothing onSETUP
. Any help is appreciated. Thank you.Update : In VLC, that RTSP stream asks for credentials twice for some reason. Wondering if that’s the cause.
-
java.io.IOException : Cannot run program "usr/bin/ffmpeg " : error=2, No such file or directory
8 juin 2021, par Madan MadanI am experiencing errors when executing ffmpeg command from java program in Ubuntu server. When I execute in putty it executes successfully but from java it gives me the exceptions of



java.io.IOException: Cannot run program "/usr/bin/ffmpeg ": 
error=2, No such file or directory




My Code below :



public String convert3gpTomp4(File contentFile, String filename) {
 String[] cmd = new String[6];
 filename = StringUtils.substringBefore(filename, "."); 
 cmd[0] = "/usr/bin/ffmpeg ";
 cmd[1] = "-y ";
 cmd[2] = "-i ";
 cmd[3] = contentFile.getPath();
 cmd[4] = " -acodec copy ";
 String myfilename = filename +"eg.mp4";
 cmd[5] = contentFile.getParent() + "/" + myfilename; 

 if (execute(cmd)){
 return myfilename;
 }else{ 
 return null;
 }

 }
}

public boolean execute(String[] cmd){
 try{
 Runtime rt= Runtime.getRuntime();

 Process proc = rt.exec(cmd);

 StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR");
 StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT");
 errorGobbler.start();
 outputGobbler.start();

 int exitVal = proc.waitFor();
 String sb = outputGobbler.sb.toString();
 String eb = errorGobbler.sb.toString();

 System.out.println("Command Exceute Exit value: " + exitVal);

 proc.destroy();

 return true;
 }
 catch(java.io.IOException e ){System.out.println("IOException "+e);e.printStackTrace();}
 catch(java.lang.InterruptedException e){}

 return false;

}




Output of ffmpeg command :



/usr/bin/ffmpeg -y -i /mydata/clip1.3gp -acodec copy /mydata/clip1eg.mp4




When I run above command in putty , it executes successfully but from Java program.



In the program, I also tried with the following but no success.



usr/bin/ffmpeg
/bin/ffmpeg
ffmpeg
/root/usr/bin/ffmpeg




Please let me know where I am doing wrong.



Thanks,


-
How to fix "Non-monotonous DTS in output stream 0:1" when trying to convert a m3u8 file into a mp4 using ffmpeg
23 mars 2019, par Alessandro AutieroI’m currently coding a desktop util that downloads Twich Clips if they meet some requirements. As the twitch api gives as a response a m3u8 file, I have to convert it into a mp4. To do with I’m executing a cmd command through my Java application using the ProcessBuilder API built into Java. The command works fine, but sometimes I get a buggy video that has broken frames and audio. Here’s my code :
public static void convertFile(File input, File output) {
String command = "ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -vsync 2 -i \"" + input.getAbsolutePath() + "\" -c copy " + "\"" + output.getAbsolutePath() + "\"";
System.out.println("______________________________________________________");
System.out.println("Converting file...");
System.out.println("Using as input " + input.getAbsolutePath());
System.out.println("Using as output " + output.getAbsolutePath());
System.out.println("Using as command: " + command);
System.out.println("______________________________________________________");
setHasDone(false);
ProcessBuilder pb = new ProcessBuilder();
pb.command(command.split(" "));
pb.redirectOutput(ProcessBuilder.Redirect.INHERIT);
pb.redirectError(ProcessBuilder.Redirect.INHERIT);
Process process;
try {
process = pb.start();
}catch (IOException e){
e.printStackTrace();
return;
}
while (process.isAlive()){
setHasDone(false);
}
setHasDone(true);
}Example of broken video :
https://youtu.be/FfFvStNl-9oWhen uploaded to youtube lot’s of the video bugs are not present, not really know why, but at the end you can clearly see what I’m talking about. Am I using ffmepg wrong ?
I posted this as none of the 1000 answers on similar posts helped me.