Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2015-01-02 18:56:10

  vnu007dl - Użytkownik

vnu007dl
Użytkownik
Zarejestrowany: 2010-11-01

serwer dlna - android nie widzi serwera

Hej
N moim PC na którym obecnie stoi Kubuntu 14.10 zainstalowałem serwer minidlna. chciałbym z niego odtwarzać pliki multimedialne na moim tablecie galaxy tab 2 który pracuje oczywiście pod kontrolą androida. Niestety problem jet taki że chociaż serwer działa ( tak mi się przynajmniej wydaje) tablet w ogóle nie widzi serwera dlna, instalwoałem różne programy do obsługi dlna, ale żaden nie widzi serwera na PC. Co może być tego przyczyną?
Poniżej podaję mój config  w /etc :

Kod:

# port for HTTP (descriptions, SOAP, media transfer) traffic
 port=8200

 # network interface to bind to (this is the only interface that will serve files)
 #network_interface=eth0

 # set this to the directory you want scanned.
 # * if have multiple directories, you can have multiple media_dir= lines
 # * if you want to restrict a media_dir to a specific content type, you
 #   can prepend the type, followed by a comma, to the directory:
 #   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
 #   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
 #   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
media_dir=V,/home/pc/Downloads
media_dir=V,/mnt/FILMY
media_dir=V,/mnt/Media
media_dir=A,/mnt/Dane/Muzyka
 # set this if you want to customize the name that shows up on your clients
friendly_name=Kubuntu

 # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
 #db_dir=/var/cache/minidlna

 # this should be a list of file names to check for when searching for album art
 # note: names should be delimited with a forward slash ("/")
 album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

 # set this to no to disable inotify monitoring to automatically discover new files
 # note: the default is yes
 inotify=yes

 # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
 enable_tivo=no

 # set this to strictly adhere to DLNA standards.
 # * This will allow server-side downscaling of very large JPEG images,
 #   which may hurt JPEG serving performance on (at least) Sony DLNA products.
 strict_dlna=no

 # default presentation url is http address on port 80
 #presentation_url=http://www.mylan/index.php

 # notify interval in seconds. default is 895 seconds.
 notify_interval=900

 # serial and model number the daemon will report to clients
 # in its XML description
 serial=12345678
 model_number=1

Czy może nie działać dlatego że PC do routera jest podłączony kablem przez kartę sieciową a nie przez wifi?

Offline

 

#2  2015-01-02 20:39:13

  rulezdc - Członek DUG

rulezdc
Członek DUG
Skąd: Tarnowskie Góry
Zarejestrowany: 2007-05-22

Re: serwer dlna - android nie widzi serwera

Cześć
Tu masz mój plik konfiguracyjny:

Kod:

# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interfaces to serve, comma delimited
#network_interface=eth0

# specify the user account name or uid to run as
#user=jmaggard

# set this to the directory you want scanned.
# * if you want multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to specific content types, you
#   can prepend the types, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
#   + "PV" for pictures and video (eg. media_dir=PV,/home/jmaggard/digital_camera)
media_dir=V,/films

# set this to merge all media_dir base contents into the root container
# note: the default is no
#merge_media_dirs=no

# set this if you want to customize the name that shows up on your clients
friendly_name=dnla

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/var/cache/minidlna

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/var/log/minidlna

# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=yes

# default presentation url is http address on port 80
#presentation_url=http://www.mylan/index.php

# notify interval in seconds. default is 895 seconds.
notify_interval=900

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
#minissdpdsocket=/var/run/minissdpd.sock

# use different container as root of the tree
# possible values:
#   + "." - use standard container (this is the default)
#   + "B" - "Browse Directory"
#   + "M" - "Music"
#   + "V" - "Video"
#   + "P" - "Pictures"
#   + Or, you can specify the ObjectID of your desired root container (eg. 1$F for Music/Playlists)
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.

# always force SortCriteria to this value, regardless of the SortCriteria passed by the client
#force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
max_connections=1000

Do tego zobacz czy masz otwarty odpowiedni port: standardowo 8200
Zobacz czy masz plik bazy danych w /var/cache/minidlna/files.db
Jak nie masz no to nie powinno ci to działać, trzeba pamiętać aby plik po dodaniu nowych mediów wykasować aby serwer go stworzył na nowo
Możesz sprawdzić, ile widzisz plików poprzez stronke localhost:8200 

Trzecia rzecz, to jakie media chcesz odtwarzać, z tego co się orientowałem, to następujące działają:
MP4 z H.264 i AAC
AVI z XViD/DivX i MP3
nie działają:
MKV z H.264 i AC3
WEBM

Ja niektóre konwertowałem aby minidlna działało
Możesz jeszcze użyć PS3 Media Server lub Serviio

Offline

 

#3  2015-01-02 22:01:32

  vnu007dl - Użytkownik

vnu007dl
Użytkownik
Zarejestrowany: 2010-11-01

Re: serwer dlna - android nie widzi serwera

hmm
Mam plik db w /var/cache/minidlna a w przeglądarce mogę zobaczyć ile mam tam plików, ale dalej android nie widzi mi serwera, dlaczego? Czy może dlatego że PC jest podłączony do routera po kablu a nie po wifi?

Offline

 

#4  2015-01-03 11:18:01

  vnu007dl - Użytkownik

vnu007dl
Użytkownik
Zarejestrowany: 2010-11-01

Re: serwer dlna - android nie widzi serwera

Ok udało się, ruszyło coś wreszcie i tablet widzi serwer na PC, ale problem jest taki, że widzi tylko 1 folder tj: media_dir=V,/home/pc/Downloads
Nie widzi za to pozostałych folderów, dlaczego, może chodzi o prawa dostępu? Skro tak to jak je ustawić? To już są wszystko partycje montowane w /mnt

Pytane 2 , jak podpiąć napisy do filmu? Bo teraz widzi mi film i mogę go uruchomić, ale odtwarzacz na tablecie nie widzi mi napisów które są w katalogu z filmem i nie mogę ich załadować.

Offline

 

#5  2015-01-03 11:30:16

  rulezdc - Członek DUG

rulezdc
Członek DUG
Skąd: Tarnowskie Góry
Zarejestrowany: 2007-05-22

Re: serwer dlna - android nie widzi serwera

sprawdz uprawnienia
do katalogow i do plikow powinny miec przynajmniej r na other
nie ma roznicy gdzie montujesz

Offline

 

#6  2015-01-03 14:40:06

  vnu007dl - Użytkownik

vnu007dl
Użytkownik
Zarejestrowany: 2010-11-01

Re: serwer dlna - android nie widzi serwera

to była chyba kwestia uprawnień, działa super, ale ponawiam pytanie co z napisami? muszę ściągać je osobno?
Zastanawiam się jeszcze nad taką kwestią czy da się zrobić tak aby foldery które udostępnia minidlna były jakoś widoczne w tej głównej aplikacji galeria  w androidzie w której mamy dostęp do wszystkich mediów?

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)

[ Generated in 0.008 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00011 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00104 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.138.110.119' WHERE u.id=1
0.00065 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.138.110.119', 1714719991)
0.00052 SELECT * FROM punbb_online WHERE logged<1714719691
0.00068 SELECT topic_id FROM punbb_posts WHERE id=280749
0.00115 SELECT id FROM punbb_posts WHERE topic_id=26864 ORDER BY posted
0.00060 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=26864 AND t.moved_to IS NULL
0.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00086 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=26864 ORDER BY p.id LIMIT 0,25
0.00092 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=26864
Total query time: 0.00662 s