Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (54)

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

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (8939)

  • 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;