Recherche avancée

Médias (91)

Autres articles (50)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (9463)

  • How to Merge Multiple video files with different resolution, make padding for the low resolution video in android FFMPEG

    12 février 2021, par Osama aman

    I want to merge multiple videos with different resolutions. if the resolution is low than any other video, it should make a black padding around the low resolution video.

    


    I tried this command

    


        var highestVideoWidth: Int = 0&#xA;    var highestVideoHeight: Int = 0&#xA;&#xA;    val mlisst: MutableList<string> = ArrayList()&#xA;    mlisst.clear()&#xA;    mlisst.add("-i")&#xA;    for (i in trimmedPaths.indices) {&#xA;        if (highestVideoWidth &lt; editedVideosList[i].videoWidth &amp;&amp; highestVideoHeight &lt; editedVideosList[i].videoHeight) {&#xA;            highestVideoWidth = editedVideosList[i].videoWidth&#xA;            highestVideoHeight = editedVideosList[i].videoHeight&#xA;        }&#xA;&#xA;        mlisst.add(trimmedPaths[i])&#xA;        if (i &lt; trimmedPaths.size - 1)&#xA;            mlisst.add("-i")&#xA;    }&#xA;    mlisst.add("-filter_complex")&#xA;    val fc = StringBuilder()&#xA;&#xA;    for (i in trimmedPaths.indices) {&#xA;&#xA;        if (editedVideosList[i].videoWidth == highestVideoWidth &amp;&amp; editedVideosList[i].videoHeight == highestVideoHeight){&#xA;            fc.append("[$i:v]scale=${editedVideosList[i].videoWidth}x${editedVideosList[i].videoHeight},setsar=1:1[v$i];")&#xA;        }else{&#xA;            fc.append("[$i:v]scale=iw*min($highestVideoWidth/iw,${highestVideoHeight}/ih):ih*min(${highestVideoWidth}/iw,${highestVideoHeight}/ih),")&#xA;            fc.append("pad=${highestVideoWidth}:${highestVideoHeight}")&#xA;            fc.append(":(${highestVideoWidth}-iw*min(${highestVideoWidth}/iw,${highestVideoHeight}/ih))/2")&#xA;            fc.append(":(${highestVideoHeight}-ih*min(${highestVideoWidth}/iw,${highestVideoHeight}/ih))/2,setsar1:1[v$i];")&#xA;        }&#xA;    }&#xA;&#xA;    for (i in trimmedPaths.indices) {&#xA;        fc.append("[v$i][$i:a]")&#xA;    }&#xA;    fc.append("concat=unsafe=1:n=${trimmedPaths.size}:v=1:a=1")&#xA;    mlisst.add(fc.toString())&#xA;    mlisst.add("-r")&#xA;    mlisst.add("50")&#xA;    mlisst.add("-preset")&#xA;    mlisst.add("ultrafast")&#xA;    mlisst.add(finalMergedVideoPath)&#xA;</string>

    &#xA;

    but this gives me this error

    &#xA;

    Invalid size 'iw*min(1074/iw'&#xA;I found the command some where i modified it to my use but now i am not sure. Here is the command : complexCommand = new String[]{"-y", "-i", file1.toString(), "-i", file2.toString(), "-strict", "experimental", "-filter_complex","[0:v]scale=1920x1080,setsar=1:1[v0];[1:v] scale=iw*min(1920/iw\\,1080/ih):ih*min(1920/iw\\,1080/ih), pad=1920:1080:(1920-iw*min(1920/iw\\,1080/ih))/2:(1080-ih*min(1920/iw\\,1080/ih))/2,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1","-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "1920x1080", "-vcodec", "libx264","-crf","27","-q","4","-preset", "ultrafast", rootPath &#x2B; "/output.mp4"};

    &#xA;

    If anyone can help thanks in advance.&#xA;Here is the link to the question i followed

    &#xA;

  • FFmpeg : Batch convert all audio (mp3) in folder to video (mp4) with album artwork (but it down scales my resolution)

    9 février 2021, par unknownman

    I followed this source (FFmpeg : Batch convert all audio (mp3) in folder to video (mp4) with album artwork) and it works, but it down scales my album cover from 1425 x 1406 dimension to 400 x 396.

    &#xA;

    My Batch code is

    &#xA;

    echo off&#xA;for %%a in ("*.mp3") do (&#xA;  ffmpeg -i "%%a" -an -vcodec copy "C:\mp4\%%~na.jpg"&#xA;  "C:\ffmpeg\bin\ffmpeg" -loop 1 -i  "C:\mp4\%%~na.jpg" -i "%%a" -c:v libx264 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" -preset veryslow -tune stillimage -crf 18 -pix_fmt yuv420p -c:a aac -shortest -strict experimental -b:a 192k -shortest "C:\mp4\%%~na.mp4" )&#xA;pause&#xA;

    &#xA;

    Problem is I don't know how to fix "down scaling" thing, and I am sorry for stupid questions but I need to know it. I watched other errors or tried to understand codes from others but I am not doing it well.

    &#xA;

  • avutils/vulkan : hwmap, respect src frame resolution

    21 janvier 2021, par Xu Guangxin
    avutils/vulkan : hwmap, respect src frame resolution
    

    fixes http://trac.ffmpeg.org/ticket/9055

    The hw decoder may allocate a large frame from AVHWFramesContext, and adjust width and height based on bitstream.
    We need to use resolution from src frame instead of AVHWFramesContext.

    test command :
    ffmpeg -loglevel debug -hide_banner -hwaccel vaapi -init_hw_device vaapi=va :/dev/dri/renderD128 -hwaccel_device va -hwaccel_output_format vaapi -init_hw_device vulkan=vulk -filter_hw_device vulk -i 1920x1080.264 -c:v libx264 -r:v 30 -profile:v high -preset veryfast -vf "hwmap,chromaber_vulkan=0:0,hwdownload,format=nv12" -map 0 -y vaapiouts.mkv

    expected :
    No green bar at bottom.

    • [DH] libavutil/hwcontext_vulkan.c