maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   mediaserv: on-demand video transcoding (https://talk.maemo.org/showthread.php?t=10948)

gazza_d 2008-04-27 09:27

Re: mediaserv: on-demand video transcoding
 
Couple of questions regarding mediaserv.

I have 2 symlinked folders at the top of my mediaserv folder, browsing theorugh them normally works great, but the RSS feeds and video center feeds seem to generate ok, but have no content from the subfolders. works if I drop files into the root of the mediaserv folder. Anybody got any fix?

Also, has anybody hacked it to get the metadata from a mythtv database for videos, the recordings work great, just be the icing on the cake to have the video stuff as well.

Cheers

Gaz

Bundyo 2008-04-27 09:44

Re: mediaserv: on-demand video transcoding
 
I hacked it to work with symlinks, but i can't get to my linux box now.

Jaffa 2008-04-28 12:20

Re: mediaserv: on-demand video transcoding
 
To work better with symlinks, the following bit of code in getMediaInfo() would need changing:

Code:

    my $type = -d $path        ? 'dir'  :
                &isMedia($path) ? 'media' : undef;

The readlink() function would be handy to use here.

blackoper 2008-05-27 17:08

Re: mediaserv: on-demand video transcoding
 
anyone know how I would go about securing mediaserv. I want to use it for direct access from outside my network but as it stands right now it's totally accessible to anyone browsing to port 8090.
username and password to access it an option or a way to do that through apache?

GeneralAntilles 2008-05-27 17:14

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by blackoper (Post 186258)
anyone know how I would go about securing mediaserv. I want to use it for direct access from outside my network but as it stands right now it's totally accessible to anyone browsing to port 8090.

Set up a port trigger? Just obfuscate the port a bit?

blackoper 2008-05-27 17:25

Re: mediaserv: on-demand video transcoding
 
I looked through dd-wrt's settings on port forwarding and don't see a way to do it like that.. hmm I guess the best way is to just ssh into the host server and then open the webpage while leaving the port closed on the router.. still there should be a way to password protect things or to very easily add that functionality

blackoper 2008-05-27 18:42

Re: mediaserv: on-demand video transcoding
 
well I'm trying to do an ssh forward
I thought the command would be
Quote:

ssh -L8090:localhost:8090 username@host
I then try to access the port forward through webbrowser:
Quote:

127.0.0.1:8090
I get the error
Quote:

channel 2: open failed:connect failed:connection refused
inside the terminal screen that is running the ssh connection. Any ideas what command I should be using. Mediaserv is running on port 8090 on the server I'm connecting to. The port 8090 is not being forwarded by my router.

Jaffa 2008-05-27 20:38

Re: mediaserv: on-demand video transcoding
 
It's on the TODO list, but it should be possible with Apache acting as a forward-proxy using mod_proxy, combined with mod_auth.

http://httpd.apache.org/docs/ should help.

blackoper 2008-05-29 14:42

Re: mediaserv: on-demand video transcoding
 
thanks I'm going to try this today - I'm at work might as well SSH into the server and do something :) I guess I'll post configuration when finished

grog 2008-11-16 03:12

Re: mediaserv: on-demand video transcoding
 
Hey. I'm trying to get mediaserv working on my gentoo box. Installed dev-perl/XML-RSS, but I still get an error when trying to start mediaserv:

Code:

$ mediaserv           
Can't locate HTTP/Date.pm in @INC
[...snip long list of paths...]

Any idea what I'm missing? TX

Jaffa 2008-11-16 15:31

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by grog (Post 242327)
Code:

$ mediaserv           
Can't locate HTTP/Date.pm in @INC
[...snip long list of paths...]

Any idea what I'm missing? TX

HTTP::Date ;-)

On a Debian-based system (such as Debian, Ubuntu, ...) you can easily get this by doing:

Code:

sudo apt-get install libwww-perl
YMMV.

grog 2008-11-16 19:08

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by Jaffa (Post 242410)
HTTP::Date ;-)

yah yah. I figured that much out :)

Quote:

On a Debian-based system (such as Debian, Ubuntu, ...) you can easily get this by doing:

Code:

sudo apt-get install libwww-perl
YMMV.
There we go. That's what I needed, which on my gentoo system is package dev-perl/libwww-perl, which installed 5 other packages as dependencies & now works! YIPPEEE!! :)

thanks

salinmooch 2008-12-05 16:53

