N
N
Nikidze2020-04-19 16:13:36
Donations
Nikidze, 2020-04-19 16:13:36

Is it possible to connect DonationAlerts or similar to ffmpeg?

This morning I read this article on Habré https://m.habr.com/ru/post/493352/ and an idea immediately arose. I know that OBS has a plugin for this, but how can this thing be implemented in ffmpeg?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vapaamies, 2020-07-06
@vapaamies

Somehow rob the browser window and overlay. I broadcast via ffmpeg with multiple sources. The call line turns out hoo!

@echo off

if /i "%1" == "-i" set filter=[x]; [x][4]overlay=0:(H-h)/2:format=rgb
if [%6] == [] (
  set caption="Screencast"
) else (
  set caption=%6
)

start %caption% /min /abovenormal ffmpeg -framerate 10 -f gdigrab -thread_queue_size 128 -offset_y 80 -video_size "1280x900" -i desktop -i X:\Projects\CantorSys\trunk\Logo\LogoTV.png -f dshow -framerate 10 -video_size 160x120 -pixel_format yuyv422 -rtbufsize 32M -i video="USB web camera" -i X:\Projects\CantorSys\trunk\Logo\CantorSys.png %1 %2 -filter_complex "[0]pad=ih*16/9:ih:(ow-iw)/2:oh-ih[a]; [a][1]overlay=W-w:8:format=rgb[b]; [b][2]overlay=0:H-h:format=rgb[c]; [c][3]overlay=W-w:(H-h)/2:format=rgb %filter%" -f dshow -rtbufsize 16M -i audio="Virtual Cable 1" -acodec libmp3lame -ab 112k -joint_stereo 0 -af "volume=2" -vcodec libx264 -pix_fmt yuv420p -keyint_min 3 -vb 1200k -bufsize 6M -preset ultrafast %3 %4 %5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question