PDA

Bekijk de volledige versie : minidlna media server for asus routers



shantanugoel
22-02-2011, 19:34
Hi Guys

I just compiled the awesome minidlna media server for our asus routers. I haven't been able to get the cross compile toolchain and ipkg setup going yet, so compiling it natively on the router. You can get the source code and compiled binaries from the github repository: https://github.com/shantanugoel/minidlna-asus

This also includes some awesome patches for samsung tvs that haven't been upstream'ed yet.

Please let me know if you want to see anything special added to it or have any ideas/code to incorporate.

yaqwsx
23-02-2011, 13:35
Hi, I've tried to compile miniDLNA server. I run make and I got lots of errors. Where's problem? (If I make anything wrong don't be mad at me - I'm new with Linux)
Log is in attachment

Thanks for answering me

shantanugoel
24-02-2011, 03:49
you are missing some dependency packages on your system. I'll put up the complete instructions for from-scratch building and installation this weekend.

yaqwsx
24-02-2011, 21:01
I finally find out where's problem - I missed ffmpeg library. I thought I've got it. Now is everything working. Thanks!

bebef_1987
28-03-2011, 01:50
Hy
where can i find all the dependences?

thanks

wpte
28-03-2011, 17:01
I haven't been able to get the cross compile toolchain and ipkg setup going yet, so compiling it natively on the router.

ipkg tools can be found in the firmware modkit: http://code.google.com/p/firmware-mod-kit/
just in the ipkg template where they explain how to do it, quite easy.
Don't forget to remove the .svn folder when you make a ipkg;)

For the toolchain just get this: http://code.google.com/p/wl500g/downloads/list?can=2&q=hndtools-mipsel-uclibc-4.3.5-K26-&colspec=Filename+Summary+Uploaded+Size+DownloadCou nt
(32/64bit)
extract it in /opt/brcm
Rename the folder so that you'll have "/opt/brcm/hndtools-mipsel-uclibc"

then just add it to your path (command line):

export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin

then you could use ./configure like this

./configure --prefix=/opt --host=mipsel-linux
presuming you have the default developer tools installed:)

bourbaki
30-03-2011, 09:52
Hi,

Thank for the post. I could compile the app and run it but unfortunately got "Unhanded format" message at my TV for every movie.

BTW: I had the same trouble for mkv at my Linux box. The problem was related to ffmpeg.
Which ffmepg version did you use. I used the last one from http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ : ffmpeg_0.svn20080409-3_mipsel.ipk

Stewa
04-04-2011, 19:42
Good job,

I was looking for DLNA server few months ago and finally buy Twonky server, which is good, but some FastForward/Backwards, subtitles and language features are not working.

Have you made a list of your miniDLNA server features?

shantanugoel
02-08-2011, 17:06
Hi,

Thank for the post. I could compile the app and run it but unfortunately got "Unhanded format" message at my TV for every movie.

BTW: I had the same trouble for mkv at my Linux box. The problem was related to ffmpeg.
Which ffmepg version did you use. I used the last one from http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ : ffmpeg_0.svn20080409-3_mipsel.ipk


I'm using the same ffmpeg. Your TV might not be supporting the format of the video. Anyways, this seems like an upstream issue. You can report the same at http://sourceforge.net/projects/minidlna/

shantanugoel
02-08-2011, 17:07
Good job,

I was looking for DLNA server few months ago and finally buy Twonky server, which is good, but some FastForward/Backwards, subtitles and language features are not working.

Have you made a list of your miniDLNA server features?

Please see http://sourceforge.net/projects/minidlna/ for all the features supported by upstream. I'm just trying to port it to asus routers (and take some patches that haven't made it to upstream yet)

Edit: BTW, I have updated my github repo ( https://github.com/shantanugoel/minidlna-asus )with the latest minidlna 1.0.21. This is vanilla version though and I haven't merged in any samsung TV specific patches yet that I had done last time.

!gm
26-09-2011, 09:49
Hey shantanugoel!

thanks for the git! I successful compiled the asus-samsung branch after meeting the prerequisites (flac was missing in my case)
I just switched from mediatomb to minidlna, because of the working autoscan.

DLNA renderer is a Samsung UE37C6700 with T-VALDEUC-3009.2 FW
I'm now testing subtitles.


can you specify what samsung specific patches there are around?

here my start-stop script (altered from lighttpd)


#!/bin/sh

prefix="/opt"
PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=minidlna
DAEMON=${prefix}/sbin/${NAME}
DAEMON_OPTS="-f ${prefix}/etc/minidlna.conf"

test -x $DAEMON || exit 0

if [ -z "$1" ] ; then
case `echo "$0" | sed 's:^.*/\(.*\):\1:g'` in
S??*) rc="start" ;;
K??*) rc="stop" ;;
*) rc="usage" ;;
esac
else
rc="$1"
fi

case "$rc" in
start)
echo "Starting dlna server: $NAME"
$DAEMON $DAEMON_OPTS
;;
stop)
if [ -n "`pidof $NAME`" ]; then
echo "Stopping dlna server: $NAME"
killall $NAME 2> /dev/null
fi
;;
restart)
"$0" stop
sleep 1
"$0" start
;;
*)
echo "Usage: $0 (start|stop|restart|usage)"
;;
esac

exit 0

shantanugoel
27-09-2011, 04:25
hey !gm. Most of the samsung patches that I was working on have been integrated into upstream already and the asus-samsung branch is now same as the asus branch. The subtitles menu should work with the tip as my patch was upstreamed in late august and i've merged that as well to git.

Edit: BTW, thanks for your start-stop script. I had created a basic version for my use. Will test yours and update the repo with it so that users can get a working one directly.

!gm
27-09-2011, 17:25
yes subs worked, as expected... (only as .srt not embedded in containers)

As well as wpte I encourage you too, to create that ipk :rolleyes:
So people with fears of compiling minidlna, can get access to that great media-server.

S.o. with access will upload it to the repository soon and since you are active in minidlna-development you'll be the perfect maintainer.

I can help you sorting out the dependencies by mounting a new /opt and test the ipk, if you have trouble with that.

lau_swat
23-10-2011, 16:46
Hi guys,

Can you please tell me what dependencies minidlna needs, I installed libvorbis libid3tag libexif libsqlite3, the ones that I got an error in the make process but still it won't compile.

Thanks, Laurentiu


LE: I managed to solve the dependecy problem, but when I say make it gives the error that gcc is not installed

How should I handle this?

Thanks again


LLE:

Finally managed to get minidlna working, these were the steps:

downloaded minidlna from: https://github.com/shantanugoel/minidlna-asus
unziped it
install all the dependencies:
libavcodec libavformat libavutil libflac libvorbis libogg libid3tag libexif libjpeg libsqlite3
the I had a problem with gcc, couldn't get it sorted out without shantanugoels magic word "build-essential"

so I ran "ipkg install buildroot" which installed all the C libraries, gcc and gutils

after this I ran "make" and the compilation finished ok

after this "make install" with the observation that I have changed the installation destination to /usr/local in the "Makefile"

Thank you shantanugoels