Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9315)

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

  • Output resolution substantially below input resolution [closed]

    29 août 2024, par bobford

    I have written an Android app to overlay a watermark png using FFMpeg 6.0 which works fine on 1k and 4k videos. In both cases the output resolution substantially deteriorates albeit consistent with the reduction in file size. In both cases, the original width-height pixel sizes are retained.

    &#xA;

    The ffmpeg command is :

    &#xA;

    String[] array = new String[] {"-i ", inputFile, " -i ", watermarkFile, " -filter_complex ", overlayPosition, " -codec:a copy ", outputFile};&#xA;String delimiter = "";&#xA;String command = String.join(delimiter, array);&#xA;

    &#xA;

    I would like to retain the original resolution, or as close as possible, even with the larger file size.&#xA;It would seem there are default parameters which I am unaware of, and have absolutely no idea of how to find them, even after extensive searching. Thank you for your help !

    &#xA;