Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Java PS3 media server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Fri Jan 02, 2009 5:01 pm    Post subject: Java PS3 media server Reply with quote

Hi,

just found this upnp media server to stream stuff to the ps3. It solves many issues of mediatomb (stream of 5.1 sound). Transcoding is automatic and works really nice (noproblem seen with mkv transcoding). You can even pause and fast forward on transcoded media (which I was unable to do with mediatomb+ffmpeg transcoding).

So for the interested check it out: http://code.google.com/p/ps3mediaserver/.

Would be nice to see an ebuild for this!

Have fun...
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Fri Jan 02, 2009 5:18 pm    Post subject: Reply with quote

very interesting, i just setup mediatomb a couple days ago.

i used the Gentoo-wiki instructions and it seems to be working pretty good so far, the video thumbnailing bit goes a long way.

but i'll still definitely look into this, as mediatomb is "ok" but not great... i liked fuppes a bit better (less config) but it seems to be a dead project now (last update was like June 08).

how is video playback? all media play?

w/ mediatomb currently, some of my movies just don't play. the ps3 shows a black screen that never turns into the movie. I'm not sure what the issue is as all the movies are encoded in the exactly same manner (XVID + mp3 in an AVI container).
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Fri Jan 02, 2009 5:25 pm    Post subject: Reply with quote

I tried a few movies. For every file you will always have the possibility to play a transcoded version of it. So if the original version doesnt play, you can just pick the transcoded one and it should just work fine.

It seems that it should be able to insert subtitles as well. Unfortunatly this didn't work for me. I will have to take a closer look to what the problem is.

edit: subtitles work just fine if you deactivate ASS/SSA subtitles!
Back to top
View user's profile Send private message
r3pek
Retired Dev
Retired Dev


Joined: 17 Sep 2003
Posts: 568
Location: Lisbon - Portugal

PostPosted: Sun Mar 15, 2009 12:00 am    Post subject: Reply with quote

Hi,

