Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (43)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP 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 (...)

  • 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 (5984)

  • how to pass custom values into this Android ffmpeg method

    28 août 2014, par kc ochibili

    i am trying to call this method. but i dont know how to pass my own values into it
    Like : the output length, or FrameRate.

    The code uses some letters like "-y" "-i" which they explained without really explaining what the letters meant

    here is the method from https://github.com/guardianproject/android-ffmpeg-java/blob/master/src/org/ffmpeg/android/FfmpegController.java#L488

     /*
        * ffmpeg -y -loop 0 -f image2 -r 0.5 -i image-%03d.jpg -s:v 1280x720 -b:v 1M \
      -i soundtrack.mp3 -t 01:05:00 -map 0:0 -map 1:0 out.avi

      -loop_input – loops the images. Disable this if you want to stop the encoding when all images are used or the soundtrack is finished.

    -r 0.5 – sets the framerate to 0.5, which means that each image will be shown for 2 seconds. Just take the inverse, for example if you want each image to last for 3 seconds, set it to 0.33.

    -i image-%03d.jpg – use these input files. %03d means that there will be three digit numbers for the images.

    -s 1280x720 – sets the output frame size.

    -b 1M – sets the bitrate. You want 500MB for one hour, which equals to 4000MBit in 3600 seconds, thus a bitrate of approximately 1MBit/s should be sufficient.

    -i soundtrack.mp3 – use this soundtrack file. Can be any format.

    -t 01:05:00 – set the output length in hh:mm:ss format.

    out.avi – create this output file. Change it as you like, for example using another container like MP4.
        */

    public Clip createSlideshowFromImagesAndAudio (ArrayList<clip> images, Clip audio,  Clip out, int durationPerSlide, ShellCallback sc) throws Exception
       {

           final String imageBasePath = new File(mFileTemp,"image-").getCanonicalPath();
           final String imageBaseVariablePath = imageBasePath + "%03d.jpg";


           ArrayList<string> cmd = new ArrayList<string>();


           String newImagePath = null;
           int imageCounter = 0;

           Clip imageCover = images.get(0); //add the first image twice

           cmd = new ArrayList<string>();
           cmd.add(mFfmpegBin);
           cmd.add("-y");

           cmd.add("-i");
           cmd.add(new File(imageCover.path).getCanonicalPath());

           if (out.width != -1 &amp;&amp; out.height != -1)
           {
               cmd.add("-s");
               cmd.add(out.width + "x" + out.height);
           }

           newImagePath = imageBasePath + String.format(Locale.US, "%03d", imageCounter++) + ".jpg";
           cmd.add(newImagePath);

           execFFMPEG(cmd, sc);

           for (Clip image : images)
           {
               cmd = new ArrayList<string>();
               cmd.add(mFfmpegBin);
               cmd.add("-y");

               cmd.add("-i");
               cmd.add(new File(image.path).getCanonicalPath());

               if (out.width != -1 &amp;&amp; out.height != -1)
               {
                   cmd.add("-s");
                   cmd.add(out.width + "x" + out.height);
               }

               newImagePath = imageBasePath + String.format(Locale.US, "%03d", imageCounter++) + ".jpg";
               cmd.add(newImagePath);

               execFFMPEG(cmd, sc);


           }

           //then combine them
           cmd = new ArrayList<string>();

           cmd.add(mFfmpegBin);
           cmd.add("-y");

           cmd.add("-loop");
           cmd.add("0");

           cmd.add("-f");
           cmd.add("image2");

           cmd.add("-r");
           cmd.add("1/" + durationPerSlide);

           cmd.add("-i");
           cmd.add(imageBaseVariablePath);

           cmd.add("-strict");
           cmd.add("-2");//experimental

           String fileTempMpg = new File(mFileTemp,"tmp.mpg").getCanonicalPath();

           cmd.add(fileTempMpg);

           execFFMPEG(cmd, sc);

           //now combine and encode
           cmd = new ArrayList<string>();

           cmd.add(mFfmpegBin);
           cmd.add("-y");

           cmd.add("-i");
           cmd.add(fileTempMpg);

           if (audio != null &amp;&amp; audio.path != null)
           {
               cmd.add("-i");
               cmd.add(new File(audio.path).getCanonicalPath());

               cmd.add("-map");
               cmd.add("0:0");

               cmd.add("-map");
               cmd.add("1:0");

               cmd.add(Argument.AUDIOCODEC);
               cmd.add("aac");

               cmd.add(Argument.BITRATE_AUDIO);
               cmd.add("128k");

           }

           cmd.add("-strict");
           cmd.add("-2");//experimental

           cmd.add(Argument.VIDEOCODEC);


           if (out.videoCodec != null)
               cmd.add(out.videoCodec);
           else
               cmd.add("mpeg4");

           if (out.videoBitrate != -1)
           {
               cmd.add(Argument.BITRATE_VIDEO);
               cmd.add(out.videoBitrate + "k");
           }

           cmd.add(new File(out.path).getCanonicalPath());


           execFFMPEG(cmd, sc);

           return out;
       }
    </string></string></string></string></string></string></clip>

    so, say i want an out put video that has a

    framerate -->           2sec
    output frame size -->   480 x 480
    output lenght of-->     02:08:00
    and output file type --> .mp4

    How can i do call this method with these values ?
    and how do they relate to the letters used above.

  • cliping a webm file using moviepy and ffmpeg parameters

    19 février 2015, par headdetective

    Using moviepy, I am trying to trim a section of a webm file like this :

    my_file.write_videofile(name, codec = 'libvpx')

    Of course, I have already defined the beginning and end of the clip, etc. The code is returning the segment I want, however, I am noticed a decrease in the quality of the file.
    I am not resizing or constraiing the file size anywhere, so I don’t understand why the clip has an inferior quality compared to the original.

    There are some parameters that I could play with, which I suspect are set as defaults in moviepy to speed of video manipulation, but the documentation of moviepy does not say anything about them :

    ffmpeg_params :

    Any additional ffmpeg parameters you would like to pass, as a list of
    terms, like [‘-option1’, ‘value1’, ‘-option2’, ‘value2’]

    Anybody outhere is familiar with the right parameters to keep the quality of the original file ? As an alternative, is anybody is familiar with any other library to trim webm files ?

    Below are two pics showing the difference in quality. The first one is a frame of the trimmed file, the second one is approximately the same frame, for the original file.

    enter image description here

    enter image description here

    Thank you

  • How can I add custom metadata to an MXF using FFMPEG ?

    15 septembre 2021, par Zak44

    I am trying to add custom metadata to an MXF in FFMPEG. I can get the syntax to go through and then my metadata to be listed during the command output, but when I later run FFMPEG on the file to check the metadata is not there. Only the material_package_name will stick. Is this not possible with MXF ?

    &#xA;

    Command :

    &#xA;

    ffmpeg -i Test.mp4 -vf scale=1920:1080 -an -metadata project="TEST PROJECT" -metadata comment="Test Comment" -metadata artist="Test" -metadata material_package_name="TEST VID CLIP" -b:v 36M -f mxf_opatom "TEST_VID_CLIP.mxf"&#xA;

    &#xA;

    Output from command :

    &#xA;

        Output #0, mxf_opatom, to &#x27;TEST_VID_CLIP.mxf&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    project         : TEST PROJECT&#xA;    comment         : Test Comment&#xA;    artist          : Test&#xA;    material_package_name: TEST VID CLIP&#xA;    encoder         : Lavf58.76.100&#xA;  Stream #0:0(eng): Video: dnxhd (DNXHD), yuv422p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 36000 kb/s, 24 fps, 24 tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-01T17:19:54.000000Z&#xA;      handler_name    : ?Mainconcept Video Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc58.134.100 dnxhd&#xA;

    &#xA;

    Output running a check on file :

    &#xA;

    ffmpeg -i TEST_VID_CLIP.mxf &#xA;Input #0, mxf, from &#x27;TEST_VID_CLIP.mxf&#x27;:&#xA;  Metadata:&#xA;    operational_pattern_ul: 060e2b34.04010102.0d010201.10030000&#xA;    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000&#xA;    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001&#xA;    company_name    : FFmpeg&#xA;    product_name    : OPAtom Muxer&#xA;    product_version_num: 58.76.100.0.0&#xA;    product_version : 58.76.100&#xA;    application_platform: Lavf (darwin)&#xA;    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002&#xA;    toolkit_version_num: 58.76.100.0.0&#xA;    material_package_umid: 0x060A2B340101010501010D00136428C052947134A46428C00052947134A46400&#xA;    material_package_name: TEST VID CLIP&#xA;    timecode        : 00:00:00:00&#xA;  Duration: 00:01:05.71, start: 0.000000, bitrate: 36176 kb/s&#xA;  Stream #0:0: Video: dnxhd (DNXHD), yuv422p(tv, bt709/unknown/unknown, progressive), 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc&#xA;    Metadata:&#xA;      file_package_umid: 0x060A2B340101010501010D00136428C052947134A46428C00052947134A46401&#xA;At least one output file must be specified&#xA;

    &#xA;