
Recherche avancée
Autres articles (69)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
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 (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (11399)
-
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.
-
Anomalie #3811 (Nouveau) : Sur le Wiki de Contrib = versionning apparent incorrect !
24 juillet 2016, par YannX DYXBonsoir,
au passage /je rajoutais une suggestion sur le Carnet/ j’ai aperçu un soulignement pas exact lors de l’examen de versionning d’article :
https://contrib.spip.net/ecrire/?exec=article&id_article=4088Voici le texte exact qui avait été rajouté :
viser l’intégration de http://www.templatemo.com/tm-455-vi... (avec une sous-couche de mapping < ;code> ;.less< ;/code> ; pour faire correspondre les styles spipr/Z-core aux styles de Visual Admin)..
L’image d’extrait prend en fait deux modifications : voir piece jointe...
pour le lien [1]Serait-ce dû à la présence de la balise cachée
.less!!
dans le texte inséré ?? -
A Comprehensive Guide to Robust Digital Marketing Analytics
15 novembre 2023, par Erin — Analytics Tips