
Recherche avancée
Autres articles (54)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (8872)
-
how to set ffmpeg bitrate, frame per second when scalling from low to high resolution/ high to low
21 janvier 2015, par user2303069I’m developing a video sharing app for mobile device users. I noticed if I convert video with ffmpeg from a low(ex 240x320) to a higher resolution(ex 480x-1) the video looses quality and also there is no sound at the end. My question to you is how should I filter(how many fps,bitrate ect) the converted file ? In terms of parameters, how should I convert to make sure the video comes out in good quality at it’s destination(the user who will play it on their mobile device[Android/BlackBerry]).
Here is my current code(java) :
/************************ CONVERTING TIME *************************
method to convert video-clip
*/
if(sn.toString().trim().startsWith("<>")){
String info=sn.toString().trim().substring(2);
String scale=info.substring(0, info.indexOf("."));
String width=scale.substring(0, scale.indexOf("x"));
String name=info.substring(info.indexOf(".")+1, info.length());
String to = null;
String from;
try{
//calculate to and from
to=name.substring(0, name.indexOf("$"));
from=name.substring(name.indexOf("$")+1, name.lastIndexOf("$"));
gui.textArea1.append("\nStart converting...: to="+to+" from="+from+" fileName="+name);
}catch(NullPointerException npe){
gui.textArea1.append("\nNullpointer in calculate name in converting: "+npe.getMessage());
}
final Path videoIn = Paths.get("c:\\wamp\\www\\iclips\\videoMessages\\"+name);
final Path encodingFile = Paths.get("c:\\wamp\\www\\iclips\\videoMessages\\scaled-"+name);
final Path errorFile = Paths.get("c:\\ffmpeg\\bin\\error.txt");
String pro;
int w=Integer.parseInt(width);
if(w<=240){
pro="baseline";
}else if(w>240&&w<=480){
pro="main";
}else if(w>480){
pro="high";
}else{
pro="baseline";
}
//int retCode;
try {
Files.deleteIfExists(encodingFile);
Files.deleteIfExists(errorFile);
final ProcessBuilder pb
= new ProcessBuilder("c:\\ffmpeg\\bin\\ffmpeg.exe",
"-i", videoIn.toString(),
"-y",
"-vf", "scale="+width+":-1",
// "-pix_fmt","yuv420p",
"-vcodec", "libx264",
"-vprofile", pro,
"c:\\wamp\\www\\iclips\\videoMessages\\scaled-"+name
); //or other command....
pb.redirectError(errorFile.toFile());
pb.redirectOutput(encodingFile.toFile());
final Process p = pb.start();
try {
p.waitFor();
if(p.exitValue()==0){
gui.textArea1.append("\n+++++++++++++Vic-^clip converted successfully:"
+ " ExitValue=["+String.valueOf(p.exitValue())+"] ++++++++++++++");
if(Files.deleteIfExists(videoIn)){
gui.textArea1.append("\n"+videoIn.toString()+" deleted!");
}
sendMsg("Scalling successfull:-) Video-clip name=scaled-"+name+"_", "\nSent scaled successfull "+username);
NotifyClientOfScaledVideoMessage(to,"^scaled-"+name+"_");
}else{
gui.textArea1.append("\nSomething went wrong with process-convert: ExitValue="+String.valueOf(p.exitValue()));
sendMsg("Unable to scale video, try again._", "\nSent scaled failed to "+username);
}
} catch (InterruptedException e) {
gui.textArea1.append("\nInterrupted process convert: "+e.getMessage());
}
} catch (IOException e) {
// deal with e here
gui.textArea1.append("\nIOException in Convert Video: "+e.getMessage());
}
}Thank you very much.
-
Trimming a video from URL without retrieving the whole file [on hold]
27 mars 2016, par Shlomi UzielI have implemented a service which is given a URL of a movie file and a start time indicator. Then I trim a length of a maximum of 1 minute from that period onwards.
The process is done in a server by calling a command with ProcessBuilder :ffmpeg -accurate_seek -ss hh:mm:ss.sss -t 60 -i "url" -c:v copy -c:a copy outputPath
However, some video files have their metadata in the end of the file.
Since the videos are stored in a remote URL, I cannot manipulate them without retrieving them fully (e.g. by using -movflags +faststart).Is there a way to seek to the given point and trim the video without prefetching the whole file ?
-
how to use FFMpeg in android with easy possible way ? with Gradle in android studio for videos concatenation
12 avril 2016, par Amna MirzaI am working on video editing in android. After alot of research and
development the only possible solution for real time video editing
found is FFMpeg (Other libraries like Vitamio just impose change
on video while running instead of changing the video). Want to find
soltuion where FFMpeg can easily integrate into android studio
project. Want to do Crop, trim, concatenation and other possible
process on video.