Gentoo에서 Airvideo 설정하기

입질쾌감 물때표

젠투에서 Airvideo 설정하기

@@ 참고 사이트
http://blog.stevenlu.com/2012/09/10/installing-airvideo-server-on-debian-squeeze/

@@ 실행파일 만들기

vi /usr/bin/startAVS.sh

#!/bin/bash
ps aux | grep java | grep AirVideo | awk ‘{ print $2 }’ | xargs -I pid kill -9 pid
exec java -jar /opt/airvideoserver/AirVideoServerLinux.jar /opt/airvideoserver/properties.conf 2&>1 /dev/null &

vi /etc/conf.d/local
부팅시 자동실행되도록 할것
/usr/bin/startAVS.sh

@@ 인코딩 바꿔주는 스크립트

vi /usr/bin/convutf8.sh
#!/bin/bash
OIFS=”$IFS”
IFS=$’\n’
for file in `find . -type f -name “*.smi”`
do
iconv -c -f euckr -t utf8 “$file” > $file.tmp && mv -f $file.tmp $file
done
IFS=”$OIFS”
@@ conf 설정파일 만들기

 

folders = Movie:/home/webterror/public_html/STORAGE/Movie/,Drama:/home/webterror/public_html/STORAGE/Drama,MY_AV:/home/webterror/public_html/STORAGE/docs,SUKWANG_AV:/home/webterror/public_html/STORAGE/ayulove
subtitles.encoding = utf-8
subtitles.font = NanumGothic
password = 1234
path.ffmpeg = /opt/airvideoserver/libav/avconv

@@ 젠투를 전체 업그레이드 하면 라이브러리 링크 에러가 날수 있다. 예를 들어 libx264.so.120을 못찾는든지 하면 libav 라이브러리를 다시 재컴파일해서 설치해야 한다.
/root/temp 디렉토리에 라이브러리가 있음

@@ 패키지 설치
emerge -pv yasm lame faad2 x264

@@ libav 에어비디오용 ffmpeg 설치하기

wget http://s3.amazonaws.com/AirVideo/Linux-2.4.6-beta3/libav.tar.bz2
tar -xjvf libav.tar.bz2
cd libav
./configure –enable-pthreads –disable-shared –enable-static –enable-gpl –enable-libx264 –enable-libmp3lame –enable-nonfree –enable-encoder=libfaac
make

cd ..
sudo mkdir /opt/airvideoserver
mv libav /opt/airvideoserver

cd /etc/airvideo
wget http://s3.amazonaws.com/AirVideo/Linux-2.4.6-beta3/AirVideoServerLinux.jar

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다