
Recherche avancée
Autres articles (107)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 (18858)
-
Trying to merge audio with video using ffmpeg
9 juillet 2019, par vikramI am using
ffmpeg
for merging audio and video. I download a 4 second long MP3 file trying to merge but not successful. i am also trying to merge silent audio. It works but the video become half of its original length. The following command works for silent audio but cuts the video :String mergecmd1[]={"-i",output,"-f", "lavfi" ,"-i", "aevalsrc=0", " -
shortest", "-y", output};This is the command I have used for MP3 audio but it does not work :
String cmd1[]={"-i", output ,"-
i","/storage/emulated/0/FestiveApp/Assets/audio.mp3" ,"-codec", "copy",
"-shortest", output};
ffmpeg = FFmpeg.getInstance(Donts_Activity.this);
try {
ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {// Log.e("ffmpeg","Exaction Start") ;
}@Override
public void onProgress(String message) {}
@Override
public void onFailure(String message) {
progressDialog.dismiss();
Log.e("ok",message);
}
@Override
public void onSuccess(String message) {
new Sessionmanager(Donts_Activity.this).SetImageToVideoPath(output);
Log.e("ok","success");
progressDialog.dismiss();
Intent intent=new Intent(Donts_Activity.this,MediaRecorderRecipe.class);
startActivity(intent);
finish();
}
@Override
public void onFinish() {
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
Log.e("ffmpeg",e.toString());
progressDialog.dismiss();
}My first goal generate video with audio but video length does not be reduce or cut if i am using mp3 or silent ffmpeg audio command
-
drawtext video transition is not smooth
7 juin 2020, par Sterpu MihaiEdit : it seems that youtube displays the 00:05 transition smoothly ; however, my local VLC doesn't so I think this must be a VLC issue of some kind.



Take a look at this video : https://youtu.be/47JJnrH_LyM



It's created from a bigger video and it's composed of 3 parts :



part 1: 00:00 - 00:05 original.mp4
part 2: 00:05 - 00:10 original_with_caption.mp4
part 3: 00:10 - 00:15 original.mp4




The caption snippet was created using the following command :



ffmpeg -ss 00:05 -t 5 -i original.MP4 -vf drawtext="fontfile=C\\:/Windows/Fonts/arial.ttf:fontsize=100:fontcolor=white:x=(w-text_w)/2:y=(h-th-100):text='some random text here'" original_with_caption.MP4




The cuts from the original video were made with the following commands :



ffmpeg -y -i D:\temp\0706\caption\original.MP4 -ss 0 -t 5 -c copy D:\temp\0706\caption\ws\original_split_0_5.MP4
ffmpeg -y -i D:\temp\0706\caption\original.MP4 -ss 10 -t 5 -c copy D:\temp\0706\caption\ws\original_split_10_15.MP4




Finally, all 3 have been merged together by creating a concat.txt file containing the following :



file D:\\temp\\0706\\caption\\ws\\original_split_0_5.MP4
file D:\\temp\\0706\\caption\\original_with_caption.MP4
file D:\\temp\\0706\\caption\\ws\\original_split_10_15.MP4




and then executing the command :



ffmpeg -f concat -safe 0 -i D:\temp\0706\caption\ws\concat.txt -c copy D:\temp\0706\caption\ws\output.MP4




The problem I'm facing is that the transition from 00:05 is not smooth whereas the one from 00:10 is.
What do I need to adapt so the transition is smooth ?


-
A 'clean' way to cut an MP4 movie into two sections using FFMPEG ?
30 août 2020, par Peter in JapanI am attempting to use FFMPEG to make a script that can easily split a short MP4 movie with sound into two pieces at a certain point. I've searched through what feels like hundreds of posts to try to find "the" answer, but most of my attempts end up with poor results, broken video files that cause my video play to freeze, and so on. I am attempting to make a script that allows me to easily cut a short anime movie (something grabbed from Twitter or some other short source) and cut it into two sections, so it can be under the 2:20 Twitter time limit, or to cut out some scene I don't want to show my followers.


The issue is that FFMPEG is good at cutting videos into segments, but bad at know where keyframes are, so most videos have two seconds of blank video at the front before some keyframe appears, which looks terrible.


One example I found that works well is below, which cuts any mp4 into a bunch of chunks of n second size (six seconds in the example below). Source and documentation for this is https://moe.vg/3b8eNTs


ffmpeg -i seitokai.mp4 -c:v libx264 -crf 22 -map 0 -segment_time 6 -reset_timestamps 1 -g 30 -sc_threshold 0 -force_key_frames "expr:gte(t,n_forced*1)" -f segment output%03d.mp4


This code works great, at least allowing me to access the "left" side of a video that I want, in this case a six-second segment I want. Can anyone tell me how to accomplish the above, but starting at the 13-second period in said video, so I could get right "right" (not starting from 00:00:00) video cut cleanly ?


Alternately, a single, unified and elegant way to split (re-encode) an MP4 into two segments that forces keyframes from the very beginning of the cut pieces would be wonderful. I can't believe how hard this seems to be.


Thanks in advance for any help you can give ! Greetings from rural Japan !