PDA

View Full Version : Stream Video to N770


gavinlew
2007-11-03, 18:48
Hi Everyone,

After some help with the following idea ;

I have a mythtv based linux server full of video/mp3/pictures ,

I have mp3 streaming working to my N770 with Canola and Twonkymedia as the UPnP server - this all works fine.

What I would like to get going now, is the video streaming (pictures is less important - it crashes canola currently) , from various reading it appears that Twonkymedia may not be able to encode on the fly?

I have tried Mediatomb , but the encoding again does not appear to be supported.

I have read that this is possible to achieve using Tversity on a windows box ; however all the media is served from a linux server.

Any ideas/pointers would be appreciated.

Cheers.

Serge
2007-11-03, 19:06
You may want to wait a bit for general availability of a fix for wlan related memory corruption problem (https://bugs.maemo.org/show_bug.cgi?id=2006) (resulting in poor device stability and random reboots on wifi use). Until you have a fixed wlan driver installed on your device, video streaming may suffer from all kind of weird problems.

aflegg
2007-11-03, 20:23
You might be interested in my mediaserv (http://www.maemopeople.org/index.php/jaffa/) which seems to do a lot of what you want.

gavinlew
2007-11-04, 11:38
Cool, this looks perfect.

I've installed it and the relevant PERL modules on my back end server (Ubuntu Feisty)

It would appear that mplayer is going to have to be recompiled , everything works OK up until the point of launching the file to be streamed and this is noted in the console;

"Use of uninitialized value in pattern match (m//) at /home/mythtv/.mediaserv/770-encode.pl line 304.
Use of uninitialized value in pattern match (m//) at /home/mythtv/.mediaserv/770-encode.pl line 304.
mplayer doesn't support lavc encoder"

gavinlew
2007-11-04, 11:44
Ignore that, mencoder wasn't installed - apt-get fixed that.

Im now getting further, the Mediaplayer on the 770 opens now, but an error is generated - unable to perform operation then quits.

Seems that the call is passed to mencoder as per the console output ;

Width needs trimming by 0.0833333333333333 from 240 x 128
Invoking mencoder /var/lib/mythtv/videos/TV/Benidorm/Benidorm_Series1_Episode1.avi -o /home/mythtv/.mediaserv/data/TV/Benidorm/Benidorm_Series1_Episode1.avi.avi -srate 44100 -channels 1 -oac mp3lame -lameopts vbr=0:br=32:mode=3 -af volnorm,channels=1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=80 -vf-add crop=586:352 -vf-add scale=240:144 -ofps 12.5 -ffourcc DIVX -noidx -force-avi-aspect 1.66666666666667...
MEncoder 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(TM) XP 3000+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0xadb2000
AVI file format detected.
VIDEO: [XVID] 640x352 12bpp 25.000 fps 955.4 kbps (116.6 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:640x352 fps:25.00 ftime:=0.0400
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=240 h=144]
Opening video filter: [crop w=586 h=352]
Crop: 586 x 352, -1 ; -1
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
================================================== ========================
Forcing output FourCC to 58564944 [DIVX].
VDec: vo config request - 640 x 352 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
videocodec: libavcodec (240x144 fourcc=58564944 [DIVX])
Writing header...
ODML: vprp aspect is 16384:9830.
Writing header...
ODML: vprp aspect is 16384:9830.

aflegg
2007-11-04, 15:35
Hi,

I've not had any successful reports from IT OS 2006 users - I think the Media Player there is just crap for streaming. Using mplayer would probably be your best option, or upgrade to IT OS 2007HE.

Hope that helps,

Andrew

rggavitt
2007-11-07, 18:22
I have the hacker edition installed and I installed mediastreamer on my 770 and Home Media Server by simple center on my XP server.......works great. Go to tabelteer, enhance, mediastreamer and follow directions. Don't know if this works on regular 770....if now upgrade software to hacker edition.