Fork Copy ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=10:10" top_left.mp4 ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=main_w-overlay_w-10:10" top_right.mp4 ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=10:main_h-overlay_h-10" bottom_left.mp4 ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2" bottom_right.mp4 ffmpeg -i video.mp4 -i logo.png -filter_complex "overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2" center.mp4 ffmpeg -stream_loop ${loop} -re -i "${file}" -i "/home/thanhtai/logo.png" -filter_complex "overlay=10:10,drawtext=text=\'Toidicode.com\':fontcolor=white:fontsize=23:x=(w-mod(2*n\\,w+tw)):y=(h-th-15):borderw=3" -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 1280x720 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace -vcodec libx264 -preset veryfast -g 30 -r 60 -f flv "rtmp://rtmp.facebook.com:80/rtmp/${token}" ffmpeg -stream_loop ${loop} -re -i "${file}" -i "/home/thanhtai/logo.png" -filter_complex "overlay=x=(main_w-overlay_w):y=10,drawtext=text=\'Toidicode.com\':fontcolor=white:fontsize=23:x=(w-mod(2*n\\,w+tw)):y=(h-th-15):borderw=3" -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 1280x720 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace -vcodec libx264 -preset veryfast -g 30 -r 60 -f flv "rtmp://rtmp.facebook.com:80/rtmp/${token}"