Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (65)

Sur d’autres sites (13842)

  • How to add a black bar on top and bottom of a video screen with a watermark on it ?

    3 mai 2017, par Neo Herakles

    I have this code to watermark my videos but I believe that the watermark may be distracting so I want to add black bars on top and on the bottom to place my watermark in, how could I do that ? Here’s my code for the watermarking of the video, I’m also appending an intro and outro to the presentation.

    for %%I in ("C:\Users\Administrator\Desktop\work\*.mp4") do ffmpeg.exe
    -y -i "%%I" -i white.png -i out1.ts -filter_complex "[1:v][0:v]scale2ref=iw/6:ih/18[logo][0v];[0v][logo]overlay=W-w-3:H-h-1,scale=hd720,setsar=1[vl];[2:v][2:a][vl][0:a][2:v][2:a]concat=n=3:v=1:a=1[v][a]"
    -map "[v]" -map "[a]" -r 20 -c:v libx264 -ar 48000 "C:\Users\Administrator\Desktop\Complete-videos\%%~nI.mp4"

    pause
  • FFMPEG & OPENGL - RAW Frames

    27 mars 2015, par Marco Reisacher

    I’m building a recorder using a BlackMagic DeckLink Card.
    The program is using OpenGL to display the Frames and FFMPEG (with the glReadPixels() method) to record them.
    I’m setting the viewport in my program to apply a automatic letter-/pillarbox whether the Image/Monitor is 16:9/4:3.
    The problem with that ist that when i capture these frames of this viewport they get of course recorded in the resolution my viewport is (i.e. Full Hd source -> viewport due to monitor with 1600x1200 resolution -> letterbox down to 1600x900) and so FFMPEG records those 1600x1200 with black bars at the top/bottom.

    Is there any possibility to grab the RAW Frame before it gets passed trough the setViewport function and all the rescaling stuff ?

  • ffmpeg combine existing filter_complex with upscaleto e.g. 720p

    24 novembre 2019, par Tom Meyer

    Currently I am combining two videos using this filter :

    -filter_complex "[1:v][0:v]scale2ref=main_w:ih[sec][pri]; [sec]setsar=1,drawbox=c=black:t=fill[sec];[pri][sec]hstack[canvas]; [canvas][1:v]overlay=main_w-overlay_w"

    The output is the following : test.png (Green is the first video input, orange the second one) The whole video (red) has a format of 1600x540 (That might change depending on the input sizes.)

    My question is whether there is a way to upscale this video to maybe 1920x1080 or 1280x720 in the same command. By upscaling I mean to change its size and to fittingly insert black bars on the side/top.