FAQ  •  Register  •  Login

serviio stops device disconnected

<<

iplem

Streaming enthusiast

Posts: 35

Joined: Wed Apr 25, 2012 10:05 am

Post Fri Aug 24, 2012 3:18 pm

Re: serviio stops device disconnected

Hi Zip,

I'm trying to find out why some links work well where other do stop after a few seconds, I do found out something interesting which I do not really understand. For youtube streaming, which always work well, the ffmpeg command invoked use the file streamed (probably because the online transcoding in the profiles.xml), but the problematic one, the walla streaming in my case, the ffmpeg streams to pipe which I believe it might be the reason for the issue.

Any help will be appreciated.

Walla ffmpeg command:
  Code:
[FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://wafla.walla.co.il app=vod playpath=mp4:media/013/434/1343407-40
2012-08-24 18:02:31,395 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -fflags +genpts -i rtmp://wafla.walla.co.il app=vod playpath=mp4:media/013/434/1343407-40 -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a copy -map 0:0 -map 0:1 -sn -f mpegts pipe:


Youtube ffmpeg command:
  Code:
2012-08-24 17:51:21,226 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -fflags +genpts -i http://o-o---preferred---netvision-hfa1---v19---lscache7.c.youtube.com/videoplayback?ip=93.173.178.133&upn=1HKbODruwf0&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=903309%2C905704%2C926600%2C922401%2C920704%2C912806%2C911406%2C913558%2C912706&mt=1345817472&key=yt1&algorithm=throttle-factor&burst=40&ipbits=8&itag=35&sver=3&signature=C5157BFEE8378A2BE127A8F6FC06A01BC5A141CF.7B4EAB38EC501A34DE7AC8EB0C06635B77D63370&mv=m&source=youtube&ms=au&gcr=il&expire=1345840436&factor=1.25&cp=U0hTSlhPTl9IUENOM19QSVJFOlVicDUxTjdMRzVX&id=e2b9ef2c149265f4 -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3 -b:a 128k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\Users\Marco\temp\Serviio\transcoding-temp-1000000000990010-7-ORIGINAL.stf
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Sep 09, 2012 11:25 pm

Re: serviio stops device disconnected

the pipe: is there for live streams only
<<

iplem

Streaming enthusiast

Posts: 35

Joined: Wed Apr 25, 2012 10:05 am

Post Mon Sep 10, 2012 7:10 am

Re: serviio stops device disconnected

So setting live=false in the plugin for the actual link will cause the ffmpeg to use a file instead of pipe?
I think I tried it, and could not see any change, but I will try again.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Sep 10, 2012 10:04 pm

Re: serviio stops device disconnected

iplem wrote:So setting live=false in the plugin for the actual link will cause the ffmpeg to use a file instead of pipe?

Yes, but it'll start creating a never ending file ;-) So careful.
<<

iplem

Streaming enthusiast

Posts: 35

Joined: Wed Apr 25, 2012 10:05 am

Post Tue Sep 11, 2012 5:33 am

Re: serviio stops device disconnected

Great. Setting the live=false in the plugin solved the problem. I will look after the file size.

THANKS!!!
<<

luiz_borges

Streaming enthusiast

Posts: 26

Joined: Sun Jun 27, 2010 1:03 pm

Post Sat Nov 10, 2012 1:51 am

Re: serviio stops device disconnected

Same problem, Samsung BD-C5500 player, TP-Link Router, no problems using WMP Streaming, random disconnects with Serviio (some files play fully, others stop every 3 minutes, never at the same place). Subtitles, format and bitrate don't affect the behavior, it can happen with any format and even at low bitrates.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Nov 13, 2012 12:39 am

Re: serviio stops device disconnected

I made some more changes, give 1.1 a try when the beta is out.
<<

agucortes

Serviio newbie

Posts: 17

Joined: Thu Apr 11, 2013 1:09 am

Post Wed Sep 11, 2013 3:15 pm

Re: serviio stops device disconnected

Hi..
I'm having the same issue, the playback stop after a time, never in the same place:
  Code:
2013-09-11 12:01:28,455 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2013-09-11 12:01:28,455 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-09-11 12:01:28,455 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mpeg,Date: Wed, 11 Sep 2013 15:01:28 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.3.1,Cache-control: no-cache,TimeSeekRange.dlna.org: npt=287.535-7776/7776,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-09-11 12:01:52,708 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2013-09-11 12:01:52,710 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2013-09-11 12:01:52,711 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 4)
2013-09-11 12:02:52,715 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2013-09-11 12:02:52,715 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2013-09-11 12:02:52,716 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 4)
2013-09-11 12:03:13,692 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.0.4:59171s
2013-09-11 12:03:19,195 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 00000000-0000-1010-8000-5453edf14821 from address /192.168.0.2:52323
2013-09-11 12:03:19,404 DEBUG [DiscoverySSDPMessageListener] Received a valid NOTIFY (ssdp:alive) message from Renderer 00000000-0000-1010-8000-5453edf14821 from address /192.168.0.2:52323
2013-09-11 12:03:23,116 DEBUG [WebServer] I/O error: Software caused connection abort: socket write error
2013-09-11 12:03:24,286 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaServer:1 from address /192.168.0.4:60662s
2013-09-11 12:03:24,286 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.0.4:60662
2013-09-11 12:03:24,313 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaRenderer:1 from address /192.168.0.4:60662s
2013-09-11 12:03:24,341 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:00000000-0000-1010-8000-5453EDF14821 from address /192.168.0.4:60662s
2013-09-11 12:03:24,367 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.0.4:60662s
2013-09-11 12:03:25,815 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.0.4:60662s
2013-09-11 12:03:27,368 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaServer:1 from address /192.168.0.4:60662s
2013-09-11 12:03:27,370 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.0.4:60662
2013-09-11 12:03:27,396 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaRenderer:1 from address /192.168.0.4:60662s
2013-09-11 12:03:27,422 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:00000000-0000-1010-8000-5453EDF14821 from address /192.168.0.4:60662s
2013-09-11 12:03:27,448 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.0.4:60662s
2013-09-11 12:03:28,816 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.0.4:60662s

The problem started when i upgraded to 1.3.1, in the 1.2.1 never happened this. I've tried playback all files and getting the same problem, even those ones that used to work fine.
The pc and the tv are in the same location that used to stand, so i assume that the conection isn't the problem.
<<

luiz_borges

Streaming enthusiast

Posts: 26

Joined: Sun Jun 27, 2010 1:03 pm

Post Wed Sep 11, 2013 5:49 pm

Re: serviio stops device disconnected

Just a little feedback.

I've tried the lastest releases and it still has this problems (along with the problem of Serviio not always being discovered by my TV, previously it was always discovered).

My solution: I started using a flash drive to watch stuff instead of Serviio. It takes about 1-2 minutes to copy what I want to watch and have it playing on my TV. I've also uninstalled Serviio after awhile because it kept using too much resources while doing nothing.
<<

agucortes

Serviio newbie

Posts: 17

Joined: Thu Apr 11, 2013 1:09 am

Post Wed Sep 11, 2013 6:33 pm

Re: serviio stops device disconnected

I've went back to 1.2.1 and everything its working like charm again!
<<

kdwinton

Serviio newbie

Posts: 1

Joined: Sat Oct 05, 2013 2:46 am

Post Sat Oct 05, 2013 2:48 am

Re: serviio stops device disconnected

I have also been having random drop issues, have gone back to 1.2.1 and things seem to work fine again.
<<

GregGol

Serviio newbie

Posts: 1

Joined: Mon Oct 07, 2013 1:32 am

Post Mon Oct 07, 2013 1:46 am

Re: serviio stops device disconnected

I have had the premature termination problem since I first downloaded Serviio 1.3.1 in mid-August for my new Samsung 40-inch class C5 series SmartTV. I have tried the suggestions in the Forum posts and have concluded that the problem lies in the transcoding between Serviio residing on my Windows-based computer and the Samsung SmartTV. Specifically, either Serviio or the TV is miscalculating the length of time needed to play the entire video.

