설치하면서 안되는 부분만 약간 수정하였습니다.
원글 :
http://theeye.pe.kr/entry/installation-of-iPhone-air-video-server-for-linux-machine
1. 선행 작업
앞으로 설치할 라이브러리들은 기본적으로 /usr/local/lib 안에 설치가 됩니다. /etc/ld.so.conf에 다음을 추가하도록 합시다.
/usr/lib
/usr/local/lib
추가하셨으면
ldconfig를 한번 실행해 줍니다. 앞으로 작업중에 라이브러리를 못찾는 오류가 발생할때마다
ldconfig를 실행해주시기 바랍니다. 해당 라이브러리폴더안에 새로 추가된 라이브러리를 시스템상에 올려주는 작업을 합니다.
2. lame 설치 [링크]
./configure;make;make install
3. faac 설치 [링크]
./configure --without-mp4v2;make;make install
4. faad2 설치 [링크]
./configure;make;make install
5. x264 설치 [링크]
./configure --disable-asm --enable-shared;make;make install
6. sdl 설치 [링크]
여기서 소스코드로 tar.gz를 받는다.
./configure;make;make install
7. 커스터마이징된 ffmpeg 설치 [링크]
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
./configure --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame --enable-libfaad --disable-decoder=aac
make;make install
8. mpeg4ip 설치 [링크]
./bootstrap
./configure --disable-player;make;make install
여기서 에러나시는 분들은 yum install gcc-c++ 을 설치합니다.
=> 계속 에러가 난다 -.-; declare가 잘 못 된것 같은데.. 아직 방안을 찾는 중
http://rpm.pbone.net/index.php3/stat/4/idpl/15890296/dir/fedora_15/com/libmp4v2-1.5.0.1-11.fc15.i686.rpm.html
여기서 RPM 설치 ㅎ 되려나..
9. 폰트 추가
/usr/share/fonts에 원하는 ttf 폰트를 추가한 후 다음의 명령으로 폰트 리스트를 확인하여 줍니다. fc관련 명령이 없다면 [
이곳]의 fontconfig 설치 부분만 확인해 보시길 바랍니다.
fc-cache -f -v
fc-list
10. 설정 파일 추가
AirVideoServer를 구동하기 위해서는 설정파일이 필요합니다. sample.properties 파일을 제작합니다.
path.ffmpeg = /usr/local/bin/ffmpeg
path.mp4creator = /usr/local/bin/mp4creator
path.faac = /usr/local/bin/faac
password = 원하는pw (숫자4자리)
subtitles.encoding = UTF-8
subtitles.font = Malgun Gothic
folders = Movies:/Volume/Movies;TV:/Volume/TvPrograms
font부분은
fc-list에서 젤 앞에 나오는 이름으로 적어주시면 됩니다.
folder의 경우에는
라벨:경로로 구성하시면 됩니다. 여러개를 등록하려면 ;로 구분을 지어주시면 됩니다.
11. 서버 실행
첨부한 버젼은 현재의 최신버젼인 Alpha4 입니다. 리눅스 서버의 적당한 위치에 올려두도록 합시다.
java -jar AirVideoServerLinux.jar sample.properties
12. 클라이언트 접속
이제 아이폰에 설치된 AirVideo를 이용하여 서버에 접속하여 봅시다. IP를 직접 입력하시면 됩니다. 서버는
45631 포트를 사용하므로 혹시 방화벽을 사용중이라면 해제해 주도록 합시다. 해보니 잘 되는군요.