Re: mediaserv: on-demand video transcoding
 
I've gone through this thread and have not found my issue (though I may have missed it) and I am a bit of a newbie. I have been using tablet-encode for awhile but finally have an extra computer that mediaserv would be useful on. Anyways, I followed the instructions in the readme for an Ubuntu install, set up the config file and ran mediaserv.

When I connect via my latop's browser or the n800 I get a mediaserv title and a "Not found".

Do to spaces in my original path I made a directory called /home/shared/video, stuck some movies in there, modified config, but still no go. I may have missed installing stuff for whatever parses the video's for thumbnails??

Here is my log output:
Code:

2008/12/05 16:08:02 12617 - NOTE! forked new child, we now have 1 children
2008/12/05 16:08:02 12617 - NOTE! forked new child, we now have 2 children
2008/12/05 16:08:02 12617 - NOTE! forked new child, we now have 3 children
2008/12/05 16:08:02 12617 - NOTE! forked new child, we now have 4 children
2008/12/05 16:08:02 12617 - NOTE! forked new child, we now have 5 children
2008/12/05 16:08:10 12618 - 10.0.0.5 http://moochmachine:8090/browse/ - ct[1]
2008/12/05 16:08:10 12618 - disconnect:10.0.0.5 - ct[1]
2008/12/05 16:08:11 12619 - 10.0.0.5 http://moochmachine:8090/static/styles.css - ct[1]
2008/12/05 16:08:11 12619 - Read 1150 bytes from styles.css
2008/12/05 16:08:11 12619 - Read 0 bytes from styles.css
2008/12/05 16:08:11 12619 - disconnect:10.0.0.5 - ct[1]
2008/12/05 16:08:11 12620 - 10.0.0.5 http://moochmachine:8090/static/reflection.js - ct[1]
2008/12/05 16:08:11 12620 - Read 5218 bytes from reflection.js
2008/12/05 16:08:11 12620 - Read 0 bytes from reflection.js
2008/12/05 16:08:11 12620 - disconnect:10.0.0.5 - ct[1]
2008/12/05 16:08:11 12621 - 10.0.0.5 http://moochmachine:8090/favicon.ico - ct[1]
2008/12/05 16:08:14 12622 - 10.0.0.5 http://moochmachine:8090/browse/ - ct[1]
2008/12/05 16:08:14 12622 - disconnect:10.0.0.5 - ct[1]
2008/12/05 16:08:14 12618 - 10.0.0.5 http://moochmachine:8090/static/styles.css - ct[2]
2008/12/05 16:08:14 12618 - Read 1150 bytes from styles.css
2008/12/05 16:08:14 12618 - Read 0 bytes from styles.css
2008/12/05 16:08:14 12618 - disconnect:10.0.0.5 - ct[2]
2008/12/05 16:08:14 12619 - 10.0.0.5 http://moochmachine:8090/static/reflection.js - ct[2]
2008/12/05 16:08:14 12619 - Read 5218 bytes from reflection.js
2008/12/05 16:08:14 12619 - Read 0 bytes from reflection.js
2008/12/05 16:08:14 12619 - disconnect:10.0.0.5 - ct[2]
2008/12/05 16:08:15 12620 - 10.0.0.5 http://moochmachine:8090/favicon.ico - ct[2]
2008/12/05 16:08:16 12621 - 10.0.0.5 http://moochmachine:8090/browse/ - ct[2]
2008/12/05 16:08:16 12621 - disconnect:10.0.0.5 - ct[2]
2008/12/05 16:08:17 12622 - 10.0.0.5 http://moochmachine:8090/static/styles.css - ct[2]
2008/12/05 16:08:17 12622 - Read 1150 bytes from styles.css
2008/12/05 16:08:17 12622 - Read 0 bytes from styles.css


salinmooch 2008-12-09 17:04

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by salinmooch (Post 247110)
Do to spaces in my original path I made a directory called /home/shared/video, stuck some movies in there, modified config, but still no go. I may have missed installing stuff for whatever parses the video's for thumbnails??


I'm an idiot - it was a config file issue. Please ignore above post.

Jaffa 2008-12-13 16:50

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by salinmooch (Post 248155)
I'm an idiot - it was a config file issue. Please ignore above post.

For reference, what was the issue? How can I make the error handling and/or documentation better?