After the video loads, its duration is displayed as either 289:21:06 or 578:42:13. I think it’s not a coincidence that the latter is, subject to rounding, exactly twice the former. It’s also not a coincidence that the premature termination is proportional to the length of the playing time (or the file size). For a CNN news clip (usually less than 2 minutes long), the termination occurs a few seconds earlier then the “natural” end of the clip as played on my computer. For a nominal hour-long TV show episode (approximately 46 minutes after commercials are removed) the termination is at 41 or so minutes. The premature termination is too consistent – and has been reported by too many people -- to be attributable to a dodgy network or some random interference. As Zip posted, “The problem is transcoded content. Serviio doesn't know the future file size and send an arbitrary large number, but also the correct duration. Samsung chooses to ignore the duration value and instead computes duration based on the file size - thus the super long duration.” That’s half the answer. More importantly, in my non-technical phrasing: Despite the super long duration displayed, the quotient of [file size] / [processing rate bps] is a little too small to play the entire video. I’m not sure if the quotient is calculated by Serviio or by the TV; either way, it triggers the premature termination.

Also note that the super long duration displayed for the video as compared to its actual length makes it appear as if the progress bar is not working. It’s there and working, but the bright green segment would only advance to about 1/4% of the width of the progress bar. It’s too small to be seen.

It does not matter if the on-line source is an RSS feed or a Web resource. I have not tried a live stream. I tried various settings for duration of the advertisement SSDP messages from 300 to 18000; the setting does not affect the outcome.

It does seem to matter that the Samsung TV was manufactured after Samsung changed from AllShare to Samsung Link. AllShare still lurks in the TV somewhere. Depending on the combination of settings (e.g., Belkin router IPv6 pass-through enabled or disabled; the generic DLNA device, Samsung Series A, Series B or Series CDEF profile selected for the SmartTV; Samsung’s HDMI-CEC AnyNet+ on or off):
- the SmartTV Source listing is either “AllShare Serviio (computer name)” or “Network Serviio (computer name)”
- a given video will play [up to the premature termination] or yield a “file not currently supported” error (or, for TED Talks, a “may not be played properly” message)
- the premature termination error message is “Device disconnected” or “Check your network settings”
- after the termination Serviio will appear on the Source list OR I have to shut-off the TV and turn it back on for Serviio to appear on the Source list

Two days ago I thought I had the correct configuration. AnyNet+ off; IPv6 pass-through disabled; generic DLNA device profile. An NCIS episode displayed a length of 3:17:11. The progress was visible on the bar and the video played to its end and returned me to its Folder without disconnecting.

I have not been able to repeat the 3:17:11 result. In my experimenting, I found that the Series A profile is most likely to yield a “file not currently supported” error. With the Series B profile, a TED Talk video displayed a length of 1:03:26 (just once) but hour-long TV episodes go up to 578:42:13. Samsung CDEF profile and the generic DLNA profile almost always yield the 289:21:06 super long duration.

Attached are detail log entries from about the time an hour-long TV show disconnected prematurely with the Samsung CDEF profile in use.

I would sincerely appreciate your looking into the transcoding length calculation and finding a way to ensure that, once accurately calculated, it is sent to the TV and not ignored.
Attachments
Serviio_DetailLog_toPost.odt
Detail log
(27.24 KiB) Downloaded 386 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 07, 2013 6:44 pm

Re: serviio stops device disconnected

I've spent too much time on this already, which means:

a) I'm too stupid to make it work
b) Samsung do it their way and don't really support transcoded content
c) combination of both

Some might be fixed by profile, perhaps. Apparently one of the Sony profiles shows the proper duration.
<<

monashek

Serviio newbie

Posts: 3

Joined: Fri Nov 15, 2013 8:43 am

Post Tue Dec 10, 2013 2:27 pm

Re: serviio stops device disconnected

I have a problem when viewed online resources on the Samsung TV. Serviio disconnected for a few minutes before the end of the video. How you can fix this error?
<<

rico_vancouver

Serviio newbie

Posts: 1

Joined: Mon Dec 23, 2013 6:11 pm

Post Tue Apr 15, 2014 5:22 pm

Re: serviio stops device disconnected

For what it's worth, I thought I would let other users know that I tried pretty much every suggestion on this board to try and keep my BD-C5500 from disconnecting. I downgraded to 1.2.1, tried all of the router fixes, and even downgraded my blu-ray firmware, and yet I could never make it through a single TV show or movie without being disconnected. I also have a Samsung TV, which NEVER disconnects from Serviio, so I think there's something quirky with the blu-ray player and communicating with Serviio.

So after spending literally days trying to fix this, I installed Plex on my Mac, and on my BD-C5500. I've watched about 25 hours of movies and TV programs without a single disconnect. For those of you who haven't tried it with your SmartTV or Blu-ray player, it's a brilliant interface to the Plex server.
<<

ncstone

Serviio newbie

Posts: 12

Joined: Mon Aug 26, 2013 11:30 pm

Post Fri May 09, 2014 12:12 am

Re: serviio stops device disconnected

I have had similar problems my TV used to disconnect and then i would have to put it in standby and turn it back on, i tried everything from Router Settings to Firmware upgrades etc to no avail. I knew this was more of a problem with the connection source as none of the media servers were working for me, I have recently brought myself a TP-Link N900 router and ive just watched a 2hour film without a problem. I have read other posts were upgrading to a better router has worked as well.
<<

jmacri978

Serviio newbie

Posts: 1

Joined: Mon Oct 20, 2014 12:21 am

Post Mon Oct 20, 2014 12:27 am

Re: serviio stops device disconnected

I'm having a similar issue with my samsung Bluray and I just read on another forum about the DHCP lease setting on the router being the culprit. My lease time was set to 3600 (60 mins) which is the default for my router. I upped this to 86400 (24 hours). If these devices follow the DHCP RFC I believe they should try to renew their lease halfway through (30 mins). I suspect that causes a drop in connectivity.
<<

tomek7

Serviio newbie

Posts: 8

Joined: Mon Dec 31, 2012 3:46 pm

Post Wed Jan 07, 2015 9:14 pm

Re: serviio stops device disconnected

Hi Guys, I have the same problems with my Samsung TV which randomly gets disconnected from Serviio while watching a movie. Sometimes I it happens once per 3 movies, sometimes 3 times during one movie and never in the same moment. I attached a log file with hope that someone will spot something interesting in here as today I started to watch movie after 18:00 I think and by 19:10 I got disconnected twice and after the second one I could not play it back so I watched this from memory stick.

Samsung 46C750
Synology: DS112j
Firmware: 4.3-3827

Serviio: 1.4.1.2-0026
Router: Sky (Model SR101)

Please help
Tom
Attachments
log Serviio.gif
log Serviio.gif (232.81 KiB) Viewed 11505 times
<<

richierm257

User avatar

Streaming enthusiast

Posts: 33

Joined: Fri Dec 31, 2010 2:04 am

Location: Bah..........

Post Thu Mar 19, 2015 12:59 am

Re: serviio stops device disconnected

This is still occurring on my D7000 with the latest 1.5.1 anyone have any ideas ?
<<

edyshor

Serviio newbie

Posts: 1

Joined: Mon Jun 06, 2016 1:11 pm

Post Mon Jun 06, 2016 1:21 pm

Re: serviio stops device disconnected

zip wrote:I've spent too much time on this already, which means:

a) I'm too stupid to make it work
b) Samsung do it their way and don't really support transcoded content
c) combination of both

Some might be fixed by profile, perhaps. Apparently one of the Sony profiles shows the proper duration.


Hi, i have 1.6.1 and having problems with my Samsung 32D550 LCD TV. I guess you haven't been able fix this issue yet.
Do have any advice to mitigate this problem ?

I did use for a while a dlna server that didn't had this issue "ps3 media server" maybe you can look at how they did it (its open source).
PreviousNext

Return to Samsung

Who is online

Users browsing this forum: No registered users and 39 guests

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