Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (43)

Sur d’autres sites (8557)

  • How to add blurred border on top and bottom based on the video

    5 avril 2023, par Noob69

    I am trying to modify a video to 1080x1920 scale and I want to add to the borders on top and bottom, a blurred version of the video based on the pixel on the edge.

    


    import subprocess

input_file = "my_video1.mp4"
output_file = "my_video_processed1.mp4"

command = f'ffmpeg -i {input_file} -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,eq=saturation=2.0:gamma=1.2:contrast=1.2,unsharp=lx=5:ly=5:la=0.5:cx=5:cy=5:ca=0.5" -c:v libx264 -preset slow -crf 18 -c:a copy {output_file}'
subprocess.call(command, shell=True)



    


    I tried
mode = replicate, however it is not working for the latest version of ffmpeg from Windows builds by BtbN.

    


  • avcodec/hevc.c : for big negative mvy value, should wait line 0 of ref frame due to...

    11 novembre 2014, par Changjiang Wei
    avcodec/hevc.c : for big negative mvy value, should wait line 0 of ref frame due to edge extending
    

    Reviewed-by : Mickaël Raulet <mraulet@gmail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/hevc.c
  • How can i make drawtext filter start the text scrolling from the center while scrolling from right to left

    16 janvier 2018, par Femzy

    Hello How can i make the text start from the center when the video play ? Currently it start from the left side and people dont see the first words before it goes. I want the text to start from either the center of the video or the right while moving from right to left. Thanks in advance for helping me...
    This is my code that currently works for the text, but it starts from the edge of the of the left while moving from right to left

    echo shell_exec('ffmpeg -loop 1 -i slide2.jpg -vf scale=-2:1080,drawtext="textfile=text.txt:expansion=normal:fontfile=FreeSerif.otf: y=h-line_h-20:x=-200*t: fontcolor=white: fontsize=50" -pix_fmt yuv420p -t '.$words_count.' -movflags +faststart textover10.mp4 -report');