Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (60)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (5874)

  • How to scale watermark based on video resolution in android using FFmpeg command ?

    16 février 2023, par Ravi Sorathiya

    I want to scale the watermark size based on the given video resolution. but this cmd scales the watermark without respect to the original video.

    


    I want to scale the watermark based on the resolution of the video. if
the video is in high resolution then the watermark will adjust that accordingly. visa versa in lower resolution it will scale accordingly.

    


    please suggest me FFmpeg cmd the dynamically cmd that helps to scale the watermark based on video's resolution

    


    val cmd = arrayOf(
            "-y",
            "-i",
            sourcePath,
            "-i",
            watermarkImagePath,
            "-filter_complex",
            "[1][0]scale2ref=w=oh*mdar:h=ih*0.06[logo][video];[video][logo]overlay=${position}",
            "-map",
            "0:a",
            "-c:v",
            "libx264",
            "-crf",
            "$bitrate",
            "-preset",
            "ultrafast",
            outputLocation.path
        )


    


  • ffmpeg scaled output resolution is off by 1px for non-standard inputs [duplicate]

    14 janvier 2023, par GROVER.

    I'm using the ffmpeg CLI to scale user-submitted videos :

    


    ffmpeg -i path/to/file -vf scale=1920:-2 -c:v libx264 -r 30 output.mp4


    


    The scaling works fine with standard video sizes, such as 1920×1080 and 720×480. However, once we start using videos that do not have conventional resolutions, the output begins to scale incorrectly.

    


    For example, a video that has a resolution of 3360×1882 will output to 1921×1076, when the expected resolution should theoretically be : 1920×1075.

    


    Now, obviously ffmpeg is attempting to account for that remaining .42857px on the height, but I'd prefer it just get cropped off instead (doesn't matter if it's from the top or bottom).

    


    How would I go about doing this safely for every video ?

    


    For bonus points, how do I make it swap scaling depending on if the height is greater than the width (and vice versa). For example, if the video has a ratio of 2:1, it scales using a height of 1080px instead of a width of 1920px.

    


  • How to stich images into a video with resolution larger then 4K using FFMPEG ?

    14 janvier 2023, par Aviram Fireberger

    I have a folder with images that I've extracted from one video.
The resolution for each image is 5760 X 2880.
All images are in the following format :
out-1.jpg, out-2.jpg , out-3.jpg ..... out-1000.jpg

    


    I tried couple of different ways to stich them :

    


    Using CPU - libx264

    


    ffmpeg -r 30 -f image2 -s 5760X2880 -start_number 1 -i "AllFrames/out-%d.jpg" -vframes 119 -vcodec libx264 -crf 25  -pix_fmt yuv420p "/AllVideoChunks/Chunk_1.mp4"


    


    Worked well but the speed is about X0.05 only.

    


    Using GPU - h264_nvenc

    


    ffmpeg -r 30 -f image2 -s 4000X2000 -start_number 1 -i "AllFrames/out-%d.jpg" -vframes 119 -vcodec h264_nvenc -gpu  0 -preset slow -b:v 75M  -pix_fmt yuv420p"/AllVideoChunks/Chunk_1.mp4"


    


    Working very fast and high quality, but the problem is that I can't use it for images and output bigger then width 4096

    


    Using GPU - hevc_nvenc

    


    ffmpeg -r 30 -f image2 -s 5760X2880 -start_number 1 -i "AllFrames/out-%d.jpg" -vframes 119 -vcodec hevc_nvenc -gpu  0 -preset slow -b:v 75M  -pix_fmt yuv420p"/AllVideoChunks/Chunk_1.mp4"


    


    Working X10 more then the CPU at the speed of X0.5, good quality, but the problem is that I can't use it in normal players (can't play it in Unity)

    


    Is there another video codec that can work on GPU that support more then 4K resolution ?
Can I transform the 'hevc_nvenc ' output to 'h264' on GPU in higher resolution ? should I do this transformation on CPU ?