Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (41)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (5895)

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