DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#26 2008-01-16 23:10:43

gartylad
Member
Registered: 2007-01-15
Posts: 30

Re: Compiled & working: Mediatomb!

Cheers HaydnH

Didn't know that SpiderMonkey was JS. But all make sense now.

Using Twonky (4.4.4 RC1) at present with my PS3 - working very well, but really want to setup my own database structure using JS.

Looking forward to your realease.

Garty

p.s.: Try uploading to www.evilshare.com

Offline

 

#27 2008-01-16 23:54:47

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: Compiled & working: Mediatomb!

i can put it on my public site.. if needbe ... pm me the files and i will post the link

Offline

 

#28 2008-01-17 13:28:49

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

gartylad: I've upladed a temporary tarball in case you want to have a play before I get the chance to upload a full package, it contains a new "mediatomb" binary to go in the bin directory, libjs and libid3 to go in the lib directory (you can remove libtag now if you want as it's unused)... using these new files will allow you to setup your own structure - there's a good example on the mediatomb.cc website under scripting but I haven't tried it yet.

I've also include the magic files to be included with the <magic-file></magic-file> tags in the config file to get magic file support working, these tags are listed in the documentation for mediatomb.

NOTE: These files are meant for gartylad to play with for now - please stick to the standard download in the first post for now until I release a new version.

You'll find it here: link removed - broken & redundant.

Haydn.

edit: fixed typo

Last edited by HaydnH (2008-01-21 19:32:10)

Offline

 

#29 2008-01-17 14:53:38

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

Update: I also have a compiled version of the latest svn which fixes the -d option (run as a daemon) and apparently fixes some id3 errors but I haven't been able to check the latter... that will be in the next proper release.

Offline

 

#30 2008-01-17 17:29:41

Zen Seeker
Member
Registered: 2007-11-28
Posts: 74

Re: Compiled & working: Mediatomb!

Better...can't say...

Another option is; http://rapidfile.net/

Offline

 

#31 2008-01-17 23:25:50

gartylad
Member
Registered: 2007-01-15
Posts: 30

Re: Compiled & working: Mediatomb!

HaydnH : Cheers for the complie

Got the updated file installed, setup JS scripting, and deleted my old database.

Getting errors when trying to add any files as follows :

   /mnt/HD_a2/mediatomb/bin/mediatomb: can't resolve symbol '__clzsi2'

Hoping this means something to you.

Offline

 

#32 2008-01-18 17:42:39

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

I'll have to have a look when I'm at home (tomorrow probably) - I'll be setting up openvpn as well so I'll be able to do things like this remotely from now on!

Offline

 

#33 2008-01-21 19:32:52

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

Gartylad - the problem is fixed in the v0.2 release.

Offline

 

#34 2008-01-21 21:02:18

gartylad
Member
Registered: 2007-01-15
Posts: 30

Re: Compiled & working: Mediatomb!

HaydnH - Is that mediatomb v0.2 or your compile v0.2.

If mediatomb do you know where it is, all site details comment v0.10.0 is the latest.

If yours, whenever you've got time compile and post her up.

Cheers

Offline

 

#35 2008-01-22 12:14:51

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

v0.2 is my version, sorry I should have asked you to see the first post! I've started adding the mediatomb version (svn 1634 or 0.11pre) and my version (so I can keep track) to the filename. FYI, all new files will be in the first post to avoid new downloaders getting old versions.

Offline

 

#36 2008-01-22 21:46:38

gartylad
Member
Registered: 2007-01-15
Posts: 30

Re: Compiled & working: Mediatomb!

HaydnH

Cheers for your work

All is working great, js scripting is working for custom database structure.

Just need to play with the scripts until i'm happy (which could take a while)

Offline

 

#37 2008-01-24 20:23:48

gartylad
Member
Registered: 2007-01-15
Posts: 30

Re: Compiled & working: Mediatomb!

Requests to be included in next build v.3

For 'libextractor' or 'ffmpeg' to be included in the compile to add video metadata support.

Would be great to build a movie database using Genre, Year, Staring Actor, etc..

Offline

 

#38 2008-01-25 13:04:09

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

"For 'libextractor' or 'ffmpeg' to be included in the compile to add video metadata support."

I was advised by jin_eld (one of the devs for mediatomb) not to bother trying to compile libextractor support  for a nas box as it would take ages to import video. Also, why would you want ffmpeg - I doubt the dns-323 is fast enough to transcode video - I have compiled ffmpeg for the 323 in the past (before the PS3 got divx/xvid support) and it was far too slow to be practical in one off conversions so on the fly transcoding is very doubtful.

I might create 2 dev packages (1 with libextractor, 1 with ffmpeg) for you to try when I have a bit more time, although I doubt they'll be practical. I want to focus the time I have atm on ipkg and making the dns-323 simple to use, in terms of additional applications, for complete novices, i.e: ipkg etc.

Offline

 

#39 2008-01-25 20:20:59

gartylad
Member
Registered: 2007-01-15
Posts: 30

Re: Compiled & working: Mediatomb!

