Last active
July 12, 2020 19:40
-
-
Save gigincg/338ec705632ee69cfe72eae73c2bb95f to your computer and use it in GitHub Desktop.
This file contains 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
# Convert WMV to MP4 with fixed FPS(30) | |
ffmpeg -i input_file.wmv -c:v libx264 -crf 23 -c:a aac -strict -2 -q:a 100 -max_muxing_queue_size 9999 -filter:v fps=fps=30 output_file.mp4 | |
# Negate (Invert Colours) | |
ffmpeg -i input_file.mp4 -vf negate outputfile.mp4 | |
# Add Watermark at bottom right corner | Note: Watermark does not scale, to adjust size of watermark, adjust size of input image | |
ffmpeg -i negated.mp4 -i tlm.png -filter_complex "[1]format=yuva444p,colorchannelmixer=aa=0.2[tlm.png];[0][tlm.png]overlay=x=(main_w-overlay_w):y=(main_h-overlay_h)" watermarked.mp4 | |
# Combined Commands | |
# Convert WMV to Inverted MP4 | |
ffmpeg -i inputfile.wmv -c:v libx264 -crf 23 -c:a aac -strict -2 -q:a 100 -max_muxing_queue_size 9999 -filter:v "fps=fps=30, negate=1" output_file.mp4 | |
# All 3 Filters Combined -> Convert, Negate and Watermark | |
ffmpeg -i source.wmv -i logo.png -c:v libx264 -crf 23 -c:a aac -strict -2 -q:a 100 -max_muxing_queue_size 9999 -filter_complex "[1]format=yuva444p,colorchannelmixer=aa=0.8[logo];[0]fps=fps=30, negate=1[flip];[flip][logo]overlay=x=(main_w-overlay_w):y=(main_h-overlay_h)" output_file.mp4 | |
# Concatenation | |
ffmpeg -f concat -i mylist.txt -c copy output.mp4 | |
# Wrap Intro Clip without Audio for Concatenation | |
ffmpeg -i intro.mp4 -f lavfi -i anullsrc -c:v copy -video_track_timescale 30k -c:a aac -ac 6 -ar 44100 -shortest new.mp4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment