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)

aflegg 2007-11-15 16:54

Re: mediaserv: on-demand video transcoding
 
No probs - give me a shout if you have a problem.

muki 2007-11-15 19:56

Re: mediaserv: on-demand video transcoding
 
aflegg: thanks. First I should state I am on 10.3.8, have studiously avoided PERL for many years :) and only used my Mac Mini as a file server for a long time now. I can just about find my way around the system from the terminal without too much danger of trashing it :)

Running install.sh borked at the "u" option for "cp" so I removed it and the script worked. Downloaded 770-encode.pl, chmod +x and moved it to /usr/bin. Tried running mediaserv and as expected got "Can't locate XML/RSS.pm..." so then I ran "perl -MCPAN ...". Several thousand lines later it borked with the following (I have edited out long lines):

Quote:

Manifying blib/man3/XML::RSS.3pm
/usr/bin/make -- OK
Running make test
/usr/bin/perl "-MTest::Manifest" "-e" "run_t_manifest(0, 'blib/lib', 'blib/arch')"
Level is
Test::Manifest::test_harness found [t/load.t <LONG-TEXT-REMOVED>]
t/load.........................NOK 1# Failed test (t/load.t at line 22)
# Tried to use 'XML::RSS'.
# Error: Can't locate XML/Parser.pm in @INC (@INC contains: <LONG-TEXT-REMOVED>) at /Users/myname/.cpan/build/XML-RSS-1.31/blib/lib/XML/RSS.pm line 4.
# BEGIN failed--compilation aborted at /Users/myname/.cpan/build/XML-RSS-1.31/blib/lib/XML/RSS.pm line 4.
# Compilation failed in require at (eval 4) line 2.
FAILED--Further testing stopped: XML::RSS did not compileok 2 - use XML::RSS::Private::Output::Base;
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Any help appreciated. I have captured the whole terminal history if it will help.

aflegg 2007-11-16 12:54

Re: mediaserv: on-demand video transcoding
 
GeneralAntilles has got it working. For some reason XML::Parser isn't available - presumably it failed to build earlier.

Unfortunately, I've not got a Mac anymore, so can't detailed debugging help :-(

Sorry for the inconvenience.

zeez 2007-11-16 13:09

Re: mediaserv: on-demand video transcoding
 
Does anyone running OS2008 have this working ? It worked with OS2007 for me but now the mediaplayer says "Unable to find media file"

aflegg 2007-11-16 13:18

Re: mediaserv: on-demand video transcoding
 
Hmm, odd.

Could it be related to https://bugs.maemo.org/show_bug.cgi?id=2186 ? Until I get an N810, identifying this problem will be a little tricky :-/

muki 2007-11-16 15:43

Re: mediaserv: on-demand video transcoding
 
Progress! Full details later when I have trawled my history, short version:

- Updated CPAN
- downloaded and installed expat (usual way, nothing to do with PERL)
- CPAN install of XML::Parser now worked (probably could have skipped this now and let CPAN get in the next step)
- CPAN install of XML:RSS now worked
- renamed 770-encode.pl to 770-encode (no ".pl", could have also used a link)
- linked /usr/bin/mencoder to actual file installed in ffmpegX directory
- As an extra step I moved the data directory to an external drive and link to it there to avoid filling up my internal drive.
- Finally I needed the IP address in the config file.


Hope the above at least provides some tips for other OSX users. Not quite there as I can't seem to access the file until it is fully converted (correct?) and selecting one in the Opera browser brings up KMPlayer (on my 770) but the video never appears. I can copy the link direct into mplayer, where it does play. Also just realised I need a link to mplayer if I am reading the mediaserv log correctly.

The log shows other "sysread() on closed filehandle..." errors while, I think, the file is being converted.

aflegg 2007-11-17 10:26

Re: mediaserv: on-demand video transcoding
 
Hmm, very odd - you should be able to watch the video whilst it's transcoding (assuming your PC is fast enough; it'd have to be very old or busy to not keep up on "smallest").

Can you send me the entire log, the output of `perl -V' and anything else you think pertinent?

Thanks in advance,

Andrew

RipTorn 2007-11-18 05:23

Re: mediaserv: on-demand video transcoding
 
im using a N800 OS2007, when I try to stream a file it just waits on buffering, the error on Mediaserv log files are:

Waiting for data from data/multimedia/test.avi.avi...
2007/11/17 05:03:28 6014 - NOTE! sysread() on closed filehandle IN at ./mediaserv line 722.
2007/11/17 05:03:28 6014 - NOTE! Use of uninitialized value in numeric gt (>) at ./mediaserv line 723.

im using Fiesty Ubuntu server

770-encode seems to work fine and doesn't display any errors when encoding
I've tried several media players to play the stream it does the same in all of them.

im using:

perl -v

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

Also I thought it would be best to move my post from Jaffa's Projects to here :)

Cheers
Rip

aflegg 2007-11-18 11:19

Re: mediaserv: on-demand video transcoding
 
Thanks for that. Unfortunately the snippet of the log isn't the bit I need to see - it's basically saying that test.avi.avi doesn't exist, which suggests the encoding isn't working.

Can you delete the existing log, run it again and then send me the *entire* log (or attach it here)?

You've got 770-encode installed as "770-encode" and it's on your PATH? Or you've altered the appropriate config file setting to point to where you have it/what it's called?

Sorry for the inconvenience in getting it working.

Cheers,

Andrew

aflegg 2007-11-18 15:19

Re: mediaserv: on-demand video transcoding
 
mediaserv v0.05 is out: with a number of small bug fixes/enhancements requested here, it's primary purpose is to:

a) be at its new website: http://mediautils.garage.maemo.org/
b) be aware that it can use both tablet-encode or 770-encode.

Comments, as ever, welcome.


All times are GMT. The time now is 08:19.

vBulletin® Version 3.8.8