Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (85)

Sur d’autres sites (10124)

  • Update README.md

    6 août 2012
    Update README.md
    

    Safari 6 does not support piecon.

  • FFmpeg Drawbox Errors ?

    12 mars 2021, par Alex Gurr

    Using ffmpeg version 4.3.2.

    


    Command :

    


    ffmpeg -y

  -i /usr/src/app/backgrounds/pink-blue.jpg
  -i files/fuzzy-octopus-5/path/file.webm
  -i files/fuzzy-octopus-5/path/file.webm
  -i /usr/src/app/logo.png
  -filter_complex "
    [0]drawbox=x=-140:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill,
       drawbox=x=770:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill[bg]; 
    ...


    


    However I am getting the following errors ?

    


    Error while processing the decoded data for stream #3:0
Failed to inject frame into filter network: Invalid argument
Error reinitializing filters!
[Parsed_drawbox_0 @ 0x564a87058e80] Failed to configure input pad on Parsed_drawbox_0
[Parsed_drawbox_0 @ 0x564a87058e80] Error when evaluating the expression '(((H-th)/2) - 205)'.
Last message repeated 5 times
[Parsed_drawbox_0 @ 0x564a87058e80] [Eval @ 0x7ffcf25dc650] Undefined constant or missing '(' in 'H-th)/2)-205)'


    


    I have the right amount of brackets and this definitely works on my local machine (macOS). It's only throwing this error in our deployed AWS EC2 linux instance.

    


    Any ideas ? Thanks !

    


    Update : Tried replacing th with h but get the same error

    


  • Add watermark at bottom right 1cm squared FFMPEG - IMAGEMAGIC

    4 décembre 2019, par Junaid Farooq

    I have 2 images..

    1. a PNG which is a log
    2. Actually thumbnail which is JPG

    I want to put a watermark of my logo in actual thumbnail without losing any quality of thumbnail

    ffmpeg -i thumb-168pa-usrao.jpg -i evercamlogo.png -filter_complex \
    "[1:v]scale=90:-1[img1]; \
    [0:v][img1]overlay=25:(H-h)/2[bkg]; \
    -c:a copy test.jpg

    I have tried the above command , it didn’t work.

    This command works

    ffmpeg -i thumb-168pa-usrao.jpg -i evercam-logo-white.png -filter_complex overlay=10:10 test.jpg

    But it gives log on top left, How I can have a watermark on the bottom right 1CM squared

    Update :

    ffmpeg -i thumb-168pa-usrao.jpg -i evercam-logo-white.png  -filter_complex  'overlay=x=(main_w-overlay_w):y=(main_h-overlay_h)' test.jpg

    I am also losing the size of the picture with above

    with the above command I am able to do what I want to do, is there any room of improvement into that ? How I can make it 1CM squared ?