Share ffmpeg source code bypass copyright 2020

1. Code ffmpeg cut the first 3 seconds and overwrite filter_HD.png image on the video, delete ID3 Tag, export to HD AVI.

-y -ss 00:00:03 -i "{input_video}" -i "filter_HD.png" -filter_complex "[0:v]scale=1280:720 [v1]; [v1][1:v]overlay=0:0" -vcodec mpeg4 -vtag XVID -b 2500k -bf 2 -r 30 -g 60 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -threads 0 -metadata title="" -metadata artist="" -metadata album_artist="" -metadata album="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder="" -preset ultrafast -f avi "{output_video}.avi"

2. Code ffmpeg Video1 shrinks and overlaps the blurred Video1 itself.

-y -i "{input_video}" -filter_complex "scale=640:360 [v1]; [0:v]boxblur=9:9 [v2]; [v2][v1]overlay=20:20" -vcodec mpeg4 -vtag XVID -b 2500k -bf 2 -r 30 -g 60 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -threads 0 -preset ultrafast -f avi "{output_video}.avi"

3. Codep ffmpeg Video1 shrink and overwrite Video 3h.mp4 dynamic background 3 hours long.

-y -i "{input_video}" -i "3h.mp4" -filter_complex "scale=640:360 [v1]; [1:v][v1]overlay=20:20" -vcodec mpeg4 -vtag XVID -b 2500k -bf 2 -r 30 -g 60 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -threads 0 -shortest -preset ultrafast -f avi "{output_video}.avi"

4. Codep ffmpeg Video1 shrink and overwrite Video 3h.mp4 dynamic background 3 hours long, speed up to 120% (1.2).

-y -i "{input_video}" -i "3h.mp4" -af "atempo=1.2" -filter_complex "setpts=PTS/1.2,scale=640:360 [v1]; [1:v][v1]overlay=20:20" -vcodec mpeg4 -vtag XVID -b 2500k -bf 2 -r 30 -g 60 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -threads 0 -shortest -preset ultrafast -f avi "{output_video}.avi"

5. Codep ffmpeg change MD5 Hash, no encode, no resize.

-y -i "{input_video}" -vcodec copy -acodec copy -preset ultrafast "{output_video}.mp4"

a) Video encoding, audio encoding and HD output of 1280x720 MP4:

-y -i "{input_video}" -vf "scale=1280:720" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 2500k -acodec libmp3lame -b:a 128k -ar 44100 -preset ultrafast "{output_video}.mp4"

b) Video encoding, audio encoding and output HD 1280x720 AVI:

-y -i "{input_video}" -vf "scale=1280:720" -vcodec mpeg4 -vtag XVID -b 2500k -bf 2 -r 30 -g 60 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -threads 0 -preset ultrafast -f avi "{output_video}.avi"

c) Speed up (Tempo) by 120%, output standard HD 1280x720:

-y -i "{input_video}" -af "atempo=1.2" -vf "setpts=PTS/1.2,scale=1280:720" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 2500k -acodec libmp3lame -b:a 128k -ar 44100 -preset ultrafast "{output_video}.mp4"

d) Increase Speed (Tempo) by 120%, Zoom (crop) by 150%, output standard HD 1280x720:

-y -i "{input_video}" -af "atempo=1.2" -vf "setpts=PTS/1.2,crop=iw/1.5:ih/1.5,scale=1280:720" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 2500k -acodec libmp3lame -b:a 128k -ar 44100 -preset ultrafast "{output_video}.mp4"

e) Video blur level 2 (max 9) and output standard HD 1280x720:

-y -i "{input_video}" -vf "boxblur=2:1,scale=1280:720" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 2500k -acodec libmp3lame -b:a 128k -ar 44100 -preset ultrafast "{output_video}.mp4"

6. ffmpeg splits the full screen video with light (filter.png) and outputs HD 1280x720:

-y -i "{input_video}" -af "atempo=1.2" -vf "setpts=PTS/1.2,crop=iw/2:ih/2,scale=1280:720,boxblur=2:1 [mv]; movie=filter.png [f1]; [mv][f1]overlay=0:0" -preset ultrafast "{output_video}.mp4"

