maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Jolla as a Mediaserver ? (https://talk.maemo.org/showthread.php?t=93499)

cvp 2014-07-24 14:54

Jolla as a Mediaserver ?
 
Is it possible that to reveal Jolla smartphone as a media server?

I wanted to send my music files on my Marantz AV receiver. Only the Android Marantz program does not have the function. However, I can make search a Media Server.
The Sailfish program "upnpplayer" cant also send out any files from the smartphone.
Therefore, I am looking for a way to reveal the smartphone itself as a media server.

nieldk 2014-07-24 15:34

Re: Jolla as a Mediaserver ?
 
https://openrepos.net/content/nieldk/minidlna

for howto: http://www.htpcbeginner.com/install-...imate-guide/3/

cvp 2014-07-26 21:48

Re: Jolla as a Mediaserver ?
 
hmm, i install minidlna, but cant find the .minidlna or minidlna.conf on jolla. do i need to install something exept minidlna from open repos ?

nieldk 2014-07-27 05:33

Re: Jolla as a Mediaserver ?
 
Quote:

Originally Posted by cvp (Post 1433983)
hmm, i install minidlna, but cant find the .minidlna or minidlna.conf on jolla. do i need to install something exept minidlna from open repos ?

create /etc/minidlna.conf which contains this

Code:

media_dir=V,/home/nemo/Videos
media_dir=P,/home/nemo/Pictures
media_dir=A,/home/nemo/Music

friendly_name=My DLNA Server

start from terminal (as normal 'nemo' user

Code:

$ minidlnad -R
The '-R' option is to tell minidlna to rescan media

cvp 2014-07-27 07:26

Re: Jolla as a Mediaserver ?
 
thanks for help.

the command "minidlna -R" with or withoit -R is it not working. I get:

bash: minidlna: command not found

if i type minid and press Tab, there find only minidlnad (with "d" on the end).

and yes i am sure that i install minidlna from open repos :)


EDIT: ok solved... its "minidlnad -R" now my av receiver find my Phone and can stream the files :) VERY Cool, and thank you very much for "minidlna" :)

zlatko 2014-07-27 10:15

Re: Jolla as a Mediaserver ?
 
I can not get it to work. After I run "minidlnad -R" i do not see any process connected with DLNA running on Jolla.

cvp 2014-07-27 10:44

Re: Jolla as a Mediaserver ?
 
you dont see any process, but you dont get any error massage like command not found or so.!
But if you restart the av receiver and check if there is a ne mediaplayer aviable, than you find your Jolla as the name what you have choosen. If you use upnpplayer for Sailfish, than you need kick/delete the existing av receiver from the list and put a new one into, than you will listed your jolla phone in the mediaplayer list on the app.

her is my minidlna.conf, check if you have the same information on your config file:
Quote:

# 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=nemo

# 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=AV,/home/jmaggard/digital_camera)
media_dir=V,/home/nemo/Videos
media_dir=P,/home/nemo/Pictures
media_dir=A,/home/nemo/Music

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

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

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

# 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,scanne r,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=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=895

# 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"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.
so you can read, friendly_name=Jolla DLNA Server, this you will find than on the av receiver or upnpplayer.

to stop the Service you type the command in Terminal:
killall minidlnad

zlatko 2014-07-27 11:01

Re: Jolla as a Mediaserver ?
 
I run minidlna i debug mode and found it was issue with permissions: both
Code:

/var/cache/minidlna
and
Code:

/var/run/minidlna
were with owner root. I tried running the application as root - all worked fine. Then I just changed the permission to nemo and now I can run it in user mode. Thank you @nieldk!

@cvp when DLNA server is running - there is a process :) You can not have something running just like that :)

Code:

[nemo@Jolla ~]$ ps ax|grep mini
11438 ?        Ssl    0:00 minidlnad -R
11456 pts/0    S+    0:00 grep mini


nieldk 2014-07-27 15:01

Re: Jolla as a Mediaserver ?
 
good feedback ,i will update package


All times are GMT. The time now is 18:27.

vBulletin® Version 3.8.8