Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (38)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à 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) (...)

Sur d’autres sites (5934)

  • avfilter/pthread : use slice threading from avutil

    12 juillet 2017, par Muhammad Faiz
    avfilter/pthread : use slice threading from avutil
    

    Benchmark (with 2 cpus) :
    ./ffmpeg -f rawvideo -s 1280x720 -t 1000 -i /dev/zero \
    -filter_threads $threads -vf transpose=clock -f null null
    threads=2 :
    old : 31.129s 31.446s 31.574s
    new : 29.602s 29.636s 29.656s
    threads=3 (nb_threads = nb_cpus + 1 is bad choice at this situation) :
    old : 40.132s 40.279s 40.279s
    new : 39.308s 39.570s 39.693s
    threads=4 :
    old : 31.306s 31.366s 31.654s
    new : 30.231s 30.360s 30.451s

    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libavfilter/pthread.c
  • What are the commands for FFmpeg extract images binary command

    19 juillet 2017, par Tix

    My ffmpeg for android studio is compiled using this :

    compile ’com.writingminds:FFmpegAndroid:0.3.2’

    In the code below i have this line of code :

    String[] complexCommand = "-i", yourRealPath, "-c:v", "libx264",
    "-crf", "22", "-map", "0", "-segment_time", "6", "-g", "9",
    "-sc_threshold", "0", "-force_key_frames", "expr:gte(t,n_forced*6)",
    "-f", "segment", dest.getAbsolutePath()
     ;

    Things i want to know :

    1. I’d like to know what those inputs(i.e. "-sc_threshold", "-g", "-crf") are, and what are their functions.
    2. If a video has 30fps and is 5 seconds long, are there 150 frames, if so is ffmpeg able to extact all 150 ?

    This is my code :

        /**
        * Command for extracting images from video
        */
       private void extractImagesVideo(int startMs, int endMs) {
           File moviesDir = Environment.getExternalStoragePublicDirectory(
                   Environment.DIRECTORY_PICTURES
           );

           String filePrefix = "extract_picture";
           String fileExtn = ".jpg";
           String yourRealPath = getPath(MainActivity.this, selectedVideoUri);

           File dir = new File(moviesDir, "VideoEditor");
           int fileNo = 0;
           while (dir.exists()) {
               fileNo++;
               dir = new File(moviesDir, "VideoEditor" + fileNo);

           }
           dir.mkdir();
           filePath = dir.getAbsolutePath();
           File dest = new File(dir, filePrefix + "%03d" + fileExtn);


           Log.d(TAG, "startTrim: src: " + yourRealPath);
           Log.d(TAG, "startTrim: dest: " + dest.getAbsolutePath());

           String[] complexCommand = {"-y", "-i", yourRealPath, "-an", "-r", "1/2", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, dest.getAbsolutePath()};

           execFFmpegBinary(complexCommand);

       }

    /**
        * Executing ffmpeg binary
        */
       private void execFFmpegBinary(final String[] command) {
           try {
               ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
                   @Override
                   public void onFailure(String s) {
                       Log.d(TAG, "FAILED with output : " + s);
                   }

                   @Override
                   public void onSuccess(String s) {
                       Log.d(TAG, "SUCCESS with output : " + s);
                       if (choice == 1 || choice == 2 || choice == 5 || choice == 6 || choice == 7) {
                           Intent intent = new Intent(MainActivity.this, PreviewActivity.class);
                           intent.putExtra(FILEPATH, filePath);
                           startActivity(intent);
                       } else if (choice == 3) {
                           Intent intent = new Intent(MainActivity.this, PreviewImageActivity.class);
                           intent.putExtra(FILEPATH, filePath);
                           startActivity(intent);
                       } else if (choice == 4) {
                           Intent intent = new Intent(MainActivity.this, AudioPreviewActivity.class);
                           intent.putExtra(FILEPATH, filePath);
                           startActivity(intent);
                       } else if (choice == 8) {
                           choice = 9;
                           reverseVideoCommand();
                       } else if (Arrays.equals(command, lastReverseCommand)) {
                           choice = 10;
                           concatVideoCommand();
                       } else if (choice == 10) {
                           File moviesDir = Environment.getExternalStoragePublicDirectory(
                                   Environment.DIRECTORY_MOVIES
                           );
                           File destDir = new File(moviesDir, ".VideoPartsReverse");
                           File dir = new File(moviesDir, ".VideoSplit");
                           if (dir.exists())
                               deleteDir(dir);
                           if (destDir.exists())
                               deleteDir(destDir);
                           choice = 11;
                           Intent intent = new Intent(MainActivity.this, PreviewActivity.class);
                           intent.putExtra(FILEPATH, filePath);
                           startActivity(intent);
                       }
                   }

    Code downloaded from :

    https://github.com/bhuvnesh123/FFmpeg-Video-Editor-Android

  • Compress video like whatsapp

    10 juillet 2021, par user1079425

    I'm not an expert in Video Editing but what I want to understand the logic of Whatsapp video processing.

    &#xA;&#xA;

    First of all I have noticed that whatever the file is, Whatsapp sets the limit of Uploaded videos to 16MB, after which whatsapp crops the video to not exceed the limit. is this a convention or it's a personal choice ?

    &#xA;&#xA;

    Secondly, When a video is recorded using the Camera it's not compressed by default, so whatsapp compresses it using FFMPEG I guess, and it takes no time. (tried for a video of 1min 1920x1080 with 125MB of size, becomes 640x360 with 5MB of size in no time, and the upload starts automatically).. how may they do this ? and why the choice of 640x360, It seems to me very fast for 2 asynchronous tasks : Compression + Upload.

    &#xA;&#xA;

    When I run the compression command ffmpeg -y -i in.mp4 -codec:v libx264 -crf 23 -preset medium -codec:a libfdk_aac -vbr 4 -vf scale=-1:640,format=yuv420p out.mp4 it takes approximatively 1 min and the video is being rotated !! :D

    &#xA;&#xA;

    Finally, when we download a video from Youtube it's already compressed (I guess) and whatsapp doesn't even try to compress it. So I think that it automatically detects thats the video is compressed. How can we detect this ?

    &#xA;&#xA;

    Thank you.

    &#xA;