π Hi there! I am a Developer interested in Automation...π
dongju-na / sbwvss-mvc Goto Github PK
View Code? Open in Web Editor NEWSpring Boot WebMvc Video Streaming Server
Spring Boot WebMvc Video Streaming Server
μ°κ΅¬μ€
https://medium.com/numatic-ventures/top-17-ffmpeg-commands-of-video-processing-64b587325d9e
ffmpeg17κ°μ§ μμ 컀맨λ
Zoom & Pan ν¨κ³Όλ₯Ό μ μ©ν©λλ€.
μ΄ νν°λ λ€μ μ΅μ μ νμ©ν©λλ€.
zoom, z : μ€ ννμ μ€μ ν©λλ€. λ²μλ 1-10μ
λλ€. κΈ°λ³Έκ°μ 1μ
λλ€.
x,y : x λ° y μμ μ€μ ν©λλ€. κΈ°λ³Έκ°μ 0μ
λλ€.
d : κΈ°κ° ννμ νλ μ μλ‘ μ€μ ν©λλ€. λ¨μΌ μ
λ ₯ μ΄λ―Έμ§μ λν΄ μΌλ§λ λ§μ νλ μ ν¨κ³Όκ° μ§μλλμ§ μ€μ ν©λλ€. κΈ°λ³Έκ°μ 90μ
λλ€.
s : μΆλ ₯ μ΄λ―Έμ§ ν¬κΈ°λ₯Ό μ€μ ν©λλ€. κΈ°λ³Έκ°μ 'hd720'μ
λλ€.
fps : μΆλ ₯ νλ μ μλλ₯Ό μ€μ ν©λλ€. κΈ°λ³Έκ°μ '25'μ
λλ€.
[κ° ννμμ λ€μ μμλ₯Ό ν¬ν¨ν μ μμ΅λλ€.]
in_w, iw : λλΉλ₯Ό μ
λ ₯ν©λλ€.
in_h, ih : λμ΄λ₯Ό μ
λ ₯ν©λλ€.
out_w, ow : μΆλ ₯ ν.
out_h, oh : μΆλ ₯ λμ΄.
in : νλ μ μλ₯Ό μ
λ ₯ν©λλ€.
on : μΆλ ₯ νλ μ μ.
in_time, it : μ΄ λ¨μλ‘ νμλλ μ
λ ₯ νμμ€ν¬νμ
λλ€. μ
λ ₯ νμμ€ν¬νλ₯Ό μ μ μλ κ²½μ° NANμ
λλ€.
out_time, time, ot : μ΄ λ¨μλ‘ νμλλ μΆλ ₯ νμμ€ν¬νμ
λλ€.
x,y : νμ¬ μ
λ ₯ νλ μμ λν 'x' λ° 'y' μμμ λ§μ§λ§μΌλ‘ κ³μ°λ 'x' λ° 'y' μμΉμ
λλ€.
px , py : μ΄μ μ
λ ₯ νλ μμ λ§μ§λ§ μΆλ ₯ νλ μμ 'x' λ° 'y' λλ ν΄λΉ νλ μμ΄ μμ§ μλ κ²½μ° 0(첫 λ²μ§Έ μ
λ ₯ νλ μ).
zoom : νμ¬ μ
λ ₯ νλ μμ λν 'z' ννμμμ λ§μ§λ§μΌλ‘ κ³μ°λ νλ/μΆμμ
λλ€.
pzoom : μ΄μ μ
λ ₯ νλ μμ λ§μ§λ§ μΆλ ₯ νλ μμ λ§μ§λ§μΌλ‘ κ³μ°λ μ€.
duration : νμ¬ μ
λ ₯ νλ μμ μΆλ ₯ νλ μ μμ
λλ€. κ° μ
λ ₯ νλ μμ λν 'd' μμμ κ³μ°λ©λλ€.
pduration : μ΄μ μ
λ ₯ νλ μμ λν΄ μμ±λ μΆλ ₯ νλ μ μ
a : μ 리μ μ
λ ₯ ν / μ
λ ₯ λμ΄
sar μν μ’
ν‘λΉ
dar λμ€νλ μ΄ μ’
ν‘λΉ
μμ νλμ© λ§λ€
ffmpeg -i area1.gif -i area2.gif -i area3.gif -i area4.png -filter_complex "[0:v][1:v]hstack=inputs=2[top];[2:v][3:v]hstack=inputs=2[bottom];[top][bottom]vstack=inputs=2[v]" -map "[v]" -c:v libx264 -crf 10 -preset veryfast -pix_fmt yuv420p finalOutput_gifTest.mp4
1-1) 2*2 grid effect
ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -i 4.mp4 -filter_complex "[0:v]crop=iw/2:ih:0:0,format=yuva420p,fade=t=out:st=7:d=2:alpha=1[v0];[1:v]format=yuva420p,fade=t=out:st=7:d=2:alpha=1[v1];[2:v]format=yuva420p,fade=t=in:st=0:d=2:alpha=1[v2];[3:v]format=yuva420p,fade=t=out:st=7:d=2:alpha=1[v3];[v0][v1]hstack=inputs=2[top];[v2][v3]hstack=inputs=2[bottom];[top][bottom]vstack=inputs=2[v]" -map "[v]" finalOutput.mp4
ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -i 4.mp4 -filter_complex "[0:v]crop=iw/2:ih:0:0,format=yuva420p,fade=t=out:st=7:d=2:alpha=1[v0];[1:v]format=yuva420p,fade=t=out:st=7:d=2:alpha=1[v1];[2:v]format=yuva420p,fade=t=in:st=0:d=2:alpha=1[v2];[3:v]format=yuva420p,fade=t=out:st=7:d=2:alpha=1[v3];[v0][v1]hstack=inputs=2[top];[v2][v3]hstack=inputs=2[bottom];[top][bottom]vstack=inputs=2[v]" -map "[v]" finalOutput.mp4
μ¬λΌμ΄λ
νμ΄λμμ
νμ΄λμΈ
νλ°±
customize grid
ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -filter_complex "[0:v][1:v]hstack=inputs=2[v01];[2:v]scale=1080:-1[v3];[v3][v01]vstack=inputs=2" -f flv output_test.mp4
λμμμ ν
μ€νΈ μΆκ°
ffmpeg -i sea_test.mp4 -vf "drawtext=fontfile=/Windows/fonts/BMEuljiro10yearslater.ttf:text='λ₯κ³ μ΅ν μ¬λ¦μ λ± λ§λ':fontcolor=white:fontsize=24:box=1:[email protected]:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2,drawtext=fontfile=/Windows/fonts/BMEuljiro10yearslater.ttf:text='μ€λλ λλ€μ΄ λ¦°λ¨ μμΌ':fontcolor=black:fontsize=14:x=w-tw-10:y=h-th-10" -codec:a copy output_text_test.mp4
ffmpeg -i sea_test.mp4 -vf "drawtext=fontfile=/Windows/Fonts/arial.ttf:text='test1':fontcolor=white:fontsize=24:box=1:[email protected]:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2,drawtext=fontfile=/Windows/Fonts/arial.ttf:text='test2':fontcolor=black:fontsize=14:x=w-tw-10:y=h-th-10" -codec:a copy output_text_test.mp4
λμμμ κ·Έλ¦ΌμΆκ°
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.