
Recherche avancée
Autres articles (92)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
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
Sur d’autres sites (9430)
-
ffmpeg concat two videos with different sizes encounter "do not match" error
1er juillet 2019, par baojieqhI’m trying to concat 4 mp4 files. I’m using the command below but not able to concat
ffmpeg -i L00.mp4 -i L01.mp4 \
-filter_complex "[0:v] [0:a] [1:v] [1:a] concat=n=2:v=1:a=1 [v] [a]" \
-map "[v]" -map "[a]" output.mp4Getting this error :
Input link in1:v0 parameters (size 1150x722, SAR 1:1) do not match the corresponding output link in0:v0 parameters (1158x690, SAR 1:1)
This command from this post
ffmpeg -i L00.mp4 -i L01.mp4 -filter_complex \
"[0:v]scale=1158:722:force_original_aspect_ratio=decrease,pad=1158:722:(ow-iw)/2:(oh-ih)/2[v0]; \
[1:v]scale=1158:722:force_original_aspect_ratio=decrease,pad=1158:722:(ow-iw)/2:(oh-ih)/2[v1]; \
[v0][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]" \
-map "[v]" -map "[a]" -c:v libx264 -c:a aac -movflags +faststart output.mp4getting this error :
Filter pad has an unconnected output
the dimensions of L00.mp4 is 1158 × 690, L01.mp4 is 1150 × 722.
how to fix this ?
-
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 "moov atom not found" error in ffmpeg ?
20 avril, par user10664722Well, I'm using this project to create a Telegram bot which receives URL of
.mp4
files, downloads them on server and uploads them to Telegram.

Issue


Everything works fine so far, except converting certain
.mp4
files.

For example if I use a sample
.mp4
video from https://sample-videos.com/. Then it works fine and converts it successfully.

But if I use a video from some random website which is also simple
.mp4
file, it doesn't work and throws this error :



[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible !
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] moov atom not found
data/720P_1500K_210306701.mp4 : Invalid data found when processing input