Page 1 of 1

serviio on OS X Lion

PostPosted: Wed Jun 08, 2011 7:27 am
by jevans0417
As of Lion, Apple has apparently dropped Java Runtime which makes Serviio useless. Will there be an update that doesn't require Java, or does anyone know a good DLNA server that works with Sony BD Player not requiring Java?

Re: serviio on OS X Lion

PostPosted: Wed Jun 08, 2011 8:47 am
by zip
They have not dropped it AFAIK, only dropped support. In any case, Oracle is picking it up and will provide Java for Mac from now on - so no worries.

Re: serviio on OS X Lion

PostPosted: Fri Jun 10, 2011 2:38 am
by Kewl
When you launch an app in 10.7 that requires Java, the OS offers to download and install it.

Re: serviio on OS X Lion

PostPosted: Thu Jul 21, 2011 9:14 am
by trrttsch
Java installed fine (I guess) but I can't get it to work anyway. Serviio seems to start but the icon jumps up and down but with nothing to say. Serviio Console reports no problem. Server is only visible periodically from my Samsung TV and disconnects within seconds.

Re: serviio on OS X Lion

PostPosted: Thu Jul 21, 2011 9:42 am
by zip
the icon jumping is 'expected'. Is there something in the log?

Re: serviio on OS X Lion

PostPosted: Thu Jul 21, 2011 8:28 pm
by matoqui
Hello,

Yesterday I installed Lion and the corresponding java file. Now Serviio's transcoding doesn't work. I am using the "Sony BD player" profile.

The relevant part of the log file is:

2011-07-21 07:24:11,144 WARN [ProcessExecutor] Process /Applications/Serviio.app/Contents/Resources/Java/../../MacOS/ffmpeg has a return code of 1! This is a possible error.
2011-07-21 07:24:18,327 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/var/folders/WV/WV5TPV2lFLa-FzeBdxXhv++++TI/-Tmp-/Serviio/transcoding-temp-32201-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/var/folders/WV/WV5TPV2lFLa-FzeBdxXhv++++TI/-Tmp-/Serviio/transcoding-temp-32201-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:114)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:89)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:116)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:115)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)

I suppose that recompiling ffmpeg and replacing the one in Serviio.app may solve the problem. I will try that once I manage to download xcode.

Best wishes,

Manuel

Re: serviio on OS X Lion

PostPosted: Thu Jul 21, 2011 9:28 pm
by trrttsch
zip wrote:the icon jumping is 'expected'. Is there something in the log?


OK! But it crashed after a long while of jumping. When right-clicking the icon it said "doesn't respond" or something similar. Same thing three times with restart of computer. But now somehow it seems to work, and that without a computer restart since last crash. I thought I'd left this kind of shit behind when switching to Mac. :)

I'm no computer pro but the log seemed ok to me.

Re: serviio on OS X Lion

PostPosted: Fri Jul 22, 2011 12:00 am
by zip
matoqui wrote:Hello,

Yesterday I installed Lion and the corresponding java file. Now Serviio's transcoding doesn't work. I am using the "Sony BD player" profile.

The relevant part of the log file is:

2011-07-21 07:24:11,144 WARN [ProcessExecutor] Process /Applications/Serviio.app/Contents/Resources/Java/../../MacOS/ffmpeg has a return code of 1! This is a possible error.
2011-07-21 07:24:18,327 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/var/folders/WV/WV5TPV2lFLa-FzeBdxXhv++++TI/-Tmp-/Serviio/transcoding-temp-32201-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/var/folders/WV/WV5TPV2lFLa-FzeBdxXhv++++TI/-Tmp-/Serviio/transcoding-temp-32201-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:114)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:89)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:116)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:115)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)

I suppose that recompiling ffmpeg and replacing the one in Serviio.app may solve the problem. I will try that once I manage to download xcode.

Best wishes,

Manuel

what if you execute the bundled ffmpeg (something like ffmpeg -i video_file)

Re: serviio on OS X Lion

PostPosted: Fri Jul 22, 2011 12:21 am
by matoqui
zip wrote:
matoqui wrote:Hello,

Yesterday I installed Lion and the corresponding java file. Now Serviio's transcoding doesn't work. I am using the "Sony BD player" profile.

The relevant part of the log file is:

2011-07-21 07:24:11,144 WARN [ProcessExecutor] Process /Applications/Serviio.app/Contents/Resources/Java/../../MacOS/ffmpeg has a return code of 1! This is a possible error.
2011-07-21 07:24:18,327 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/var/folders/WV/WV5TPV2lFLa-FzeBdxXhv++++TI/-Tmp-/Serviio/transcoding-temp-32201-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/var/folders/WV/WV5TPV2lFLa-FzeBdxXhv++++TI/-Tmp-/Serviio/transcoding-temp-32201-MPEG2TS.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:114)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:89)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:116)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:115)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)

I suppose that recompiling ffmpeg and replacing the one in Serviio.app may solve the problem. I will try that once I manage to download xcode.

