
Recherche avancée
Autres articles (67)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (15575)
-
Android ffmpeg video cut
23 juin 2021, par RauppI´m trying to edit some videos in my Android app using FFmpeg, but I´m facing some problems when I tried to take just a part of the video.



I´m using this ffmpeg compilation/lib https://github.com/WritingMinds/ffmpeg-android-java



I tried to use this command to trim/cut the video



"-y -i input.mp4 -ss 00:00:01.00 -t 00:00:15.000 -c copy output.mp4"




But with some videos I´m getting a black screen or the video just freezes. The sound works fine in all my tests.



With this command



"-y -i input.mp4 -ss 00:00:01.000 -t 00:00:15.000 -async 1 output.mp4"




Everything works fine in all my tests (video/sound) but takes too much time to generate the output file, this 15s file takes more than 2 minutes to be generated.



I tried other variations of these commands, but I always get problems with the video stream (with black screen or freezing) or takes too much time to generate the output (the user can only select 15s of the videos to send to my server)



Thanks by the help !



EDIT :



this is the part of the code that is trimming the video



String[] cmd = new String[]{"-y","-i",input,"-ss","00:00:05.000","-vcodec","copy",
 "-acodec","copy","-t","00:00:15.00","-strict","-2",output };

 final FFmpeg ffmpeg = FFmpeg.getInstance(this);
 try {
 ffmpeg.execute(cmd, new FFmpegExecuteResponseHandler() {
 @Override
 public void onSuccess(String message) {
 Log.i("VideoEditActivity", "Success " + message);
 is_video_generated_ = true;
 }

 @Override
 public void onProgress(String message) {
 Log.i("VideoEditActivity", "Progress updated " + message);
 }

 @Override
 public void onFailure(String message) {
 Log.e("VideoEditActivity", "ERROR! " + message);
 }

 @Override
 public void onStart() {
 progress_dialog_.setMessage(getString(R.string.str_video_generating));
 progress_dialog_.show();
 }

 @Override
 public void onFinish() {
 Log.i("VideoEditActivity", "Finished");
 progress_dialog_.hide();

 Intent intent = new Intent(getApplicationContext(), VideoPlayActivity.class);
 intent.putExtra("media", edited_video_path_);
 startActivity(intent);
 }
 });
 } catch (FFmpegCommandAlreadyRunningException e) {
 e.printStackTrace();
 }




This is the original file : [https://drive.google.com/file/d/0BzqJL_nNetbRYmxvcTljanJwR00/view?usp=sharing][1]



And this the output : 0BzqJL_nNetbReENjRGMtVXQ5VHM/view ?usp=sharing (stack overflow does not allow me to add more than 2 links)


-
ffmpeg - how to build paths on windows
7 décembre 2016, par ThomasI am building a command line for ffmpeg and I am going crazy. It seems like the tool has an abnormal path system and I can’t find any reliable documentation.
Using Windows, I have a movie file at : "d :\test\movie.mp4"
if we take the following command :fmpeg -i <myfile> -vf "select=gt(scene\,0.5), scale=640:360" -vsync vfr thumbnails%03d.png
</myfile>I tried to build the the following ways :
d:\test\movie.mp4
d:\\test\movie.mp4
d\\:\\test\movie.mp4
d:\\:/test/movie.mp4It seems like only the 4th one work when called from a C# program, but doesn’t work in command line.
Is there any documentation that explains this properly ? from what I gather, the drive letter has to be followed by double slashed then the column and I can’t figure out the reason.
-
Is it possible to capture images like time lapse using AFORGE FFMPEG ?
4 juillet 2022, par jom12I am trying to make a time lapse video using AFORGE FFMPEG.


I want to capture a video frame every 10 units.


VideoFileReader reader = new VideoFileReader();
 reader.Open(@"\drive.mp4");
 for (long i = 0; i < reader.FrameCount; i++)
 {
 if (i % 10 == 0)
 {
 Bitmap videoFrame = reader.ReadVideoFrame();
 videoFrame.Save(@"test\img_" + (i / 10).ToString() + ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
 }
 }



However, this code only saved 1 frame as an image instead of 10 frames.


Is there a better way to capture images 10 frames at a time ?