salinmooch 2008-12-15 02:49

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by Jaffa (Post 249279)
For reference, what was the issue? How can I make the error handling and/or documentation better?

Nothing on your end - user error. I simply over looked the fact that although I changed the data directory in the config file, I had failed to uncomment the line, thus I couldn't see any of my video files. Worked fine after that : ).

Thanks for the great software!

caredad13 2009-01-02 07:00

Re: mediaserv: on-demand video transcoding
 
how do you open tar in the n810 because i can't install mediaderv because its in tar and not in deb.

Jaffa 2009-01-03 14:59

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by caredad13 (Post 253991)
how do you open tar in the n810 because i can't install mediaderv because its in tar and not in deb.

I'm afraid my instructions have confused you. mediaserv is installed, and run, on a PC (primarily tested under Linux, but apparently can be got to work on Mac OS X and (perhaps) Windows).

You then access it on your N810 through the normal web browser or Nokia's VideoCenter application.

stangri 2009-04-06 01:04

Re: mediaserv: on-demand video transcoding
 
Andrew,
I really wanted to see how would the mediaserv fair on the AppleTV running Tiger, however I've got problems running install.sh:
Quote:

AppleTV:~/Desktop/mediaserv stangri$ ./install.sh
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
cp: /Users/stangri/.mediaserv/config: No such file or directory
Install of mediaserv complete.
I don't have that much experience with shell scripting and can't understand what should go where from the commands in install.sh -- is there any detailed information on "manual" setup of mediaserv, describing all the binaries, config files and Perl modules I need to install and how to do it on Mac?

thanks!

Jaffa 2009-04-06 11:14

Re: mediaserv: on-demand video transcoding
 
My fault for using a GNUism.

All it's doing is copying the resource files to ~/.mediaserv - so you should be OK to just remove the "-u" part of the `cp' line.

stangri 2009-04-07 02:19

Re: mediaserv: on-demand video transcoding
 
Andrew,
Why there are two config files (config and config~ in ~/.mediaserv)? Which one am I supposed to edit?

Also, running the sudo perl -MCPAN -e 'install XML::RSS' results in attempts to install tons of pre-reqs but the last few lines it outputs are:
Quote:

Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running make for S/SH/SHLOMIF/XML-RSS-1.44.tar.gz
Is already unwrapped into directory /Users/stangri/.cpan/build/XML-RSS-1.44

CPAN.pm: Going to build S/SH/SHLOMIF/XML-RSS-1.44.tar.gz

Couldn't chdir /Users/stangri/.cpan/build/XML-RSS-1.44: No such file or directory at /System/Library/Perl/5.8.6/CPAN.pm line 2138
Any help getting it running on Mac OS X?

Jaffa 2009-04-07 09:48

Re: mediaserv: on-demand video transcoding
 
Quote:

Originally Posted by stangri (Post 277998)
Why there are two config files (config and config~ in ~/.mediaserv)? Which one am I supposed to edit?

config. The other file is a packagin bug, sorry about that.

Quote:

Also, running the sudo perl -MCPAN -e 'install XML::RSS' results in attempts to install tons of pre-reqs but [...] Any help getting it running on Mac OS X?
I believe it has been run on OS X, but I haven't tried myself. Are you using the stock version of Perl shipped with OS X? If so, what version of OS X are you using?

stangri 2009-04-08 02:57

Re: mediaserv: on-demand video transcoding
 
It's 10.4.11 with all the latest updates and stock Perl, here's the output of perl -V:
Quote:

AppleTV:~ stangri$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level
uname='darwin b40.apple.com 8.0 darwin kernel version 8.8.4: sun oct 29 15:26:54 pst 2006; root:xnu-792.16.4.obj~1release_i386 i386 i386 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5363) (+4864187)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
23953 - fix for File::Path::rmtree CAN-2004-0452 security issue
33990 - fix for setuid perl security issues
fix for regcomp CVE-2007-5116 security vulnerability
fix for double-free CVE-2008-1927 security vulnerability
SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
Built under darwin
Compiled at Jan 12 2009 14:08:24
@INC:
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6
/Library/Perl
/Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6
/Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6
/Library/Perl/5.8.1
.

stangri 2009-04-10 09:50

Re: mediaserv: on-demand video transcoding
 
Can any Perl expert please-please-please help me out getting the required Perl modules installed on Tiger?


All times are GMT. The time now is 02:14.

vBulletin® Version 3.8.8