HaydnH - I agree with all your comments.

Libextractor would be very slow on the DNS but this would be a 'one time' delay when added new movies to the data base, the possibilites for a full database of movies would be great though.

In the info I've found on 'ffmpeg' it can be used to extract metadata from video files, I don't intend to transcode any video files ever.

No great push for this; its just and "if its possible" and "if you get time" question.

Offline

 

#40 2008-02-29 17:47:24

pakito
New member
Registered: 2008-02-29
Posts: 4

Re: Compiled & working: Mediatomb!

Hi,
I got mediatomb to launch and it works with my PS3. Great!
Now I'd like to have it launch at boot-up: how do I add it to the fun_plug?
Also, if need be, how do you stop mediatomb?

Thanks
pakito

fw 1.04 - funplug 0.4

Last edited by pakito (2008-02-29 17:47:54)

Offline

 

#41 2008-02-29 19:16:47

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

To run at boot, add the following lines to the /mnt/HD_a2/fun_plug script:

LD_LIBRARY_PATH=/mnt/HD_a2/mediatomb/lib; export LD_LIBRARY_PATH
/mnt/HD_a2/mediatomb/bin/mediatomb -d -e egiga0 -m /mnt/HD_a2/mediatomb &


And if you need to stop or "kill" the process, run "ps -ef |grep mediatomb" and use kill on the process id (pid) of the first process which isn't the grep process, e.g:

Code:

/mnt/HD_a2 # ps -ef |grep mediatomb
 5823 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5824 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5825 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5826 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5827 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5828 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5829 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5830 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5831 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5832 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5833 root       2660 S   /mnt/HD_a2/mediatomb/bin/mediatomb -m /mnt/HD_a2/medi
 5835 root        244 S   grep mediatomb 
/mnt/HD_a2 # kill 5823
/mnt/HD_a2 # ps -ef |grep mediatomb
 5837 root        244 S   grep mediatomb 
/mnt/HD_a2 #

This will work with any process, using "kill <pid>" will try and shut it down nicely, if it fails to shutdown nicely you can force the kill by using "kill -9 <pid>" - although this isn't needed for mediatomb as it behaves nicely!

p.s: Welcome to the wonderful world of Linux ;P

Offline

 

#42 2008-02-29 19:23:38

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: Compiled & working: Mediatomb!

I think that
killall mediatomb
or
kill `pidof mediatomb`
will both work too.

Offline

 

#43 2008-02-29 19:44:32

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

Yeah, I'm not too keen on advising people who are relatively new to Linux to use killall though as it would also match mediatomb-foo and baa-mediatomb, which isn't too much of a problem here - until we have a process called "a" ;P

btw, the default dns-323 pidof doesn't support "-o", so if you're using pidof in a script that's called the same as the process you may kill the script instead of the binary.

Offline

 

#44 2008-03-17 08:55:16

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Compiled & working: Mediatomb!

Hi there - have this up and running and so far it's the best solution to stream to the PS3 that I've tried.

I notice from the mediatomb site that version 0.11 is available - do you have any plans to compile this for the 323 ? (It's far beyond my skills smile)

Thanks

RAP

Offline

 

#45 2008-03-17 11:37:51

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: Compiled & working: Mediatomb!

I made a german translation of import.js and added a feature which reproduces the directory structure. So you get Movies/Horror/... if you have files in  /mnt/HD_a2/stuff/Movies/Horror.

http://christian.samsel.name/files/import.js

Last edited by oxygen (2008-03-17 12:00:49)

Offline

 

#46 2008-03-17 14:14:19

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

Hi Rap,

The compiled version is an svn version somewhere between 0.10.0 and 0.11.0 so some of the 0.11.0 features should work already - however I'll compile a new versionwhen I get a chance.

Haydn.

Offline

 

#47 2008-03-17 20:19:58

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Compiled & working: Mediatomb!

HaydnH wrote:

Hi Rap,

The compiled version is an svn version somewhere between 0.10.0 and 0.11.0 so some of the 0.11.0 features should work already - however I'll compile a new versionwhen I get a chance.

Haydn.

That'd be great when you can manage it - I'll keep an eye on this thread.

RAP

Offline

 

#48 2008-04-06 11:21:10

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Compiled & working: Mediatomb!

Hi Haydn - is this on your horizon at all ??

RAP

Offline

 

#49 2008-04-08 10:48:27

asmi
New member
Registered: 2007-09-21
Posts: 1

Re: Compiled & working: Mediatomb!

Hi!

I try to run command "run ./mediatomb -d -e egiga0 -m /mnt/HD_a2/mediatomb" (whitout ""), but i get
/mnt/HD_a2/fun_plug.d/bin/sh: run: not found. Can anyone help?
Sorry my english.

Offline

 

#50 2008-04-08 13:16:46

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Compiled & working: Mediatomb!

Rap - I got made redundant from the company I was working for yesterday (kind of - still have a job but no site to work at!) so I should have time to look at this in the next few days/weeks.

Asmi, remove the "run" from your command, i.e: use "./mediatomb blah blah"

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB