Page 1 of 1

Problem streaming video in mediabrowser - SOLVED

PostPosted: Thu Nov 15, 2012 3:09 am
by lmd
Hi guys,

I upgraded to version 1.0.1 from 0.6.2 last night and I'm really impressed. I'd like to take advantage of the mediabrowser software to access my videos from home when on the move or at work (when I get some 'quiet' time).

I can listen to my mp3s and I can also look at my photos, but when I try to view the videos, I get an error message like this:

200, Stream not found, NetStream.Play.StreamNotFound, clip: '[Clip]
'http://myservername.com:23424/cds/resource/48/MEDIA_ITEM/FLV-0/MEDIUM,flv_player?authToken=longnumberhere''

I'm running serviio on an old laptop using Ubuntu 12.04, Serviio 1.0.1 and the latest Web UI in PHP - I have external hard drives plugged into the machine which are my main source of media. I know they're working OK as the photos and music are coming off them just fine.

Any help appreciated - apologies if I've missed an FAQ on this already, I couldn't see it.

Cheers,

Andy :)

Re: Problem streaming video in mediabrowser

PostPosted: Thu Nov 15, 2012 5:18 am
by jhb50
There is a bug that will be fixed in the next release. You will get that message when you attempt to replay a video. A workaround is to start playing another video, stop it and go play the first video again.

Re: Problem streaming video in mediabrowser

PostPosted: Thu Nov 15, 2012 6:12 am
by lmd
OK jhb50 - thanks for the info. I'll try the workaround - any idea on an ETA for the next release?

Cheers :)

I tried the workaround, and it didn't work for me. I await the next release with great anticipation! Serviio has made my time here in Thailand a really pleasant one - the TV here is just terrible LOL :D

Re: Problem streaming video in mediabrowser

PostPosted: Thu Nov 15, 2012 2:22 pm
by zip
Do you see any errors in the log when you play the file?

Re: Problem streaming video in mediabrowser

PostPosted: Thu Nov 15, 2012 4:38 pm
by lmd
I'll try again and take a look! :)

Re: Problem streaming video in mediabrowser

PostPosted: Thu Nov 15, 2012 4:41 pm
by lmd
  Code:
2012-11-15 23:37:37,146 DEBUG [ServiioStatusService] Detailed exception:
java.io.IOException: Transcoded file '/tmp/Serviio/transcoding-temp-3934-flv_player-MEDIUM.stf' cannot be found, FFmpeg execution probably failed


This is the last error, there were a few before from when I tried a few different videos. I've just done a major reinstall of ffmpeg using the package you provide on the download page. I couldn't get librtmp to work but I don't think that's the problem. It looks like the flv codec isn't installed - I'll give it a try now and see if it works.

I've managed to get my Online resources working again though. Let's see how I go.

I'm running Ubuntu 12.04 if I haven't mentioned it before.

Cheers,

Andy :)

Re: Problem streaming video in mediabrowser

PostPosted: Thu Nov 15, 2012 10:48 pm
by zip
Enable detailed logging, run it again and you should see the ffmpeg command used. Then try to run the command and post the error

Re: Problem streaming video in mediabrowser

PostPosted: Fri Nov 16, 2012 1:25 am
by lmd
zip wrote:Enable detailed logging, run it again and you should see the ffmpeg command used. Then try to run the command and post the error


Thanks for looking into this Zip, here's the output:
  Code:
2012-11-16 08:22:59,589 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.34, timeout = 0
2012-11-16 08:22:59,590 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 04498967-31be-31f3-951a-53a7e3af9f75
2012-11-16 08:23:00,309 DEBUG [RendererDAOImpl] Retrieving list of all stored renderers
2012-11-16 08:23:01,363 DEBUG [CDSRetrieveMediaServerResource] Request for content delivery accepted
2012-11-16 08:23:01,363 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/180.183.74.101, Profile=Flash player'
2012-11-16 08:23:01,363 DEBUG [ResourceDeliveryProcessor] Request for resource 1000000000910001 and type 'MEDIA_ITEM' received
2012-11-16 08:23:01,363 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000910001 (online)
2012-11-16 08:23:01,363 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 91)
2012-11-16 08:23:01,364 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 91)
2012-11-16 08:23:01,364 DEBUG [VideoDeliveryEngine] Delivering item '1000000000910001' for client 'IPAddress=/180.183.74.101, Profile=Flash player'
2012-11-16 08:23:01,364 DEBUG [VideoDeliveryEngine] Delivering file 'http://o-o---preferred---sn-5np5po4v-c33e7---v19---lscache2.c.youtube.com/videoplayback?upn=jEWBl3c5pOw&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=905605%2C912307%2C916408%2C904462%2C922401%2C920704%2C912806%2C927201%2C925706%2C922403%2C925003%2C913546%2C913556%2C916805%2C920201%2C901451&ms=au&algorithm=throttle-factor&burst=40&ip=110.171.118.143&itag=35&gcr=th&sver=3&mt=1353008290&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hUSFBOT19MU0NONF9ISFNIOklzRGZQRGZjT2ZW&expire=1353031779&id=fcb3f9bae2dcc02b&signature=A502CA49E371824CC73088794EDF9696C7BF0BCB.6252950158DAC2D427FB5D7941FAC33B5FB2278C' using transcoding
2012-11-16 08:23:01,364 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-1000000000910001-flv_player-MEDIUM.stf'
2012-11-16 08:23:01,364 DEBUG [TranscodingJobListener] Deleted temp file '/tmp/Serviio/transcoding-temp-1000000000910001-flv_player-MEDIUM.stf': false
2012-11-16 08:23:01,364 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/180.183.74.101, Profile=Flash player'
2012-11-16 08:23:01,364 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: http://o-o---preferred---sn-5np5po4v-c33e7---v19---lscache2.c.youtube.com/videoplayback?upn=jEWBl3c5pOw&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=905605%2C912307%2C916408%2C904462%2C922401%2C920704%2C912806%2C927201%2C925706%2C922403%2C925003%2C913546%2C913556%2C916805%2C920201%2C901451&ms=au&algorithm=throttle-factor&burst=40&ip=110.171.118.143&itag=35&gcr=th&sver=3&mt=1353008290&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hUSFBOT19MU0NONF9ISFNIOklzRGZQRGZjT2ZW&expire=1353031779&id=fcb3f9bae2dcc02b&signature=A502CA49E371824CC73088794EDF9696C7BF0BCB.6252950158DAC2D427FB5D7941FAC33B5FB2278C
2012-11-16 08:23:01,365 DEBUG [ProcessExecutor] Starting ffmpeg -i http://o-o---preferred---sn-5np5po4v-c33e7---v19---lscache2.c.youtube.com/videoplayback?upn=jEWBl3c5pOw&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=905605%2C912307%2C916408%2C904462%2C922401%2C920704%2C912806%2C927201%2C925706%2C922403%2C925003%2C913546%2C913556%2C916805%2C920201%2C901451&ms=au&algorithm=throttle-factor&burst=40&ip=110.171.118.143&itag=35&gcr=th&sver=3&mt=1353008290&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hUSFBOT19MU0NONF9ISFNIOklzRGZQRGZjT2ZW&expire=1353031779&id=fcb3f9bae2dcc02b&signature=A502CA49E371824CC73088794EDF9696C7BF0BCB.6252950158DAC2D427FB5D7941FAC33B5FB2278C -y -copyts -c:v flv -b:v 1000k -maxrate:v 1000k -bufsize:v 1000k -r 30000/1001 -g 15 -c:a libmp3lame -b:a 128k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv /tmp/Serviio/transcoding-temp-1000000000910001-flv_player-MEDIUM.stf
2012-11-16 08:23:01,393 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:41
2012-11-16 08:23:01,568 WARN  [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
2012-11-16 08:23:01,568 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-11-16 08:23:04,614 DEBUG [RendererDAOImpl] Retrieving list of all stored renderers


There must be somehing on ffmpeg I've not installed correctly - any idea?

Thanks! :)

Re: Problem streaming video in mediabrowser

PostPosted: Fri Nov 16, 2012 12:34 pm
by zip
so what happens when you execute this?

  Code:
fmpeg -i "http://o-o---preferred---sn-5np5po4v-c33e7---v19---lscache2.c.youtube.com/videoplayback?upn=jEWBl3c5pOw&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=905605%2C912307%2C916408%2C904462%2C922401%2C920704%2C912806%2C927201%2C925706%2C922403%2C925003%2C913546%2C913556%2C916805%2C920201%2C901451&ms=au&algorithm=throttle-factor&burst=40&ip=110.171.118.143&itag=35&gcr=th&sver=3&mt=1353008290&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hUSFBOT19MU0NONF9ISFNIOklzRGZQRGZjT2ZW&expire=1353031779&id=fcb3f9bae2dcc02b&signature=A502CA49E371824CC73088794EDF9696C7BF0BCB.6252950158DAC2D427FB5D7941FAC33B5FB2278C" -y -copyts -c:v flv -b:v 1000k -maxrate:v 1000k -bufsize:v 1000k -r 30000/1001 -g 15 -c:a libmp3lame -b:a 128k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv /tmp/Serviio/transcoding-temp-1000000000910001-flv_player-MEDIUM.stf

Re: Problem streaming video in mediabrowser

PostPosted: Sat Nov 17, 2012 3:01 pm
by lmd
OK, so when I execute that from the command line I get this:

  Code:
HTTP error 403 Forbidden
http://o-o---preferred---sn-5np5po4v-c33e7---v19---lscache2.c.youtube.com/videoplayback?upn=jEWBl3c5pOw&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=905605%2C912307%2C916408%2C904462%2C922401%2C920704%2C912806%2C927201%2C925706%2C922403%2C925003%2C913546%2C913556%2C916805%2C920201%2C901451&ms=au&algorithm=throttle-factor&burst=40&ip=110.171.118.143&itag=35&gcr=th&sver=3&mt=1353008290&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hUSFBOT19MU0NONF9ISFNIOklzRGZQRGZjT2ZW&expire=1353031779&id=fcb3f9bae2dcc02b&signature=A502CA49E371824CC73088794EDF9696C7BF0BCB.6252950158DAC2D427FB5D7941FAC33B5FB2278C: Input/output error


Not sure what to make of that, I'm testing it with videos that work fine over Samba or through my TV.

Where to next?

Thanks again for all the help! :)

Andy

Re: Problem streaming video in mediabrowser

PostPosted: Sat Nov 17, 2012 5:24 pm
by zip
Possibly the URL expired. Can you try to play a local file, instead of online youtube stream?

Re: Problem streaming video in mediabrowser

PostPosted: Sat Nov 17, 2012 8:01 pm
by lmd
OK,

I've tried again with a fresh install, here's the log entry for where it fails (at least I think it is)
  Code:
2012-11-18 02:58:29,795 DEBUG [CDSRetrieveMediaServerResource] Request for content delivery accepted
2012-11-18 02:58:29,795 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.37, Profile=Flash player'
2012-11-18 02:58:29,795 DEBUG [ResourceDeliveryProcessor] Request for resource 1779 and type 'MEDIA_ITEM' received
2012-11-18 02:58:29,795 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1779 (local)
2012-11-18 02:58:29,796 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1779)
2012-11-18 02:58:29,796 DEBUG [VideoDAOImpl] Reading a Video (id = 1779)
2012-11-18 02:58:29,797 DEBUG [VideoDeliveryEngine] Delivering item '1779' for client 'IPAddress=/192.168.1.37, Profile=Flash player'
2012-11-18 02:58:29,797 DEBUG [VideoDeliveryEngine] Delivering file 'South.Park.S16E13.720p.HDTV.x264-IMMERSE.mkv' using transcoding
2012-11-18 02:58:29,797 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.1.37, Profile=Flash player'
2012-11-18 02:58:29,797 WARN  [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/tmp/Serviio/transcoding-temp-1779-flv_player-MEDIUM.stf' cannot be found, FFmpeg execution probably failed
2012-11-18 02:58:29,797 DEBUG [ServiioStatusService] Detailed exception:
java.io.IOException: Transcoded file '/tmp/Serviio/transcoding-temp-1779-flv_player-MEDIUM.stf' cannot be found, FFmpeg execution probably failed
   at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
   at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:125)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:95)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
   at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:84)
   at org.serviio.upnp.service.contentdirectory.rest.resources.server.CDSRetrieveMediaServerResource.deliver(CDSRetrieveMediaServerResource.java:65)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:449)
   at org.restlet.resource.ServerResource.get(ServerResource.java:645)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:527)
   at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:587)
   at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:299)
   at org.serviio.restlet.AbstractProEditionServerResource.doConditionalHandle(AbstractProEditionServerResource.java:35)
   at org.serviio.upnp.service.contentdirectory.rest.resources.server.AbstractCDSServerResource.doConditionalHandle(AbstractCDSServerResource.java:50)
   at org.serviio.upnp.service.contentdirectory.rest.resources.server.AbstractRestrictedCDSServerResource.doConditionalHandle(AbstractRestrictedCDSServerResource.java:53)
   at org.restlet.resource.ServerResource.handle(ServerResource.java:846)
   at org.restlet.resource.Finder.handle(Finder.java:510)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.routing.Router.doHandle(Router.java:497)
   at org.restlet.routing.Router.handle(Router.java:737)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
   at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
   at org.restlet.Application.handle(Application.java:388)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.routing.Router.doHandle(Router.java:497)
   at org.restlet.routing.Router.handle(Router.java:737)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.routing.Router.doHandle(Router.java:497)
   at org.restlet.routing.Router.handle(Router.java:737)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.routing.Filter.doHandle(Filter.java:156)
   at org.restlet.routing.Filter.handle(Filter.java:203)
   at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
   at org.restlet.Component.handle(Component.java:388)
   at org.restlet.Server.handle(Server.java:488)
   at org.restlet.engine.http.connector.BaseServerHelper.handle(BaseServerHelper.java:158)
   at org.restlet.engine.http.connector.BaseServerHelper.handleInbound(BaseServerHelper.java:167)
   at org.restlet.engine.http.connector.BaseHelper.handleNextInbound(BaseHelper.java:418)
   at org.restlet.engine.http.connector.Connection.readMessages(Connection.java:695)
   at org.restlet.engine.http.connector.Controller$2.run(Controller.java:95)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:679)


What would I input on the command line to replicate directly with ffmpeg?

Thanks again for the help!

Andy

Re: Problem streaming video in mediabrowser

PostPosted: Mon Nov 19, 2012 1:29 pm
by zip
further up in the log it'll say Invoking ffmpeg to transcode file .. or similar - with the ffmpeg command. You'l have to copy and paste the command and wrap the file name in quotes (it it includes spaces, you don't have to otherwise). then post the result of the command.

Re: Problem streaming video in mediabrowser

PostPosted: Sat Nov 24, 2012 1:46 pm
by lmd
zip wrote:further up in the log it'll say Invoking ffmpeg to transcode file .. or similar - with the ffmpeg command. You'l have to copy and paste the command and wrap the file name in quotes (it it includes spaces, you don't have to otherwise). then post the result of the command.


Cool - thanks, I'll get to it later.

Gonna watch a movie with the gf - using Serviio of course! It's a lifesaver :)

Thanks!

Andy

Re: Problem streaming video in mediabrowser

PostPosted: Sat Nov 24, 2012 5:29 pm
by lmd
I rebuilt the ffmpeg library, as found on the ffmpeg site here http://ffmpeg.org/trac/ffmpeg/wiki/Ubun ... ationGuide and now it works - I've just got to fiddle around with the quality settings as I think I can improve the video quality.

I can't wait to try this out and show the guys at work heh heh :)

Thanks for your support - would you like me to mark this as 'SOLVED'?

Cheers,

Andy