차이

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

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:libav-tools [2017/06/10 22:57] 121.134.164.159tech:libav-tools [2019/04/22 20:49] (현재) V_L
줄 8: 줄 8:
  
 {{https://libav.org/static/img/libav-logo-text.png}} https://libav.org/ {{https://libav.org/static/img/libav-logo-text.png}} https://libav.org/
- + 
- +
-{{INLINETOC}}+
  
  
줄 32: 줄 30:
  
 =====변환===== =====변환=====
-   rename 's/ /_/g' * 
-(파일이름의 공백이 있으면 아래의 스크립트가 안되니 공백을 밑줄로 변환) 
  
-  avconv -i '두개의 느낌.avi' -c:v libx264 -c:a aac -strict experimental '두개의느낌.mp4' 
-(하나 변환) 
  
-=== 다중===+====한개 변환==== 
 +  avconv -i '두개의 느낌.avi' -c:v libx264 -c:a aac -strict experimental '두개의 느낌.mp4' 
 + 
 + 
 + 
 +==== 다중변환==== 
 + 
 + 
 +<file bash wmv2mp4> 
 +# WMV -> MP4 
 +# 비트레이트는 2M 
 +# 소리는 aac 
 +for f in *.wmv; do avconv -i "$f" -c:v libx264 -c:a aac \ 
 +-b:v 2M -strict experimental "${f%.wmv}.mp4"; done 
 +</file>
  
-  rename 's/ /_/g' *;for f in *.wmv; do avconv -i "$f" -c:v libx264 -c:a aac -b:v 2000k -strict experimental "${f%}.mp4"; done+  rename 's/ /_/g' *;for f in *.wmv; do avconv -i "$f"  
 +  -c:v libx264 -c:a aac -b:v 2000k -strict experimental "${f%}.mp4"; done
 (다중 변환.. *.wmv -> *.mp4) (다중 변환.. *.wmv -> *.mp4)