Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (13)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

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

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

Sur d’autres sites (5551)

  • FFMPEG Python : Encountered scale(1920, 1080) with multiple outgoing edges with same upstream label None ; a `split` filter is probably required

    2 janvier, par Lysander Cox

    Here is the code in question :

    


    for comment in thread['comments']:
        commentClips += fragmentConcat(comment, filePrefix)
        
        staticClip = ffmpeg.input('assets/static.mp4')
        commentClips.append(staticClip
                                .filter('setsar', 1, 1)
                                .filter('scale', 1920, 1080)
                           )
        commentClips.append(staticClip.audio)


    


    This code generates the following error :

    


    ValueError: Encountered scale(1920, 1080) <6adb028f8ef5> with multiple outgoing edges with same upstream label None; a `split` filter is probably required


    


    I have tried using only the video part of the input for the first call (e.g. staticClip['v'].filter...), and I have tried using the split call as suggested (e.g. ffmpeg.input(...).split(). Nothing has worked. What is the issue, and how can I rememdy it ? Thanks.

    


  • libavcodec/amfenc_hevc : Recommend values for min and max video quantizer scale.

    9 mars 2021, par Ovchinnikov Dmitrii
    libavcodec/amfenc_hevc : Recommend values for min and max video quantizer scale.
    

    Current settings makes bitrate larger than expected, more information :
    https://github.com/HandBrake/HandBrake/issues/3447#issue-820490736

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/amfenc_hevc.c
  • FFMpeg : scale down videos with maximum width and height while maintaining aspect ratio

    20 février 2021, par R3D34THR4Y

    In my program the user can input any video file he wants and have it transcoded ready for social media no matter its dimensions and aspect ratio.&#xA;The "export profiles" have many variables but the important ones here are maxheight and maxwidth.

    &#xA;

    The FFMpeg filters must output a video that follows the following rules :

    &#xA;

      &#xA;
    • If the video is vertical, permutate the maxheight and maxwidth values (social media considers both 1280x720 and 720x1280 as "720P")
    • &#xA;

    • The video must not have a height superior to maxheight or a width superior to maxwidth.
    • &#xA;

    • The original video and exported video have the same aspect ratio and no distortion occurs.
    • &#xA;

    • No padding or cropping should occur.
    • &#xA;

    • The video should not be scaled if it is already under those maximum dimensions (no upscaling).
    • &#xA;

    • The function must work even with odd input resolutions.
    • &#xA;

    &#xA;

    I have tried finding a combination of filters that do that but I haven't been able so far, either the video gets distorted or it gets huge black bars if the aspect ratio isn't right, the solution may be simple but I'm a beginner on this library so I'm probably just missing an easy solution.

    &#xA;

    My current solution :

    &#xA;

    ffmpeg -i input.mp4 -vf [in] scale=1280:720:flags=lanczos:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1 [res]; [res] format=yuv420p [format] -c:v libx264 -c:a aac -movflags &#x2B;faststart output.mp4&#xA;

    &#xA;

    Thanks for reading

    &#xA;