Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Compression Techniques FFMPEG remove 55.png overlay from this code

  • FFMPEG remove 55.png overlay from this code

     adom anim updated 3 weeks ago 2 Members · 2 Posts
  • saza daz

    April 15, 2020 at 6:36 am

    i need help removing the 55.png related code overlay as i dont need it please help this is something i found on another site posted long time ago.
    ffmpeg -y -i 55.mp4 -i "55.png" -i "intro.mp4" -filter_complex "[0:a]atempo=1.15,volume=1.6,pan=stereo|c0<c0+0*c1|c1<c0+0*c1,aeval=val(0)|-val(1) [amain]; [0:v]setpts=PTS/1.15,crop=iw/4.4:ih/1.2,boxblur=1:2,scale=1280:720,setdar=16/9 [v1]; [v1][1:v]overlay=0:0 [vmain]; [2:v]scale=1280:720,setdar=16/9 [vintro]; [vintro][2:a][vmain][amain]concat=n=2:v=1:a=1" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 1400k -profile:v main -level 3.1 -acodec libmp3lame -b:a 128k -ar 44100 -metadata title="" -metadata artist="" -metadata album_artist="" -metadata album="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder="" -bufsize 500000k -threads 0 -preset superfast out2222.mp4

  • adom anim

    April 16, 2021 at 10:43 pm

    You could just generate a fully transparent background using the color-filter and then use both filters on its output:

    ffmpeg -i a.jpg -filter_complex "[0:0]crop=400:400:0:0[img];[email protected]:s=1000x1000,format=rgba,drawtext=text='Hello, World!':fontcolor=white:fontsize=100:x=(w-text_w)/2:y=(h-text_h)/2[bg];[bg][img]overlay=0:0:format=rgb,format=rgba[out]" -map [out] -c:v png -frames:v 1 output.png

    I have to add though, I’m not quite sure whether the drawtext-filter supports alpha, the overlay-filter does, at least its source code looks that way. , ,

Viewing 1 - 2 of 2 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy