DongJu-Na / sbwvss-mvc

Spring Boot WebMvc Video Streaming Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wiki

DongJu-Na opened this issue · comments

  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:boxcolor=black@0.5: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:boxcolor=black@0.5: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. 동영상에 그림추가