Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (8)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

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

Sur d’autres sites (2438)

  • ffmpeg - multiple output with thumbnails

    9 décembre 2016, par Thomas

    I would like ffmpeg to do the following :

    • read an input mp4 (-i movie.mp4)
    • skip the first 5 seconds (-ss 5)
    • find scene changes and display the frame numbers (-vf "select=gt(scene\, 0.4, showinfo))
    • output #1 - a gif file (output.gif)
    • output #2 - a contact sheet with all the thumbnails (-vf "select scale=320 :-1, tile=12x200" thumbnails.png)

    This will generate the thumbnails :

    ffmpeg -hide_banner -i d:/Test/movie01.mp4 -ss 5 -vf "select=gt(scene\,0.4), showinfo, scale=320:-1, tile=12x200" -vsync 0 thumbnails%03d.png

    this will generate the gif :

    ffmpeg -hide_banner -i d:/Test/movie01.mp4 -ss 5 -vf "select='not(mod(n,60))',setpts='N/(30*TB)', scale=320:-1" -vsync 0 output.gif

    I would like to do both at once with 2 more features :

    • set fps and resolution for the gif ; I would like the gif to represent the whole movie in X seconds, at Y fps (I know the duration of the input movie so I can calculate how often a frame needs to be captured)

    • set the width only for the thumbnail picture (tile=12 for example) and let ffmpeg determine the appropriate height

    I have tried to compose a command line from what I read on this page : https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs, using the split / map commands but I couldn’t get it to work

  • How to use FFmpeg(v 4.0) HwAccell in Android

    21 novembre 2018, par 심상원

    I’m making an app that uses FFmpeg on Android to show the screen.

    I have a few questions to ask you.

    std::vector <avhwdevicetype> GetSupportHwDeviceType ()
    {
       unsigned int idx {};
       std::vector <avhwdevicetype> hwDevTypes;

       AVHWDeviceType hwDevType = AVHWDeviceType::AV_HWDEVICE_TYPE_NONE;
       while ((hwDevType = av_hwdevice_iterate_types (hwDevType)) ! = AVHWDeviceType::AV_HWDEVICE_TYPE_NONE)
       {
           __android_log_print (ANDROID_LOG_DEBUG, __func__, "[Index% d]", idx ++);
           __android_log_print (ANDROID_LOG_DEBUG, __func__,
                           "[Support Device Name% s]", av_hwdevice_get_type_name (hwDevType));

           hwDevTypes.push_back (hwDevType);
       }

       return hwDevTypes;
    }
    </avhwdevicetype></avhwdevicetype>

    I would like to use hardware acceleration with the above function, and as a result I could not find any type.

    At https://trac.ffmpeg.org/wiki/HWAccelIntro, it says that Android can use MediaCodec. Why can not I retrieve any type from Android NDK with GetSupportHwDeviceType () ?

    The Configure argument used while building FFmpeg for Android.

    --disable-asm
    --enable-cross-comile
    --disable-static
    --disable-programs
    --disable-doc
    --enable-shared
    --enable-protocol=file
    --enable-pic
    --enable-small
    --enable-mediacodec
    --enable-jni
    --enable-decoder=h264_mediacodec
    --enable-opengl

    /* The argument was not supported by ./configure --list-hwaccel in FFmpeg v4.0.3. */

    --enable-hwaccel=h264_mediacodec
  • FFmpeg output video file much smaller than uncompressed input audio file, using option to preserve original audio quality

    17 mars 2021, par Jan

    I attempt to create a video slideshow from a number of image files and an audio file in 2 steps :

    &#xA;

      &#xA;
    1. Create a temporary video file from a sequence of image files
    2. &#xA;

    3. Add an audio file to the temporary video file with a delay of 5 seconds
    4. &#xA;

    &#xA;

    The audio file is an uncompressed stereo wav file, encoded with a sample rate of 44100 Hz and a bit depth of 32 bits, with a size of 40.1 MB. To preserve the lossless quality of the input audio file I use the option -c:a aac -b:a 192k as per Slideshow Wiki. However, the final output video file has a size of only 4.49 MB.

    &#xA;

    How can the output video file be about 10 times smaller than the input audio file and still preserve the original lossless quality ?

    &#xA;

    My code :

    &#xA;

    ffmpeg -f concat -i slide-sequence.txt -c:v libx264 -r 30 -filter_complex format=yuv420p temp.mp4&#xA;ffmpeg -i temp.mp4 -i audio.wav -af "adelay=5000|5000" -c:v copy -c:a aac -b:a 192k out.mp4&#xA;

    &#xA;