VLC 로 트랜스코딩하기
테스트용으로 H.264로 트랜스코딩을 부탁 받았다.
원본으로 구한 동영상은 640짜리 2개 파일(Golden.avi, flower.avi)이고 출력물은 품질 별로
총 12개!
분류 |
비디오Kbps |
오디오 Kbps |
사이즈 |
비고 |
1 |
320 |
64 |
480 x 270 |
|
2 |
320 |
64 |
640 x 360 |
|
3 |
600 |
64 |
480 x 270 |
|
4 |
600 |
64 |
640 x 360 |
|
5 |
1500 |
64 |
640 x 360 |
|
6 |
1500 |
128 |
640 x 360 |
#!/bin/sh
vlc -vvv "floswer.avi" --sout '#transcode{vcodec=h264,vb=320,scale=0.75,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=F4_1.avi}}'
vlc -vvv "floswer.avi" --sout '#transcode{vcodec=h264,vb=320,scale=1,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=F4_2.avi}}'
vlc -vvv "floswer.avi" --sout '#transcode{vcodec=h264,vb=600,scale=0.75,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=F4_3.avi}}'
vlc -vvv "floswer.avi" --sout '#transcode{vcodec=h264,vb=600,scale=1,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=F4_4.avi}}'
vlc -vvv "floswer.avi" --sout '#transcode{vcodec=h264,vb=1500,scale=1,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=F4_5.avi}}'
vlc -vvv "floswer.avi" --sout '#transcode{vcodec=h264,vb=1500,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=F4_6.avi}}'vlc -vvv "Golden.avi" --sout '#transcode{vcodec=h264,vb=320,scale=0.75,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=GOLDEN_1.avi}}'
vlc -vvv "Golden.avi" --sout '#transcode{vcodec=h264,vb=320,scale=1,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=GOLDEN_2.avi}}'
vlc -vvv "Golden.avi" --sout '#transcode{vcodec=h264,vb=600,scale=0.75,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=GOLDEN_3.avi}}'
vlc -vvv "Golden.avi" --sout '#transcode{vcodec=h264,vb=600,scale=1,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=GOLDEN_4.avi}}'
vlc -vvv "Golden.avi" --sout '#transcode{vcodec=h264,vb=1500,scale=1,acodec=mp4a,ab=64,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=GOLDEN_5.avi}}'
vlc -vvv "Golden.avi" --sout '#transcode{vcodec=h264,vb=1500,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=GOLDEN_6.avi}}'
VLC 쉘… 괜찮은데? 이용해서 배치 트랜스코더를 만들어볼까?
'Media Tech > H.264,VC-1,Codec' 카테고리의 다른 글
FFMPEG Rebuild (0) | 2009.12.09 |
---|---|
Apple's Darwin Streaming Server On Fedora 10 (0) | 2009.04.16 |
MKV 포맷... (3) | 2008.09.22 |
Video codecs tutorial (0) | 2007.07.12 |
[본문 스크랩] ADPCM/PCM (0) | 2006.05.29 |