Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (105)

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

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (9756)

  • avcodec/vvcdec : inter, wait reference with a different resolution

    19 mai 2024, par Nuo Mi
    avcodec/vvcdec : inter, wait reference with a different resolution
    

    For RPR, the current frame may reference a frame with a different resolution.
    Therefore, we need to consider frame scaling when we wait for reference pixels.

    • [DH] libavcodec/vvc/dec.c
    • [DH] libavcodec/vvc/dec.h
    • [DH] libavcodec/vvc/refs.c
    • [DH] libavcodec/vvc/thread.c
  • lavc/qsvdec : Use coded_w/h for frame resolution when use system memory

    20 mai 2024, par Fei Wang
    lavc/qsvdec : Use coded_w/h for frame resolution when use system memory
    

    Fix output mismatch when decode clip with crop(conf_win_*offset in
    syntax) info by using system memory :

    $ ffmpeg -c:v hevc_qsv -i conf_win_offet.bit -y out.yuv

    Signed-off-by : Fei Wang <fei.w.wang@intel.com>

    • [DH] libavcodec/qsvdec.c
  • FFMPEG in Android Kotlin - processed video should have specific resolution

    31 mai 2024, par Utsav

    I'm recording video from both the front and back cameras and I get a PIP video and a horizontal stacked video. I need to merge both videos after that. The problem with merging is that it requires both the videos (PIP and stacked) to have the same resolution and aspect ratio. This is not the case. So the FFMPEG command being executed in code to generate both these videos needs to be modified to make the resolution and aspect ratio the same.

    &#xA;

    //app -> build.gradle&#xA;implementation "com.writingminds:FFmpegAndroid:0.3.2"&#xA;

    &#xA;

        private fun connectFfmPeg() {&#xA;        val overlayX = 10&#xA;        val overlayY = 10&#xA;        val overlayWidth = 200&#xA;        val overlayHeight = 350&#xA;&#xA;        outputFile1 = createVideoPath().absolutePath&#xA;        outputFile2 = createVideoPath().absolutePath&#xA;        //Command to generate PIP video&#xA;        val cmd1 = arrayOf(&#xA;            "-y",&#xA;            "-i",&#xA;            videoPath1,&#xA;            "-i",&#xA;            videoPath2,&#xA;            "-filter_complex",&#xA;            "[1:v]scale=$overlayWidth:$overlayHeight [pip]; [0:v][pip] overlay=$overlayX:$overlayY",&#xA;            "-preset",&#xA;            "ultrafast",&#xA;            outputFile1&#xA;        )&#xA;&#xA;        //Command to generate horizontal stack video&#xA;        val cmd2 = arrayOf(&#xA;            "-y",&#xA;            "-i",&#xA;            videoPath1,&#xA;            "-i",&#xA;            videoPath2,&#xA;            "-filter_complex",&#xA;            "hstack",&#xA;            "-preset",&#xA;            "ultrafast",&#xA;            outputFile2&#xA;        )&#xA;&#xA;        val ffmpeg = FFmpeg.getInstance(this)&#xA;        //Both commands are executed&#xA;        //Following execution code is OK&#xA;        //Omitted for brevity&#xA;    }&#xA;

    &#xA;

    Here is mergeVideos() executed lastly.

    &#xA;

        private fun mergeVideos(ffmpeg: FFmpeg) {&#xA;        //Sample command:&#xA;        /*&#xA;        ffmpeg -y -i output_a.mp4 -i output_b.mp4 \&#xA;        -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]" \&#xA;        -map "[outv]" -map "[outa]" -preset "ultrafast" output.mp4&#xA;        */&#xA;        finalOutputFile = createVideoPath().absolutePath&#xA;&#xA;        val cmd = arrayOf(&#xA;            "-y",&#xA;            "-i",&#xA;            outputFile1,&#xA;            "-i",&#xA;            outputFile2,&#xA;            "-filter_complex",&#xA;            "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]",&#xA;            "-map", "[outv]",&#xA;            "-map", "[outa]",&#xA;            "-preset", "ultrafast",&#xA;            finalOutputFile&#xA;        )&#xA;        //Execution code omitted for brevity&#xA;}&#xA;

    &#xA;

    Error : Upon execution of mergeVideos(), there is no progress or failure method called. The Logcat stays where it is and the app does not crash either.

    &#xA;

    Possible solution :&#xA;Once I got the generated PIP and horizontal stacked videos to my device's local storage, I tried out some FFMPEG commands on the prompt to process them after moving them to my laptop and it works on the command line :

    &#xA;

    //First two commands can&#x27;t be executed in Kotlin code&#xA;//This is the main problem&#xA;ffmpeg -i v1.mp4 -vf "scale=640:640,setdar=1:1" output_a.mp4&#xA;ffmpeg -i v2.mp4 -vf "scale=640:640,setdar=1:1" output_b.mp4&#xA;ffmpeg -y -i output_a.mp4 -i output_b.mp4 -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]" -map "[outv]" -map "[outa]" -preset "ultrafast" output.mp4&#xA;//Merge is successful via command prompt&#xA;

    &#xA;

    Please suggest a solution

    &#xA;