Best wishes,

Manuel

what if you execute the bundled ffmpeg (something like ffmpeg -i video_file)



=========

That seems to work. The output is:

ffmpeg -i ~/Desktop/Misc/Movies/Documentaries/TIBETAN_BOOK_OF_THE_DEAD-1.m4v
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 12 2011 19:51:48 with gcc 4.0.1 (Apple Inc. build 5493)
configuration: --enable-static --disable-shared --bindir=/tmp/ffmpeg --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-pthreads --disable-mmx --extra-ldflags=-L/tmp/static/lib --extra-cflags=-I/tmp/static/include
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1067e00] max_analyze_duration reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/manuel/Desktop/Misc/Movies/Documentaries/TIBETAN_BOOK_OF_THE_DEAD-1.m4v':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2010-02-26 22:31:13
encoder : HandBrake 0.9.4 2009112300
Duration: 00:47:44.26, start: 0.000000, bitrate: 3224 kb/s
Chapter #0.0: start -0.066778, end 215.048167
Metadata:
title : Chapter 1
Chapter #0.1: start 215.048167, end 476.275800
Metadata:
title : Chapter 2
Chapter #0.2: start 476.275800, end 567.466900
Metadata:
title : Chapter 3
Chapter #0.3: start 567.466900, end 887.720167
Metadata:
title : Chapter 4
Chapter #0.4: start 887.720167, end 1165.397567
Metadata:
title : Chapter 5
Chapter #0.5: start 1165.397567, end 1349.981967
Metadata:
title : Chapter 6
Chapter #0.6: start 1349.981967, end 1595.660733
Metadata:
title : Chapter 7
Chapter #0.7: start 1595.660733, end 1844.576067
Metadata:
title : Chapter 8
Chapter #0.8: start 1844.576067, end 1941.539600
Metadata:
title : Chapter 9
Chapter #0.9: start 1941.539600, end 2246.210633
Metadata:
title : Chapter 10
Chapter #0.10: start 2246.210633, end 2575.773200
Metadata:
title : Chapter 11
Chapter #0.11: start 2575.773200, end 2864.261400
Metadata:
title : Chapter 12
Stream #0.0(und): Video: h264, yuv420p, 702x480 [PAR 8:9 DAR 13:10], 3054 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
creation_time : 2010-02-26 22:31:13
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 165 kb/s
Metadata:
creation_time : 2010-02-26 22:31:13
Stream #0.2(und): Subtitle: text / 0x74786574
Metadata:
creation_time : 2010-02-26 22:31:13
At least one output file must be specified

==========

Manuel

Re: serviio on OS X Lion

PostPosted: Fri Jul 22, 2011 8:15 am
by zip
Can you enable detailed logging, play the file, find the ffmpeg command used to transcode and run it?

Re: serviio on OS X Lion

PostPosted: Fri Jul 22, 2011 1:26 pm
by matoqui
zip wrote:Can you enable detailed logging, play the file, find the ffmpeg command used to transcode and run it?


Zip,

I did. The transcoding ran without problems.

I solved the problem by changing the permissions of the /var/folders/WV tree. I set the owner and group to mirror a those of a backup copy of the system that still have Snow Leopard installed. Now it works.

It may be interesting to do a fresh install of Serviio on Lion (transfering the library and deleting the /var/folders/WV tree so that the program re-creates it) to see if the problem comes up. I will try to do that later today and report back the results.

Many thanks for your help!

Manuel

Re: serviio on OS X Lion

PostPosted: Fri Jul 22, 2011 7:44 pm
by jelmer
I had the same problem.

I deleted serviio from the applications folder , then reinstalled. That did the trick for me.

It seems osx support is rather crude though, Would you be accepting contributions to better the experience? (installer, pref pane item instead of bouncy serviio logo in dock)

Re: serviio on OS X Lion

PostPosted: Fri Jul 22, 2011 8:03 pm
by Cerberus
jelmer wrote:I had the same problem.

I deleted serviio from the applications folder , then reinstalled. That did the trick for me.

It seems osx support is rather crude though, Would you be accepting contributions to better the experience? (installer, pref pane item instead of bouncy serviio logo in dock)


The bouncy serviio icon is a bug in 0.5.2 and i think ZIP has fixed this for 0.6 but im not at home to check the bitbucket ticket.

Re: serviio on OS X Lion

PostPosted: Fri Jul 22, 2011 10:43 pm
by zip
jelmer wrote:I had the same problem.

I deleted serviio from the applications folder , then reinstalled. That did the trick for me.

It seems osx support is rather crude though, Would you be accepting contributions to better the experience? (installer, pref pane item instead of bouncy serviio logo in dock)

You can create a bitbucket ticket with a proposed solution and I will see what can be done.

Re: serviio on OS X Lion

PostPosted: Sat Jul 23, 2011 8:20 pm
by jamiej73
Had same issue that Serviio didn't work immediately after updating to Lion OS.

Uninstalled Serviio and re-installed, works again fine...