사용자 도구

사이트 도구


linux:video

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
linux:video [2015/10/05 01:43]
kwon37xi [smi2srt]
linux:video [2020/07/17 15:35]
kwon37xi
줄 30: 줄 30:
 println "crop left and right ${crop / 2}px" println "crop left and right ${crop / 2}px"
 </code> </code>
 +  * 혹은 ''video_169.py''<code python>
 +#!/usr/bin/env python
 +import sys
  
-====== smi2srt ======+width int(sys.argv[1]) 
 +height int(sys.argv[2]) 
 + 
 +if width/height <16.0/9.0: 
 +    print 'no need to crop' 
 + 
 +crop width - (16.0 / 9.0 * height) 
 +print('crop left and right %f px' % (crop/2.0)) 
 +</code> 
 + 
 +===== smi2srt =====
   * [[http://deviantcj.tistory.com/407|SMI파일을 SRT로 변환하기]]<code sh>   * [[http://deviantcj.tistory.com/407|SMI파일을 SRT로 변환하기]]<code sh>
 sudo apt-get install libsubtitles-perl sudo apt-get install libsubtitles-perl
줄 53: 줄 66:
 read -p "Press Enter." nov read -p "Press Enter." nov
 </code> </code>
-  * [[linux:mint:nemo|Nemo]] Action으로 변환 ''/home/kwon37xi/.local/share/nemo/actions/smi2srt.nemo_action''<code>+  * [[linux:mint:nemo|Nemo]] Action으로 변환 ''$HOME/.local/share/nemo/actions/smi2srt.nemo_action''<code>
 [Nemo Action] [Nemo Action]
 Name=SMI to SRT Name=SMI to SRT
줄 61: 줄 74:
 Extensions=smi Extensions=smi
 </code> </code>
 +  * SRT가 ''EUC-KR'' 인코딩일 경우 UTF-8로 변환하는 [[linux:mint:nemo|Nemo]] Action ''$HOME/.local/share/nemo/actions/euckr_srt_to_utf8.nemo_action''<code>
 +[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 '%F' > /tmp/iconvtemp;mv /tmp/iconvtemp '%F'"
 +Selection=Any
 +Extensions=srt
 +</code>
 +
 +===== Video Background =====
 +  * [[https://www.linuxuprising.com/2019/05/livestream-wallpaper-for-your-gnome.html|Video Livestream Wallpaper For Your GNOME, Xfce Or bspwm Desktop - Linux Uprising Blog]]
 +
linux/video.txt · 마지막으로 수정됨: 2023/06/05 16:30 저자 kwon37xi