7. Code ffmpeg spleen the audio, output HD 1280x720:

-y -i "{input_video}" -af "atempo=1.2,pan=stereo|c0<c0+0*c1|c1<c0+0*c1,aeval=val(0)|-val(1),volume=1.5" -vf "setpts=PTS/1.2,scale=1280:720,boxblur=1:1 [mv]; movie=filter7.png [f1]; [mv][f1]overlay=0:0" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 2500k -acodec libmp3lame -b:a 128k -ar 44100 -preset ultrafast "{output_video}.mp4"

8. Remove the sound, increase speed to 110%, zoom 200%, blur 10%, have bright spots, no logo, output standard SD 640x360:

-y -i "{input_video}" -af "atempo=1.1,pan=stereo|c0<c0+0*c1|c1<c0+0*c1,aeval=val(0)|-val(1),volume=1.6" -vf "setpts=PTS/1.1,crop=iw/2:ih/2,scale=640:360,boxblur=1:1 [mv]; movie=filter7-640-nologo.png [f1]; [mv][f1]overlay=0:0" -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 2500k -acodec libmp3lame -b:a 128k -ar 44100 -preset ultrafast "{output_video}.mp4"

9. Syntax of editing ID3 Tags for Video:

-metadata title="Adagio for Strings"
-metadata artist="Yo Yo Ma/London Symphony"
-metadata album_artist="London Symphony"
-metadata album="String Classics"
-metadata date="2012"
-metadata track="3/12"
-metadata genre="Classical"
-metadata publisher="VinaCaptcha Publishing"
-metadata encoded_by="VinaCaptcha"
-metadata copyright="℗ VinaCaptcha"
-metadata composer="J.S. Bach"
-metadata performer="T. S. Miles"
-metadata TIT1="The Classics"
-metadata TIT3="Op. 91"
-metadata disc="1/2"
-metadata TKEY="G"
-metadata TBPM="120"
-metadata language="eng"
-metadata encoder="SmartYoutubeRender v1005"
---
-metadata title="" -metadata artist="" -metadata album_artist="" -metadata album="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder=""

10. Change MD5 Hash, cut Video, edit ID3 Tags:

-y -i "{input_video}" -vcodec copy -acodec copy -metadata title="Daily Hot Video" -metadata album="Daily Hot Video" -metadata artist="" -metadata album_artist="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder="" -preset ultrafast "{output_video}.mp4"

11. Video overlay video left corner, edit ID3 Tags, output standard HD 1280x720:

-y -i filter10.png -i "{input_video}" -filter_complex "[1:v]scale=1280:720,boxblur=9:9 [v1]; [1:a]volume=1.5 [a]; [1:v]scale=842:421,boxblur=2:1 [v2]; [v1][v2]overlay=101:222 [v3]; [v3][0:v]overlay=0:0 [v4]" -map "[v4]" -map "[a]" -metadata title="Daily Hot Video" -metadata album="Daily Hot Video" -metadata artist="" -metadata album_artist="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder="" -preset ultrafast "{output_video}.mp4"

12. Video overlay video left corner, edit ID3 Tags, output standard HD 1280x720:

-y -i filter10.png -i "{input_video}" -filter_complex "[1:v]scale=1280:720,boxblur=9:9 [v1]; [1:a]volume=1.5 [a]; [1:v]scale=842:421,boxblur=2:1 [v2]; [v1][v2]overlay=101:222 [v3]; [v3][0:v]overlay=0:0 [v4]" -map "[v4]" -map "[a]" -metadata title="Daily Hot Video" -metadata album="Daily Hot Video" -metadata artist="" -metadata album_artist="" -metadata date="" -metadata track="" -metadata genre="" -metadata publisher="" -metadata encoded_by="" -metadata copyright="" -metadata composer="" -metadata performer="" -metadata TIT1="" -metadata TIT3="" -metadata disc="" -metadata TKEY="" -metadata TBPM="" -metadata language="eng" -metadata encoder="" -preset ultrafast "{output_video}.mp4"

Comments