can you please post you PMS.conf? I'm trying to make it work but I can't play any file :(
Also, can you please share your mplayer, vlc and ffmpeg use flags?
_________________
[IMG]http://www.neobux.com/imagens/banner/?u=r3pek&u2=419[/IMG]
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Sun Mar 15, 2009 11:54 am    Post subject: Reply with quote

Code:
user host pms-linux-1.00 $ cat PMS.conf
folders=/home/user/Desktop/experimental,/archive/media/movies
hostname=
port=
maxvideobuffer=400
thumbnails=true
thumbnail_seek_pos=1000
nbcores=2
turbomode=false
minimized=false
hidevideosettings=false
usecache=false
charsetencoding=850
engines=mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,ffmpegdvrmsremux
autoloadsrt=true
avisynth_convertfps=true
avisynth_script=#AviSynth script is now fully customisable !#You must use the following variables ("clip" being the avisynth variable of the movie):#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]#<sub>: insert the complete TextSub/VobSub instruction if there's any detected srt/sub/idx/ass subtitle file#<moviefilename>: variable of the movie filename, if you want to do all this by yourself#Be careful, the custom script MUST return the clip object<movie><sub>return clip
transcode_block_multiple_connections=false
tsmuxer_forcefps=true
tsmuxer_preremux_pcm=false
tsmuxer_preremux_ac3=false
audiochannels=2
audiobitrate=384
maximumbitrate=0
skiploopfilter=true
mencoder_fontconfig=false
mencoder_forcefps=false
mencoder_usepcm=false
mencoder_intelligent_sync=true
mencoder_decode=
mencoder_encode=keyint=1:vqscale=1:vqmin=2
mencoder_nooutofsync=true
mencoder_audiolangs=fre,jpn,ger,eng
mencoder_sublangs=fre,eng
mencoder_subfribidi=false
mencoder_ass_scale=1.0
mencoder_ass_margin=10
mencoder_ass_outline=1
mencoder_ass_shadow=1
mencoder_noass_scale=3
mencoder_noass_subpos=2
mencoder_noass_blur=1
mencoder_noass_outline=3
mencoder_subcp=cp1252
mencoder_ass=true
mencoder_disablesubs=true
ffmpeg=-g 1 -qscale 1 -qmin 2


Code:
user host pms-linux-1.00 $ e mplayer ffmpeg vlc
[ebuild   R   ] media-video/ffmpeg-20099999  USE="X aac hardcoded-tables ipv6 mmx mp3 theora threads truetype vorbis x264 xvid zlib (-altivec) -amrnb -amrwb -bindist -debug -dirac -doc -gsm -icc -ieee1394 -imlib -network -oss -schroedinger -sdl -test -v4l -vdpau"

[ebuild   R   ] media-video/mplayer-20090226.28734  USE="X a52 aac alsa amrnb amrwb ass cddb cdio dirac dts dv dvd dvdnav enca encode faac faad fbcon ftp gif gtk iconv ipv6 jpeg live mad md5sum mmx mp2 mp3 nemesi network opengl png pnm quicktime rar real rtc samba schroedinger speex sse sse2 theora tremor truetype unicode vorbis x264 xv xvid xvmc -3dnow -3dnowext -aalib (-altivec) -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -custom-cpuopts -debug -dga -directfb -doc -dvb -dxr3 -esd -ggi -jack -joystick -ladspa -libcaca -lirc -lzo -mmxext -mng -musepack -nas -openal -oss -pulseaudio -pvr -radio (-realcodecs) -sdl -ssse3 (-svga) -teletext -tga -v4l -v4l2 -vdpau (-vidix) (-win32codecs) -xanim -xinerama -xscreensaver -zoran" VIDEO_CARDS="nvidia vesa -mga -s3virge -tdfx"

[ebuild   R   ] media-video/vlc-0.9.8a-r1  USE="X a52 aac alsa dbus dts dvd ffmpeg gnome hal libnotify live matroska mmx mp3 mpeg ncurses ogg opengl png rtsp samba shout sse stream svg theora truetype vorbis x264 xml -aalib (-altivec) -arts -atmo -avahi -bidi -cdda -cddax -cddb -cdio -dc1394 -debug -dirac -directfb -dvb -esd -fbcon -fluidsynth -fontconfig -ggi -gnutls -httpd -id3tag -jack -kate -libass -libcaca -libgcrypt -libsysfs -libv4l2 -lirc -lua -modplug -musepack -nsplugin -optimisememory -oss -pda -pulseaudio -pvr -qt4 -remoteosd -run-as-root -schroedinger -sdl -sdl-image -seamonkey -skins -speex (-svga) -taglib -twolame -upnp -v4l -v4l2 -vcd -vcdinfo -vcdx -vlm (-win32codecs) -xinerama -xosd -xv -zvbi"


this is full ~ARCH. I don't believe i did much configing for PMS.
Back to top
View user's profile Send private message
r3pek
Retired Dev
Retired Dev


Joined: 17 Sep 2003
Posts: 568
Location: Lisbon - Portugal

PostPosted: Sun Mar 15, 2009 5:19 pm    Post subject: Reply with quote

does you tsMuxer work? Mine doesn't :S
don't know if it's really necessary...
_________________
[IMG]http://www.neobux.com/imagens/banner/?u=r3pek&u2=419[/IMG]
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Tue Mar 17, 2009 1:34 pm    Post subject: Reply with quote

i have been using it for a few months now and love it, its dead simple to use, basically works right out of the box for me.... TS's are about the only thing i have issues playing
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
darkscreamer
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2006
Posts: 134
Location: The Pirate State of Napoli

PostPosted: Mon Mar 30, 2009 8:33 am    Post subject: Reply with quote

Still no ebuild?
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Mon Mar 30, 2009 1:06 pm    Post subject: Reply with quote

darkscreamer wrote:
Still no ebuild?

its just a java app, untar it and run.
Back to top
View user's profile Send private message
darkscreamer
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2006
Posts: 134
Location: The Pirate State of Napoli

PostPosted: Tue Mar 31, 2009 12:23 pm    Post subject: Reply with quote

Oh, didn't notice. I'll give it a shot, then.
Back to top
View user's profile Send private message
simonbh
n00b
n00b


Joined: 24 Sep 2002
Posts: 28

PostPosted: Thu Sep 10, 2009 5:14 am    Post subject: init.d script Reply with quote

jonnevers wrote:
darkscreamer wrote:
Still no ebuild?

its just a java app, untar it and run.


Do you have an init.d script for starting and stopping at boot?
Back to top
View user's profile Send private message
simonbh
n00b
n00b


Joined: 24 Sep 2002
Posts: 28

PostPosted: Sun Dec 13, 2009 9:48 pm    Post subject: Re: init.d script Reply with quote

I have created scripts, after digging around the net and modifying others.

/etc/init.d/pms
Code:

#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
   before net
   use logger dns
   provide pms
}

start() {
   ebegin "Starting PMS Playstation Multimedia Server"
   install -o root -g root -m 755 -d $PIDDIR
   start-stop-daemon \
        --start \
        --user "$PMSUSER" \
        --make-pidfile \
        --pidfile "$PMSDPID" \
        --chdir /opt/pms/ \
        --exec /opt/pms/PMS.sh \
        --background \
        --stdout /var/log/pms/stdout.txt \
        --stderr /var/log/pms/stderr.txt \
   eend $?
}

stop() {
   ebegin "Stopping PMS Playstation Multimedia Server"
   start-stop-daemon \
        --stop \
        --quiet \
        --pidfile $PMSDPID
   eend $?
}


/etc/conf.d/pms
Code:

PMSUSER=pms
PMSGROUP=pms
PMS_HOME=/opt/pms
PIDDIR="$PMS_HOME"
PMSDPID=$PIDDIR/pms.pid
Back to top
View user's profile Send private message
be_io
n00b
n00b


Joined: 12 Jul 2005
Posts: 12

PostPosted: Mon Jun 21, 2010 11:56 am    Post subject: Reply with quote

Small update for startup script, based on above one, to launch in console mode (no gui) :

Code:


#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

depend() {
   before net
   use logger dns
   provide ps3
}

start() {
   ebegin "Starting PMS Playstation Multimedia Server"
   install -o root -g root -m 755 -d $PIDDIR
   start-stop-daemon --verbose --start --user "$PMSUSER" --make-pidfile --pidfile "$PMSDPID" --chdir /opt/pms/ \
      --exec "$EXECBIN" console > /dev/null &
   eend $?
}

stop() {
   ebegin "Stopping PMS Playstation Multimedia Server"
   start-stop-daemon stop --quiet --pidfile $PMSDPID
   eend $?

}


_________________
(---be_io---)

1 x Gentoo x86 text-based on QuadCore (2Go, 1,5To, Lvm2, Raid)
1 x Gentoo powerpc on Mac G4 Cube (512Mo, 80Go, Lvm)





Gentoo
Back to top
View user's profile Send private message
simonbh
n00b
n00b


Joined: 24 Sep 2002
Posts: 28

PostPosted: Tue May 24, 2011 3:57 pm    Post subject: small error in script Reply with quote

You were missing a "--" before stop in the updated script

Code:
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

depend() {
   before net
   use logger dns
   provide ps3
}

start() {
   ebegin "Starting PMS Playstation Multimedia Server"
   install -o root -g root -m 755 -d $PIDDIR
   start-stop-daemon --verbose --start --user "$PMSUSER" --make-pidfile --pidfile "$PMSDPID" --chdir /opt/pms/ \
      --exec "$EXECBIN" console > /dev/null &
   eend $?
}

stop() {
   ebegin "Stopping PMS Playstation Multimedia Server"
   start-stop-daemon --stop --quiet --pidfile $PMSDPID
   eend $?

}
Back to top
View user's profile Send private message
barureddy
n00b
n00b


Joined: 07 Oct 2003
Posts: 48

PostPosted: Fri Feb 03, 2012 10:07 pm    Post subject: tsmuxer Reply with quote

Tsmuxer does not work for me too.

I get the following error in my ps3mediaserver debug.log file for tsmuxer

Code:
Process /var/log//ps3mediaserver/linux/tsMuxeR has a return code of 134! Maybe an error occured... check the log file


When I manually have tsmuxer open a mkv file cencoded with x264 and ac3, I get the following error:

Code:
tsMuxeR: ../vodTransport/src/matroskaParser.cpp:134: virtual void vodcore::ParsedH264TrackData::extractData(vodcore::AVPacket*, uint8_t*, int): Assertion `curPos == end' failed.


It seems that there is something wrong with tsmuxer.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum