Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (42)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike 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 (4456)

  • Unable to convert video to mp4 formate

    11 avril 2017, par Usman Saeed

    I have to convert video (any format) to mp4 format
    I am using this android library WritingMinds

    Here is my code

     ffmpeg = FFmpeg.getInstance(UploadVideoService.this);
               loadFFMpegBinary();

               String newVideoPath = Utils.makeAndGetFolderName(Constants.PHOTEX_VIDEO);
               File file = new File(newVideoPath + File.separator +
                       System.currentTimeMillis() + ".mp4");
               if (file.exists()) {
                   file.delete();
               }

               File fileOrignal = new File(videoFilePath);
               if (fileOrignal.exists()) {
                   try {
                       InputStream is =new FileInputStream(videoFilePath);
                       int size = is.available();
                       byte[] buffer = new byte[size];
                       is.read(buffer);
                       is.close();
                       FileOutputStream fos = new FileOutputStream(file);
                       fos.write(buffer);
                       fos.close();


                       String command = "-i " + fileOrignal.getAbsolutePath()
                               + " -c:v libx264 -c:a aac -movflags faststart " + file.getAbsolutePath();

                       execFFmpegBinary(new String[]{command});
                   } catch (Exception e) {
                       Log.d(TAG, "Exception ");
                       e.printStackTrace();
                   }

       private void loadFFMpegBinary() {
       try {
           ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
               @Override
               public void onFailure() {
                   // TODO: 11-Apr-17 Notification and toast
               }

               @Override
               public void onSuccess() {
                   super.onSuccess();




               }
           });
       } catch (FFmpegNotSupportedException e) {
           e.printStackTrace();
       }
    }

       private void execFFmpegBinary(final String[] command) {
       try {
           ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
               @Override
               public void onFailure(String s) {
                   Log.d(TAG, "onFailure " + s);
               }

               @Override
               public void onSuccess(String s) {
                   Log.d(TAG, "onSuccess " + s);
               }

               @Override
               public void onProgress(String s) {
                   Log.d(TAG, "onProgress " + s);
               }


               @Override
               public void onStart() {
                   Log.d(TAG, "onStart ");
               }

               @Override
               public void onFinish() {
                   Log.d(TAG, "onFinish ");

               }
           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           e.printStackTrace();
           // do nothing for now
           Log.d(TAG, "FFmpegCommandAlreadyRunningException ");
       }
    }

    its give these error

                                                                                   libavutil      55. 17.103 / 55. 17.103
                                                                                   libavcodec     57. 24.102 / 57. 24.102
                                                                                   libavformat    57. 25.100 / 57. 25.100
                                                                                   libavdevice    57.  0.101 / 57.  0.101
                                                                                   libavfilter     6. 31.100 /  6. 31.100
                                                                                   libswscale      4.  0.100 /  4.  0.100
                                                                                   libswresample   2.  0.101 /  2.  0.101
                                                                                   libpostproc    54.  0.100 / 54.  0.100
                                                                                 Unrecognized option 'i /storage/emulated/0/Movies/mvd.avi -c:v libx264 -c:a aac -movflags faststart /storage/emulated/0/Photex/photexVideo/1491909522363.mp4'.
                                                                                 **Error splitting the argument list: Option not found**

    04-11 16:18:43.158 11529-11529/com.photex.urdu.textonphotos D/UploadVideoService : onFinish

    I am unable to understand how to solve this !

  • How to decrypt hls video content

    16 mai 2019, par SHAH MD MONIRUL ISLAM

    My requirement is to play the encrypted hls video files from local storage in android. I have used NanoHTTPD to create and run the local server. From there I am serving the .ts an .m3u8 files. To play this video ExoPlayer need a key to decrypt the files and thus I made a url : http://localhost:4990/dataKey.

    Here is my local server class :

    import android.os.Environment;
    import android.util.Log;

    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.util.Map;

    import fi.iki.elonen.NanoHTTPD;

    public class LocalStreamingServer extends NanoHTTPD{
       public LocalStreamingServer(int port){
           super(port);

       }

       @Override
       public Response serve(IHTTPSession session){
           Log.e("req", session.getUri());

           if(session.getUri().equalsIgnoreCase("/dataKey")){

               return newFixedLengthResponse(Response.Status.OK, "txt", "what is the key?");
           }

           if(session.getUri().contains("m3u8")){
               String path = Environment.getExternalStorageDirectory().toString() + "/s3" + session.getUri();

               FileInputStream fis = null;
               File f = new File(path);
               try {
                   fis = new FileInputStream(f);
               } catch (FileNotFoundException e) {
               }
               return newFixedLengthResponse(Response.Status.OK, "m3u8", fis, f.length());
           }

           if(session.getUri().endsWith("ts")){
               String path = Environment.getExternalStorageDirectory().toString() + "/s3" + session.getUri();

               FileInputStream fis = null;
               File f = new File(path);
               try {
                   fis = new FileInputStream(f);
               } catch (FileNotFoundException e) {

               }
               return newFixedLengthResponse(Response.Status.OK, "ts", fis, f.length());
           }

           String path = Environment.getExternalStorageDirectory().toString() + "/s3/master.m3u8";

           FileInputStream fis = null;
           File f = new File(path);
           try {
               fis = new FileInputStream(f);
           } catch (FileNotFoundException e) {
           }
           return newFixedLengthResponse(Response.Status.OK, "m3u8", fis, f.length());
       }
    }

    I have transcoded the video using ffmpeg. I need to know that which data or key need to be returned when the dataKey url is called. I have the encrypted the video using these key :

    key=617D8A125A284DF48E3C6B1866348A3F
    IV=5ff82ce11c7e73dcdf7e73cacd0ef98

    I can not understand which of them are need to be returned from the datakey url. Both of them are not working. Exoplayer is sending the error message :java.security.InvalidKeyException: Unsupported key size

    can Any one help me about this ?

  • How to add subtitles to PowerPoint presentation

    5 septembre 2018, par ppdlx

    Okay, to clear things up I will say that I’m posting here because I found the answer and want to help people in future who come upon the same problem. Since PowerPoint is not the right tool to title an presentation I will tell you my way of doing this. If you can do it in PowerPoint alone, super for you but I could not do it in PowerPoint alone, therefore this way. So what I did is the following, I simply recorded the presentation and made subtitles for it and in the final I hardcoded the subtitles into the video. Here is how I did it.

    How to add subtitles to your PowerPoint presentation

    First, I downloaded the latest SnagIt software from their official website. You can have a free trial there. Click here to download SnagIt. Then using SnagIt I recorded my whole screen and played the presentation. I made a video file of the presentation. Let’s call it presentation.mp4.

    Then I downloaded my subtitle making software, an awesome open source program called Subtitle Edit from it’s official website. It’s really simple to use it and it is awesome and user friendly. It doesn’t take too long to subtitle a three minute presentation. When you are satisfied with the subtitles save them as .srt and call them whatever you like. Now we have a video file and corresponding subtitles for it.

    Now we need to hardcode the subtitles into the video file, in other words to burn the subtitles to the video. I did this using another awesome open source software called ffmpeg. See the website and download it from official ffmpeg website. Extract it somewhere and for convinience put subtitle and video file to it’s bin directory. You can put it elsewhere if you like it that way. The first command I used is to transform .srt to .ass.

    ffmpeg -i subtitles.srt subtitles.ass

    Afterwards it’s easy to make a subtitled video file with the following command :

    ffmpeg -i presentation.mp4 -vf ass=subtitles.ass presentation_subtitled.mp4

    I am not sure for the command and can’t get now to see the correct command but if it fails you can seek help on this page.

    Now that we have our presentation_subtitled.mp4 we can now trim the video to our likings.

    ffmpeg -i presentation_subtitled.mp4 -ss 00:01:00 -to 00:02:00 -c copy presentation_final.mp4

    Of course, edit the -ss and -to option, it’s the start time and the end time of your video.

    That’s it ! Now you have your presentation_final.mp4 video file where you have your presentation with subtitles. Ffmpeg is awesome because you can convert it to any format you like.

    You have some help with hardcoding subtitles on Subtitle Edit web page, but one software gave me a virus, one software didn’t work, and after trial and error this is the way that worked for me and it’s really convinied due to great open source software - Subtitle Edit and ffmpeg.