문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:video [2014/11/12 22:25] kwon37xi |
linux:video [2021/07/16 09:48] kwon37xi [zoom 등 동영상 바탕화면을 정교하게 다른 화면으로 교체하기] |
||
---|---|---|---|
줄 6: | 줄 6: | ||
* [[: | * [[: | ||
* Handbrake : 손쉬운 동영상 변환기 | * Handbrake : 손쉬운 동영상 변환기 | ||
+ | |||
+ | ===== 동영상 편집 ===== | ||
+ | * [[linux: | ||
+ | * [[linux: | ||
+ | * [[linux: | ||
+ | |||
+ | ===== 방송 ===== | ||
+ | * [[linux: | ||
+ | |||
+ | ===== Live Stream 녹화 ===== | ||
+ | * [[https:// | ||
+ | * [[: | ||
+ | * [[youtube: | ||
+ | |||
+ | <code sh> | ||
+ | # 단순히 아래 명령만으로도 충분히 잘 녹화된다. Ctrl-C 를 눌러 종료한다. | ||
+ | youtube-dl "< | ||
+ | </ | ||
===== 자막 합치기 ===== | ===== 자막 합치기 ===== | ||
<code sh> | <code sh> | ||
줄 19: | 줄 37: | ||
new y = y * ((x/16) / (y/9)) = 9/16x | new y = y * ((x/16) / (y/9)) = 9/16x | ||
</ | </ | ||
- | * 가로 비율이 길 때의 left/right crop px 계산 '' | + | * 가로 비율이 길 때의 left/right crop px 계산 '' |
int width = Integer.parseInt(args[0]) | int width = Integer.parseInt(args[0]) | ||
int height = Integer.parseInt(args[1]) | int height = Integer.parseInt(args[1]) | ||
줄 29: | 줄 47: | ||
int crop = width - (16.0 / 9.0 * height) | int crop = width - (16.0 / 9.0 * height) | ||
println "crop left and right ${crop / 2}px" | println "crop left and right ${crop / 2}px" | ||
+ | </ | ||
+ | * 혹은 '' | ||
+ | # | ||
+ | import sys | ||
+ | |||
+ | width = int(sys.argv[1]) | ||
+ | height = int(sys.argv[2]) | ||
+ | |||
+ | if width/ | ||
+ | print 'no need to crop' | ||
+ | |||
+ | crop = width - (16.0 / 9.0 * height) | ||
+ | print(' | ||
+ | </ | ||
+ | |||
+ | ===== smi2srt ===== | ||
+ | * [[http:// | ||
+ | sudo apt-get install libsubtitles-perl | ||
+ | # smi to srt | ||
+ | subs -c srt 파일명.smi -o 파일명.srt | ||
+ | |||
+ | # srt to smi | ||
+ | subs -c smi 파일명.srt -o 파일명.smi | ||
+ | |||
+ | # 변환한 자막을 UTF-8로 바꿔준다. | ||
+ | iconv -f euc-kr -t utf8 파일명1 > 파일명2 | ||
+ | # 인코딩 오류가 발생하면 -c 옵션 추가 | ||
+ | iconv -f euc-kr -t utf8 -c 파일명1 > 파일명2 | ||
+ | </ | ||
+ | * 위 명령을 스크립트 파일로 만들어두기 '' | ||
+ | #!/bin/sh | ||
+ | fn=$(basename " | ||
+ | dn=$(dirname " | ||
+ | targetname=" | ||
+ | subs -c srt " | ||
+ | read -p "Press Enter." | ||
+ | </ | ||
+ | * [[linux: | ||
+ | [Nemo Action] | ||
+ | Name=SMI to SRT | ||
+ | Comment=SMI to SRT | ||
+ | Exec=gnome-terminal -x sh -c "/ | ||
+ | Selection=Any | ||
+ | Extensions=smi | ||
+ | </ | ||
+ | * SRT가 '' | ||
+ | [Nemo Action] | ||
+ | Name=EUC-KR SRT to UTF-8 SRT | ||
+ | Comment=EUC-KR SRT to UTF-8 SRT | ||
+ | Exec=gnome-terminal -x sh -c "iconv -f euc-kr -t utf8 ' | ||
+ | Selection=Any | ||
+ | Extensions=srt | ||
+ | </ | ||
+ | |||
+ | ===== 바탕화면을 동영상으로 만들기 ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===== zoom 등 동영상 바탕화면을 정교하게 다른 화면으로 교체하기 ===== | ||
+ | * [[: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
- | </ |