
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 (106)
-
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 -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
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 (9533)
-
Why is ffmpeg not working under systemd timer
5 juin 2020, par Syed Umairi am running a script to take screen shots from a video with ffmpeg it is working if a run it by have but not working when run by the systemd timer



[Unit]
Description= take ss 

[Service]
Type=simple
ExecStart=/var/www/run.sh
StandardError=journal
User=root




and the timer



[Unit]
Description= take ss 

[Timer]
OnCalendar=*:0/15
Persistent=true

[Install]
WantedBy=timers.target




this is the code in the bash script



for ($thum = 0; $thum <= 7; $thum++)
 {
 $count = $thum * 200;
 shell_exec("ffmpeg -ss $count -i $file -vframes 1 -q:v 1 $thum.jpg");
 }




the
$file
is the full path to the file

-
FFmpeg for Aws Lambda Services connect command
26 décembre 2018, par maniramI am using ffmpeg Services but my question ffmpeg connect to AWs Lambda Services Api and command how to connect this service.
bellow command ffmpeg how to connect Aws lambda.WITHOUT AD CMD=> ffmpeg -probesize 100M -analyzeduration 20M -re -i "http://18.196.88.36:8080/hls/zola-gixoce-wuri-zayacu.m3u8" -strict -2 -c:v libx264 -pix_fmt yuv420p -c:a aac -map 0:0 -map 0:1 -ar 44100 -ab 128k -ac 2 -b:v 2567k -flags +global_header -bsf:a aac_adtstoasc -bufsize 1000k -f flv "rtmp ://a.rtmp.youtube.com/live2/8wm3-meku-7qgj-eyg8"
-
Java, Linux : 2nd call to ffmpeg via Runtime not getting executed
21 février 2018, par We are BorgI am trying to convert video to gif. I am using ffmpeg and imagemagick to achieve this. The first step is successful where a mp4 is created, but the 2nd process is not getting called. If I run the command manually, then it all works fine, but not via code. What am I doing wrong ? Thank you.
Error log :
First path is ffmpeg -i /media/attachment/test/groupattach/200/5mpnkfiq4f635m2j663sb5dne -ss 05 -t 10 -c copy /media/attachment/test/groupattach/200/tsr8svjtvqa4alm5vls9v0pgc4.mp4
Third path is ffmpeg -i /media/attachment/test/groupattach/200/tsr8svjtvqa4alm5vls9v0pgc4.mp4 -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -loop 0 - /media/attachment/test/groupattach/200/f9b4cmkhhpm180sau7f7j7j1ai.gif
java.io.FileNotFoundException: File '/media/attachment/test/groupattach/200/f9b4cmkhhpm180sau7f7j7j1ai.gif' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1763)
at com.myproj.spring.service.GroupAttachmentsServiceImpl.createFilePreviewForFiles(GroupAttachmentsServiceImpl.java:4157)
at com.myproj.spring.service.GroupAttachmentsServiceImpl.addAttachment(GroupAttachmentsServiceImpl.java:662)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)Service layer where I get error :
if (extension.toLowerCase().equals("mp4")) {
String videoPath = createPreviewForVideos(attachId, fileBytes, filesPath, fileName);
return FileUtils.readFileToByteArray(new File(videoPath));
}This happens because the 2nd part of code is not executed posted below.
private String createPreviewForVideos(int attachId, byte[] fileBytes, String filePath, String fileName) {
try {
GroupAttachments groupAttachments = this.groupAttachmentsDAO.getAttachmenById(attachId);
String gifLocation = msg + "groupattach/" + groupAttachments.getGroupId() + "/";
String videoName = String.valueOf(new BigInteger(130, random).toString(32)) + ".mp4";
String gifName = String.valueOf(new BigInteger(130, random).toString(32)) + ".gif";
String firstpath = "ffmpeg -i " + filePath + " -ss 05 -t 10 -c copy " + gifLocation + videoName;
System.out.println("First path is " + firstpath);
Process process = Runtime.getRuntime().exec(firstpath);
process.waitFor();
process.destroy();
String thirdPath = "ffmpeg -i " + gifLocation + videoName + " -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -loop 0 - " + gifLocation + gifName;
Process thirdProcess = Runtime.getRuntime().exec(thirdPath);
thirdProcess.waitFor();
thirdProcess.destroy();
thirdProcess.destroyForcibly();
if(thirdProcess.isAlive()){
thirdProcess.destroyForcibly();
}
// return gifLocation+gifName;
return secondPhaseForVideos(attachId, fileBytes, filePath, fileName, videoName, gifName);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
private String secondPhaseForVideos(int attachId, byte[] fileBytes, String filePath, String fileName, String videoName, String gifName) {
try {
GroupAttachments groupAttachments = this.groupAttachmentsDAO.getAttachmenById(attachId);
String gifLocation = msg + "groupattach/" + groupAttachments.getGroupId() + "/";
String thirdPath = "ffmpeg -i " + gifLocation + videoName + " -vf scale=320:-1 -r 10 -f image2pipe -vcodec ppm - | convert -loop 0 - " + gifLocation + gifName;
System.out.println("Third path is "+thirdPath);
Process process = Runtime.getRuntime().exec(thirdPath);
process.waitFor();
process.destroy();
groupAttachments.setFullSizePath(gifName);
this.groupAttachmentsDAO.updateAttachment(groupAttachments);
return gifLocation + gifName;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}2nd phase code never gets executed...the Runtime process. What am I doing wrong ? Thank you.