Last active
June 24, 2023 08:44
-
-
Save duongthanhthai/e094d1bec5824ca396d86283b118ca90 to your computer and use it in GitHub Desktop.
FFmpeg guide A to Z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is guide from Zero to Hero with FFmpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Đoạn code dưới đây cho phép thêm nội dung text
fb.com/myducavào phía trên của khung hình video là 150px và 200pxx=150:y=200Sau khi video chạy được 20s, sẽ xuất hiện thêm một dòng text
Fanpage facebook.com/myducaở phía dưới video. Đoạn text này hiển thị 20s rồi sẽ ẩnffmpeg -i video.mp4 -vf "drawtext=text='fb.com/myduca':x=150:y=200:fontsize=24:fontcolor=black:box=1:[email protected]:boxborderw=5:box=1,drawtext=text='Fanpage facebook.com/myduca':fontsize=24:fontcolor=black:boxborderw=5:box=1:[email protected]:x=(w-text_w)/2:y=h-200-text_h:enable='between(t,20,40)'" -c:a copy video_Final.mp4