WD My Book Live에 SMI 자막 인식하는 minidlna 설치하기
컨텐츠 정보
- 43,179 조회
- 16 댓글
- 0 추천
- 목록
본문
1. 들어가며
MBL에 깔려 있는 DLNA 미디어 서버는 구형스마트TV에서 SMI 자막 파일을 인식할 수 없습니다.
최신 스마트TV에서만 SMI 파일을 인식하기 때문에 기존 DLNA 서버로 SMI 인식이 안된다면 지금 강좌가 필요할 것입니다.
사실 스마트TV가 없어서 강좌를 안쓰려고 했는데...
아무래도 한번은 써야되지 않을까 싶어서 각종 글들을 섭렵(?)하여 종합판을 만들었습니다.
완전 초기화 후 설치를 했기 때문에 기존에 설치 실패하신 분들은 약간 다를 수 있습니다.
제가 참고한 글들입니다.
minidlna 패키지 : 소으니님의 SMI 인식 패키지 (원문링크)
설치 방법 : ilreme님의 설치 강좌 (원문링크)
2. 기존 DLNA 미디어 서버 정지
▲ 위와 같이 대시보드에서 설정 -> 미디어 -> DLNA 미디어서버 -> 미디어 스트리밍 체크 해제를 합니다.
3. 소스리스트 복원
혹시나 예전 강좌들을 진행하면서 소스리스트가 수정된 상태로 되어 있다면
복원시켜야 합니다.
nano /etc/apt/sources.list
위 명령어로 소스리스트에 들어갑니다.
deb http://ftp.us.debian.org/debian/ squeeze main
deb http://ftp.us.debian.org/debian/ wheezy main
#deb-src http://ftp.us.debian.org/debian/ wheezy main
#deb http://ftp.us.debian.org/debian/ sid main
혹시 위와 다르다면 기존에 있던 것을 다 지우고 (컨트롤 + K)
그대로 붙여 넣은 다음 컨트롤 + O, 엔터, 컨트롤 + X 로 저장 후 나갑니다.
만약에 위와 같다면 그냥 컨트롤 + X를 누릅니다.
4. 소스리스트 업데이트
apt-get update
위와 같이 소스리스트를 업데이트 합니다.
MyBookLive:~# apt-get update
Get:1 http://ftp.us.debian.org squeeze Release.gpg [1672B]
Get:2 http://ftp.us.debian.org wheezy Release.gpg [1672B]
Get:3 http://ftp.us.debian.org squeeze Release [99.8kB]
Ign http://ftp.us.debian.org squeeze Release
Get:4 http://ftp.us.debian.org wheezy Release [168kB]
Ign http://ftp.us.debian.org wheezy Release
Get:5 http://ftp.us.debian.org squeeze/main Packages [6490kB]
Get:6 http://ftp.us.debian.org wheezy/main Packages [5747kB]
Fetched 12.5MB in 42s (293kB/s)
Reading package lists... Done
MyBookLive:~#
위와 같이 진행됩니다.
5. 기타 패키지 설치
apt-get install libexif12 libid3tag0 libjpeg8 libavformat53 libavutil51
위 명령어로 기타 패키지들을 먼저 설치합니다.
처음에 물어보면 Y 엔터, 두번째 물어봐도 Y 엔터를 누릅니다.
MyBookLive:~# apt-get install libexif12 libid3tag0 libjpeg8 libavformat53 libavutil51
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavcodec53 libmp3lame0 librtmp0 libtheora0 libva1 libvpx1 libx264-123
libxvidcore4
The following NEW packages will be installed:
libavcodec53 libavformat53 libavutil51 libexif12 libid3tag0 libjpeg8
libmp3lame0 librtmp0 libva1 libvpx1 libx264-123 libxvidcore4
The following packages will be upgraded:
libtheora0
1 upgraded, 12 newly installed, 0 to remove and 307 not upgraded.
Need to get 6733kB of archives.
After this operation, 21.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libavutil51 libmp3lame0 libtheora0 libva1 libvpx1 libx264-123 libxvidcore4
libavcodec53 librtmp0 libavformat53 libexif12 libjpeg8 libid3tag0
Install these packages without verification [y/N]? y
Get:1 http://ftp.us.debian.org wheezy/main libavutil51 6:0.8.6-1 [104kB]
Get:2 http://ftp.us.debian.org wheezy/main libmp3lame0 3.99.5+repack1-3 [393kB]
Get:3 http://ftp.us.debian.org wheezy/main libtheora0 1.1.1+dfsg.1-3.1 [398kB]
Get:4 http://ftp.us.debian.org wheezy/main libva1 1.0.15-4 [40.1kB]
Get:5 http://ftp.us.debian.org wheezy/main libvpx1 1.1.0-1 [275kB]
Get:6 http://ftp.us.debian.org wheezy/main libx264-123 2:0.123.2189+git35cf912-1 [901kB]
Get:7 http://ftp.us.debian.org wheezy/main libxvidcore4 2:1.3.2-9 [318kB]
Get:8 http://ftp.us.debian.org wheezy/main libavcodec53 6:0.8.6-1 [2981kB]
Get:9 http://ftp.us.debian.org wheezy/main librtmp0 2.4+20111222.git4e06e21-1 [61.7kB]
Get:10 http://ftp.us.debian.org wheezy/main libavformat53 6:0.8.6-1 [513kB]
Get:11 http://ftp.us.debian.org wheezy/main libexif12 0.6.20-3 [580kB]
Get:12 http://ftp.us.debian.org wheezy/main libjpeg8 8d-1 [130kB]
Get:13 http://ftp.us.debian.org squeeze/main libid3tag0 0.15.1b-10 [38.2kB]
Fetched 6733kB in 3s (1763kB/s)
Selecting previously deselected package libavutil51.
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.
(Reading database ... 18717 files and directories currently installed.)
Unpacking libavutil51 (from .../libavutil51_6%3a0.8.6-1_powerpc.deb) ...
Selecting previously deselected package libmp3lame0.
Unpacking libmp3lame0 (from .../libmp3lame0_3.99.5+repack1-3_powerpc.deb) ...
Preparing to replace libtheora0 1.0~beta3-1 (using .../libtheora0_1.1.1+dfsg.1-3.1_powerpc.deb) ...
Unpacking replacement libtheora0 ...
Selecting previously deselected package libva1.
Unpacking libva1 (from .../libva1_1.0.15-4_powerpc.deb) ...
Selecting previously deselected package libvpx1.
Unpacking libvpx1 (from .../libvpx1_1.1.0-1_powerpc.deb) ...
Selecting previously deselected package libx264-123.
Unpacking libx264-123 (from .../libx264-123_2%3a0.123.2189+git35cf912-1_powerpc.deb) ...
Selecting previously deselected package libxvidcore4.
Unpacking libxvidcore4 (from .../libxvidcore4_2%3a1.3.2-9_powerpc.deb) ...
Selecting previously deselected package libavcodec53.
Unpacking libavcodec53 (from .../libavcodec53_6%3a0.8.6-1_powerpc.deb) ...
Selecting previously deselected package librtmp0.
Unpacking librtmp0 (from .../librtmp0_2.4+20111222.git4e06e21-1_powerpc.deb) ...
Selecting previously deselected package libavformat53.
Unpacking libavformat53 (from .../libavformat53_6%3a0.8.6-1_powerpc.deb) ...
Selecting previously deselected package libexif12.
Unpacking libexif12 (from .../libexif12_0.6.20-3_powerpc.deb) ...
Selecting previously deselected package libjpeg8.
Unpacking libjpeg8 (from .../libjpeg8_8d-1_powerpc.deb) ...
Selecting previously deselected package libid3tag0.
Unpacking libid3tag0 (from .../libid3tag0_0.15.1b-10_powerpc.deb) ...
Setting up libavutil51 (6:0.8.6-1) ...
Setting up libmp3lame0 (3.99.5+repack1-3) ...
Setting up libtheora0 (1.1.1+dfsg.1-3.1) ...
Setting up libva1 (1.0.15-4) ...
Setting up libvpx1 (1.1.0-1) ...
Setting up libx264-123 (2:0.123.2189+git35cf912-1) ...
Setting up libxvidcore4 (2:1.3.2-9) ...
Setting up libavcodec53 (6:0.8.6-1) ...
Setting up librtmp0 (2.4+20111222.git4e06e21-1) ...
Setting up libavformat53 (6:0.8.6-1) ...
Setting up libexif12 (0.6.20-3) ...
Setting up libjpeg8 (8d-1) ...
Setting up libid3tag0 (0.15.1b-10) ...
MyBookLive:~#
위와 같이 진행됩니다.
6. 소으니님의 SMI 인식되는 패키지 다운 및 설치
wget -O minidlna_1.0.24.dfsg.smi1.powerpc.deb https://www.dropbox.com/s/j3herze9tzycws6/minidlna_1.0.24.dfsg.smi1.powerpc.deb
위 명령어로 소으니님의 파일을 받습니다.
MyBookLive:~# wget -O minidlna_1.0.24.dfsg.smi1.powerpc.deb https://www.dropbox.com/s/j3herze9tzycws6/minidlna_1.0.24.dfsg.smi1.powerpc.deb
--2014-01-27 03:12:46-- https://www.dropbox.com/s/j3herze9tzycws6/minidlna_1.0.24.dfsg.smi1.powerpc.deb
Resolving www.dropbox.com... 108.160.166.13
Connecting to www.dropbox.com|108.160.166.13|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/taoh31tr1ak8gfr/minidlna_1.0.24.dfsg.smi1.powerpc.deb?token_hash=AAHEnj9rTrxnf7Dk0Q67I0mTTi0iZ01GpDwadE2lzL5BUw [following]
--2014-01-27 03:12:47-- https://dl.dropboxusercontent.com/s/taoh31tr1ak8gfr/minidlna_1.0.24.dfsg.smi1.powerpc.deb?token_hash=AAHEnj9rTrxnf7Dk0Q67I0mTTi0iZ01GpDwadE2lzL5BUw
Resolving dl.dropboxusercontent.com... 54.235.132.16
Connecting to dl.dropboxusercontent.com|54.235.132.16|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 145928 (143K) [application/x-debian-package]
Saving to: `minidlna_1.0.24.dfsg.smi1.powerpc.deb'
100%[======================================>] 145,928 186K/s in 0.8s
2014-01-27 03:12:49 (186 KB/s) - `minidlna_1.0.24.dfsg.smi1.powerpc.deb' saved [145928/145928]
MyBookLive:~#
위와 같이 받아집니다.
ln -s /var/run /run
mkdir /var/run/minidlna
위 명령어를 통해 minidlna가 실행될 수 있게 만듭니다.
dpkg -i minidlna_1.0.24.dfsg.smi1.powerpc.deb
위 명령어로 패키지를 설치합니다.
MyBookLive:~# dpkg -i minidlna_1.0.24.dfsg.smi1.powerpc.deb
Selecting previously deselected package minidlna.
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.
(Reading database ... 18834 files and directories currently installed.)
Unpacking minidlna (from minidlna_1.0.24.dfsg.smi1.powerpc.deb) ...
Setting up minidlna (1.0.24+dfsg+smi1) ...
Processing triggers for man-db ...
MyBookLive:~#
위와 같이 설치가 잘 됩니다.
/etc/init.d/minidlna stop
위 명령어로 minidlna를 정지합니다.
7. 각종 권한 설정 및 conf 파일 수정하기
mkdir /DataVolume/minidlna
mkdir /DataVolume/minidlna/log
mkdir /DataVolume/minidlna/db
chown -R minidlna:minidlna /DataVolume/minidlna
위 4개의 명령어로 minidlna가 쌓을 log와 db 폴더를 생성하고 권한을 지정합니다.
nano /etc/minidlna.conf
위 명령어로 minidlna 설정에 들어갑니다.
# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# Unless otherwise noted, the commented out options show their default value.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.
# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
# * "A" for audio (eg. media_dir=A,/var/lib/minidlna/music)
# * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
# * "V" for video (eg. media_dir=V,/var/lib/minidlna/videos)
#
# WARNING: After changing this option, you need to rebuild the database. Either
# run minidlna with the '-R' option, or delete the 'files.db' file
# from the db_dir directory (see below).
# On Debian, you can run, as root, 'service minidlna force-reload' ins$
media_dir=/shares
# Path to the directory that should hold the database and album art cache.
db_dir=/DataVolume/minidlna/db
# Path to the directory that should hold the log file.
log_dir=/DataVolume/minidlna/log
# Minimum level of importance of messages to be logged.
# Must be one of "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#log_level=warn
# Use a different container as the root of the directory tree presented to
# clients. The possible values are:
# * "." - standard container
# * "B" - "Browse Directory"
# * "M" - "Music"
# * "P" - "Pictures"
# * "V" - "Video"
# if you specify "B" and client device is audio-only then "Music/Folders" will $
#root_container=.
# Network interface(s) to bind to (e.g. eth0), comma delimited.
#network_interface=
# IPv4 address to listen on (e.g. 192.0.2.1).
#listening_ip=
# Port number for HTTP traffic (descriptions, SOAP, media transfer).
port=8200
# URL presented to clients.
# The default is the IP address of the server on port 80.
#presentation_url=http://example.com:80
# Name that the DLNA server presents to clients.
friendly_name= My Book Live DLNA
# Serial number the server reports to clients.
serial=12345678
# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)
# Model number the server reports to clients.
model_number=1
# Automatic discovery of new files in the media_dir directory.
inotify=yes
# List of file names to look for when searching for album art. Names should be
# delimited with a forward slash ("/").
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumAr$
# Strictly adhere to DLNA standards.
# This allows server-side downscaling of very large JPEG images, which may
# decrease JPEG serving performance on (at least) Sony DLNA products.
#strict_dlna=no
# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no
# Notify interval, in seconds.
notify_interval=86400
# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock
위와 같이 설정 후 컨트롤 + O, 엔터, 컨트롤 + X 로 저장 후 나갑니다.
nano /etc/sysctl.d/inotify.conf
위 명령어를 내리면 32768 이라고 되어 있는데
#
# System variables for inotify configuration
#
fs.inotify.max_user_watches = 100000
위와 같이 100000 으로 고치고 컨트롤 + O, 엔터, 컨트롤 + X를 누르면 저장 후 닫아집니다.
해당 작업은 log에 쌓이는 경고 부분을 없애기 위한 조치입니다.
reboot
위 명령어로 재부팅을 해줘야 정상 반영된다고 합니다.
/etc/init.d/minidlna force-reload
minidlna -R
위 두 명령어로 시작하고, 재기동을 합니다.
이제 share 폴더 밑에 Public이 접근할 수 있는 곳이면 minidlna가 들어가서 파일을 찾을 수 있습니다.
만약에 share 밑에 있더라도, 공용 억세스가 되어 있지 않으면 minidlna가 접근할 수 없어 DLNA로 볼 수 없습니다.
8. 삭제하기
dpkg -r minidlna
위 명령어로 삭제됩니다.
-
등록일 2016.01.23
-
등록일 2015.12.23WD My Cloud 시놀로지OS 사용기댓글 102
-
등록일 2014.10.07
-
등록일 2014.10.06
관련자료
-
서명우성짱의 NAS를 운영하고 있습니다.
저의 즐거움이 여러분의 즐거움이면 좋겠습니다.
난백돼지님의 댓글
설치후 TV 화면에서 shares 아래에 여러개 폴더가 있는데 일부분 폴더가 보이질 않습니다.
보이는 폴더 를 TV 에서 접속해 보면 일부분의 영화 파일들만 보입니다. ㅠㅠ
그래서 권한 설정을 모두 다시 해주었고요
chomd 777 -R 해당폴더..
그래도 TV 화면에서 안보이네요
/DataVolume/minidlna/db/files.db 도 삭제 해보고
그래서 reboot 과
/etc/init.d/minidlna force-reload
minidlna -R
이 명령어를 여러차례 해 보았지만 shares 아래 폴더와 내용이 보이질 않습니다.
혹시나 기존 DLNA 시작 시킨후 TV 에서 보면 2개의 DLNA 가 보이는데요 기존 DLNA 에서는 모든 폴더가 정상적으로 보입니다.
어떤작업을 해 주어야 할까요?
보홀원숭이님의 댓글
4번 소스 리스트 업데이트 하는데 업데이트 용량이 12.5MB가 안나오네요
MyBookLive:~# apt-get update
Ign http://ftp.us.debian.org squeeze Release.gpg
Get:1 http://ftp.us.debian.org wheezy Release.gpg [2373B]
Ign http://ftp.us.debian.org squeeze Release
Hit http://ftp.us.debian.org wheezy Release
Ign http://ftp.us.debian.org squeeze/main Packages/DiffIndex
Get:2 http://ftp.us.debian.org wheezy Release [191kB]
Ign http://ftp.us.debian.org wheezy Release
Ign http://ftp.us.debian.org squeeze/main Packages
Ign http://ftp.us.debian.org wheezy/main Packages/DiffIndex
Ign http://ftp.us.debian.org squeeze/main Packages
Hit http://ftp.us.debian.org wheezy/main Packages
Err http://ftp.us.debian.org squeeze/main Packages
404 Not Found [IP: 64.50.236.52 80]
Fetched 194kB in 3s (59.7kB/s)
W: GPG error: http://ftp.us.debian.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 6FB2A1C265FFB764
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/main/binary-powerpc/Packages 404 Not Found [IP: 64.50.236.52 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.
이렇게 나오는데 왜 안되는 상황일까요?? ㅠㅠ
한밭인님의 댓글
Ign http://ftp.us.debian.org wheezy Release.gpg
Ign http://ftp.us.debian.org wheezy Release
Ign http://ftp.us.debian.org wheezy/main Packages/DiffIndex
Ign http://ftp.us.debian.org wheezy/main Sources
Ign http://ftp.us.debian.org wheezy/main Packages
Ign http://ftp.us.debian.org wheezy/main Sources
Ign http://ftp.us.debian.org wheezy/main Packages
Err http://ftp.us.debian.org wheezy/main Sources
404 Not Found [IP: 208.80.154.139 80]
Err http://ftp.us.debian.org wheezy/main Packages
404 Not Found [IP: 208.80.154.139 80]
W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/main/source/Sources 404 Not Found [IP: 208.80.154.139 80]
W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/main/binary-powerpc/Packages 404 Not Found [IP: 208.80.154.139 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.
이제 오래돼서 패키지 파일이 없어져서 진행이 안되는 건가요?ㅠ
minidlna 사용하고 싶은데 진행이 안돼서 어떻게 해야할지 모르겠는데 도와주세요