Giter Site home page Giter Site logo

sbwvss-mvc's Introduction

πŸ‘‹ Hi there! I am a Developer interested in Automation...πŸš€

Hits

πŸ’» Stats

GitHub Stat GitHub Streak

πŸ“¬ Contacts

Tech Blog Badge Gmail Badge Naver Badge

sbwvss-mvc's People

Contributors

dongju-na avatar

Watchers

 avatar

sbwvss-mvc's Issues

ffmpeg zoompan μ»€λ§¨λ“œ 정리

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 λ””μŠ€ν”Œλ ˆμ΄ μ’…νš‘λΉ„

To-Do

  • λ™μ˜μƒ ffmpeg으둜 쀄 수 μžˆλŠ” 효과 확인.
  • ν…œν”Œλ¦Ώ 및 μžλ§‰ 적용 (미적 감각 ν•„μš” μ—†μŒ.)
  • νμ•Œ μ½”λ“œ 생성 ν›„ λ™μ˜μƒμ— μ‚½μž…. (λžœλ”©url λ„£μ–΄μ„œ)

wiki

  1. μ˜μƒ 4λΆ„ν• 
    μŠ¬λΌμ΄λ“œ
    쀌인

μ˜μƒ ν•˜λ‚˜μ”© λ§Œλ“€

  1. 2*2 grid
    ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -i 4.mp4 -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]" finalOutput.mp4

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

  1. μŠ¬λΌμ΄λ“œ

  2. νŽ˜μ΄λ“œμ•„μ›ƒ

  3. νŽ˜μ΄λ“œμΈ

  4. 흑백

  5. 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

  6. λ™μ˜μƒμ— ν…μŠ€νŠΈ μΆ”κ°€
    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

  7. λ™μ˜μƒμ— κ·Έλ¦ΌμΆ”κ°€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.