Skip to content

Instantly share code, notes, and snippets.

@kmkmjhyiiiu
Created January 6, 2020 01:14
Show Gist options
  • Save kmkmjhyiiiu/4c3f16184bfc3027a7b3df297010781f to your computer and use it in GitHub Desktop.
Save kmkmjhyiiiu/4c3f16184bfc3027a7b3df297010781f to your computer and use it in GitHub Desktop.
ffmpeg
ffmpeg -i /code/data/test/video_editor/ffmpeg-video-encoder-sample.mkv -i /code/data/watermark-logo.png -filter_complex "[0]subtitles=/code/data/test/video_editor/ffmpeg-video-encoder-sample.mkv:si=6[v];[1][v]scale2ref=w='iw*10/100':h='ow/mdar'[wm][vid];[vid][wm]overlay=10:10" -map "0:a:1" -c:v libx264 -preset ultrafast /code/data/test/video_editor/audio_and_subtitle.mp4
@kmkmjhyiiiu
Copy link
Author

ffmpeg -i /code/data/test/video_editor/ffmpeg-video-encoder-sample.mkv -i /code/data/watermark-logo.png -sub_charenc UTF-8 -filter_complex "[0]subtitles=/code/data/test/video_editor/ffmpeg-video-encoder-sample.mkv:si=6[v];[1][v]scale2ref=w='iw*10/100':h='ow/mdar'[wm][vid];[vid][wm]overlay=10:10" -map "0:a:1" -c:v libx264 -preset ultrafast /code/data/test/video_editor/audio_and_subtitle.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment