FAQ  •  Register  •  Login

Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

<<

spawn57

Serviio newbie

Posts: 11

Joined: Fri Oct 01, 2010 3:59 pm

Post Fri Oct 01, 2010 4:10 pm

Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

After trying out a number of servers including PS3 Media server, coherence, geebox, mediatomb etc, and this one gave me the least trouble out of all of them.

Thank you so much for this program.
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Sat Oct 02, 2010 10:46 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

Hi

I have a sony 46w5800 and 0.4.2 server running on bsd.
Did you manage to have some video working ? even without transcoding ? all the folders are empty on my side, only pictures and songs work fine.
I have ffmpeg (0.5) installed and properly recognized by serviio

any help would be much appreciated !

thx

fafa
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Oct 02, 2010 11:25 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

Is it 2009 Bravia? If yes, look here: viewtopic.php?f=5&t=429
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Sun Oct 03, 2010 7:25 am

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

Hi Petr

Yes it is. I looked at this thread but was not clear on:
- the ad hoc profile for 09 bravia's was finalized/working
- this ad hoc profile was actually already included in the 0.4.2

let me play back the thread but I feel like I am likely to get back to you guys. hopefully I could add some pieces to the issue.

fafa
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Sun Oct 03, 2010 9:05 am

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

Ok, so here I am:
1- I modified the profiles.xml so that the bravia section looks like this:
<Profile id="9" name="Sony Bravia TV" extendsProfileId="1">
<Detection>
<X-AV-Client-Info>BRAVIA.*</X-AV-Client-Info>
</Detection>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/mpeg" name="MPEG_TS_SD_EU_ISO">MPEG_TS_SD_EU</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3">AVC_TS_MP_HD_AC3</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="h264" />
<Matches container="avi" vCodec="h264" />
</Video>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3">
<Matches container="asf" />
<Matches container="avi" />
<Matches container="mp4" />
</Video>
</Transcoding>
</Profile>

2- ffmpeg -i on aladdin.fr gives the following output:
freenas:/mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II# ffmpeg -i Aladdin.avi
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-swscale --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-memalign-hack --cc=cc --extra-cflags=-I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-libamr-nb --disable-libamr-wb --disable-libdirac --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libgsm --disable-vhook --enable-ipv6 --disable-libmp3lame --disable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --enable-libvorbis --disable-x11grab --enable-libx264 --enable-libxvid
libavutil 49.15. 0 / 50.15. 1
libavcodec 52.20. 0 / 52.72. 2
libavformat 52.31. 0 / 52.64. 2
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 7 2010 00:34:41, gcc: 4.2.1 20070719 [FreeBSD]

Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
Input #0, avi, from 'Aladdin.avi':
Duration: 01:26:22.05, start: 0.000000, bitrate: 1081 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 560x336, 25 fps, 25 tbr, 25 tbn, 30k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
At least one output file must be specified
freenas:/mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II#

3- trying the read the same aladdin.avi, the tv does not play anything. here is the trace from serviio.log
2010-10-03 08:57:17,564 DEBUG [WebServer] Incoming connection from /192.168.0.207:61736
2010-10-03 08:57:17,566 DEBUG [ResourceTransportRequestHandler] HEAD /resource/197/MEDIA_ITEM/MPEG_PS_NTSC HTTP/1.1, headers = [getcontentFeatures.dlna.org: 1, Pragma: getIfoFileURI.dlna.org, transferMode.dlna.org: Streaming, Host: 192.168.0.205:8895, ]
2010-10-03 08:57:17,571 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,572 DEBUG [ResourceTransportRequestHandler] Request for resource 197 and type 'MEDIA_ITEM' received
2010-10-03 08:57:17,573 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 197)
2010-10-03 08:57:17,578 DEBUG [VideoDAOImpl] Reading a Video (id = 197)
2010-10-03 08:57:17,581 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 197, format MPEG_PS_NTSC and profile Sony Bravia TV
2010-10-03 08:57:17,582 DEBUG [VideoDeliveryEngine] Getting media info for transcoded version of file Aladdin.avi
2010-10-03 08:57:17,582 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Aladdin.avi: MPEG_PS_PAL
2010-10-03 08:57:17,582 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Aladdin.avi: MPEG_PS_NTSC
2010-10-03 08:57:17,589 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2010-10-03 08:57:17,590 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [Content-Type: video/mpeg, Date: Sun, 03 Oct 2010 08:57:17 GMT, Server: FreeBSD, UPnP/1.0 DLNADOC/1.50, Serviio/0.4.2, Cache-control: no-cache, contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000, transferMode.dlna.org: Streaming, ]
2010-10-03 08:57:17,602 DEBUG [WebServer] Incoming connection from /192.168.0.207:61737
2010-10-03 08:57:17,603 DEBUG [ResourceTransportRequestHandler] GET /resource/197/MEDIA_ITEM/MPEG_PS_NTSC HTTP/1.1, headers = [TimeSeekRange.dlna.org: npt=0.000-, getcontentFeatures.dlna.org: 1, Pragma: getIfoFileURI.dlna.org, transferMode.dlna.org: Streaming, Host: 192.168.0.205:8895, ]
2010-10-03 08:57:17,604 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,604 DEBUG [ResourceTransportRequestHandler] Request for resource 197 and type 'MEDIA_ITEM' received
2010-10-03 08:57:17,606 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 197)
2010-10-03 08:57:17,609 DEBUG [VideoDAOImpl] Reading a Video (id = 197)
2010-10-03 08:57:17,613 DEBUG [VideoDeliveryEngine] Delivering item '197' for client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,613 DEBUG [VideoDeliveryEngine] Delivering file 'Aladdin.avi' using transcoding
2010-10-03 08:57:17,614 DEBUG [VideoDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,618 DEBUG [MediaItemDAOImpl] Getting file of media item 197
2010-10-03 08:57:17,626 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode file: /mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II/Aladdin.avi
2010-10-03 08:57:17,627 DEBUG [ProcessExecutor] Starting /usr/local/bin/ffmpeg -threads 2 -i /mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II/Aladdin.avi -y -vcodec mpeg2video -sameq -r 25.0 -g 15 -copyts -acodec ac3 -ab 192k -sn -f vob /mnt/sgt160/temp/Serviio/transcoding-temp-197-MPEG2PS.stf
2010-10-03 08:57:17,858 WARN [ProcessExecutor] Process /usr/local/bin/ffmpeg has a return code of 1! This is a possible error.
2010-10-03 08:57:17,859 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2010-10-03 08:57:25,400 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed

I kind of do not like the ffmpeg error, not sure how to tackle that ?!

fafa
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Sun Oct 03, 2010 9:43 am

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

Petr, one more thing. I could not get mkv or mp4 working with ps3 media server on my freenas box, but avis such as the aladdin.avi I am referring to were fine.
I checked the .conf file of ps3 media server to see if I could get something from there, but I am lacking knowledge as far as video formats...

I am pasting it here, don't know if that rings a bell to anyone.
tia
fafa
-----------------------
# ps3mediaserver renderer profile for Sony Bravia 5500 series
# Refer to PS3.conf for help

RendererName=Sony Bravia 5500 Series
RendererIcon=bravia.png
UserAgentSearch=notusedhere
UserAgentAdditionalHeader=X-AV-Client-Info
UserAgentAdditionalHeaderSearch=(BRAVIA KDL.+5[0-9]{3})|(BRAVIA KDL.+WE5)|(BRAVIA KDL-[0-9]{2}XBR9)|(BRAVIA KDL.+EX5)
Video=true
Audio=true
Image=true
SeekByTime=true
TranscodeVideo=MPEGAC3
TranscodeAudio=MP3
DefaultVBVBufSize=true
MuxH264ToMpegTS=true
MuxDTSToMpeg=false
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
H264Level41Limited=true
MimeTypesChanges=audio/wav=audio/L16|video/mp4=video/mpeg
DLNALocalizationRequired=true
TranscodeExtensions=dvr-ms,dvr,mkv,dv,ty,mov,ogm,hdmov,hdm,rmv,rmvb,rm,asf,evo,asx,flv,m2v,mpe,mod,tivo,ty,tmf,ts,tp,m2p,mp4,m4v,avi,wmv,wm,divx,div,flac,mlp,fla,wma,m4a,aac,dts,mka,ape,ogg,shn,mpc,ra,mp2,wv,oma,aa3,gif,png,arw,cr2,crw,dng,raf,mrw,nef,pef,tif,tiff
StreamExtensions=

#Better/faster codec detection method ! true to enable it
#Need testing !
MediaInfo=true
Supported = f:mpegps|mpegts v:mpeg2|mp4|h264 a:ac3|lpcm|aac|mpa m:video/mpeg
Supported = f:mp3 m:audio/mpeg
Supported = f:wav m:audio/L16
Supported = f:jpg m:image/jpeg
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 03, 2010 10:11 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

What version of FFmpeg do you have on the NAS? Did you build one from the sources on serviio website?
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Mon Oct 04, 2010 10:19 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

Hi Petr - thanks for the follow-up

I have the one built-in with freenas 0.7,eg apparently ffmpeg 0.5.

I downloaded the tar provided on your website but freenas does not feature gcc and I have absolutely no clue how to install it on freenas.
One option would be to install freebsd on another machine, compile ffmpeg and transfer the binaries but before going that uncertain road I wonder if there is another easier solution ...

fafa
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 04, 2010 10:46 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

You can see in the log this command:

  Code:
/usr/local/bin/ffmpeg -threads 2 -i /mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II/Aladdin.avi -y -vcodec mpeg2video -sameq -r 25.0 -g 15 -copyts -acodec ac3 -ab 192k -sn -f vob /mnt/sgt160/temp/Serviio/transcoding-temp-197-MPEG2PS.stf


you can try running it on ffmpeg 0.5 (ideally from your NAS) and latest ffmpeg to see if one crashes and the other doesn't.
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Tue Oct 05, 2010 9:53 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

ok, on ffmpeg 0.5 (built-in version) it gives:

freenas:/mnt# /usr/local/bin/ffmpeg -threads 2 -i '/mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II/Aladdin.avi' -y -vcodec mpeg2video -sameq -r 25.0 -g 15 -copyts -acodec ac3 -ab 192k -sn -f vob /mnt/sgt160/temp/Serviio/transcoding-temp-197-MPEG2PS.stf
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-swscale --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-memalign-hack --cc=cc --extra-cflags=-I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-libamr-nb --disable-libamr-wb --disable-libdirac --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libgsm --disable-vhook --enable-ipv6 --disable-libmp3lame --disable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --enable-libvorbis --disable-x11grab --enable-libx264 --enable-libxvid
libavutil 49.15. 0 / 50.15. 1
libavcodec 52.20. 0 / 52.72. 2
libavformat 52.31. 0 / 52.64. 2
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 7 2010 00:34:41, gcc: 4.2.1 20070719 [FreeBSD]

Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
Input #0, avi, from '/mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II/Aladdin.avi':
Duration: 01:26:22.05, start: 0.000000, bitrate: 1081 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 560x336, 25 fps, 25 tbr, 25 tbn, 30k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
/libexec/ld-elf.so.1: /usr/local/bin/ffmpeg: Undefined symbol "av_fifo_init"

so command does crash but I have to say I am not sure how to deal with that...
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 05, 2010 10:23 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

I'd say install FreeBSD on a VM (e.g. http://www.virtualbox.org/), compile FFmpeg from the provided sources in it and try that on the NAS. You can even specify the new ffmpeg version with -Dffmpeg.location attribute.
<<

fafa

Streaming enthusiast

Posts: 30

Joined: Mon Sep 27, 2010 8:03 pm

Location: France

Post Mon Oct 11, 2010 7:34 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

Hey there

Well, I have to say this has been one of the most frustrating attempt I did.
Vm box installed on xp, got freebsd 7.3 running but impossible the compile the ffmpeg sources on your web site petr, make won't execute properly although all dependencies are ok (I added them one by one).

After ./configure ran properly I got a set of messages like
"Makefile", line 1: could not find config.mak
"Makefile", line 5: Missing dependency operator
....
Error expanding embedded variable

I also tried gmake but still no luck.

Geee, this is tricky ....
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 19, 2010 5:12 pm

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

try to get the latest sources of ffmpeg from ffmpeg.org and compile those
<<

spawn57

Serviio newbie

Posts: 11

Joined: Fri Oct 01, 2010 3:59 pm

Post Fri Nov 19, 2010 2:55 am

Re: Ubuntu Server, Sony 32W5500, Sony 22S5700 and Sony PS3

yeah I did, all I had to do was set up the profile to use in serviio-console.

Return to User experiences

Who is online

Users browsing this forum: No registered users and 35 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.