FAQ  •  Register  •  Login

TV/stream keeps dropping out

<<

Wingsgb

Serviio lover

Posts: 82

Joined: Sun Feb 26, 2012 5:02 pm

Post Sat Aug 25, 2012 9:01 pm

Re: TV/stream keeps dropping out

henri wrote:Couldn't try it today as I wasn't at home but will check the BZ stream tomorrow.


To be fair you didn't miss much, his stream was appalling. Kept freezing and going offline. He blamed it on the weather. I used "M & M3" all day they were great.

Have too let me know if it works on your Lil box. If not I'm back to using my laptop.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Aug 25, 2012 9:32 pm

Re: TV/stream keeps dropping out

You will need to examine the ffmpeg transcoding statement in your debug log to see what rule is being used for your streams, and ffmpeg -i http://localhost:8902 to determine the attributes of the streams you are playing back, and see if that is a problem.

OK the ffmpeg -i says the stream is h264 high/mp2.mpegps
The Samsung profile says this will play natively without transcoding but I don't know if the Samsung will like it. Its not a common combination. The Samsung profile does contain this line for mpegts files
  Code:
<Matches container="mpegts" aCodec="mp2" />

I suggest you add this line following it
  Code:
<Matches container="mpeg" aCodec="mp2" />
so that your mpegps stream gets transcoded too.

Perhaps BlooodZ changed the format of his stream and thats why it fails now.

You should also change your RSS as follows and repeat the "items" as many times as you want and change the number in the <link> for each item.

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">

<channel>
<title>Sports Live Channels</title>
<link>https://sites.google.com/site/wingsgb22/LiveFeeds_iPlayer.rss</link>
<description>Live Channels from sop</description>

<item>
<title>BloodZeed</title>
<link>http://sopcast1</link>
<media:stream url="http://localhost:8902" type="video" />
<media:thumbnail url="" />
</item>

<item>
<title>BloodZeed</title>
<link>http://sopcast2</link>
<media:stream url="http://localhost:8902" type="video" />
<media:thumbnail url="" />
</item>

<item>
<title>BloodZeed</title>
<link>http://sopcast3</link>
<media:stream url="http://localhost:8902" type="video" />
<media:thumbnail url="" />
</item>

</channel>
</rss>

<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sun Aug 26, 2012 10:44 am

Re: TV/stream keeps dropping out

jhb50 wrote:Perhaps BlooodZ changed the format of his stream and thats why it fails now.

Our problem is that it fails with all streams.. no matter if they are from BZ, YES or some Polish or Russian streamer :cry:
<<

Wingsgb

Serviio lover

Posts: 82

Joined: Sun Feb 26, 2012 5:02 pm

Post Sun Aug 26, 2012 10:52 am

Re: TV/stream keeps dropping out

henri wrote:
jhb50 wrote:Perhaps BlooodZ changed the format of his stream and thats why it fails now.

Our problem is that it fails with all streams.. no matter if they are from BZ, YES or some Polish or Russian streamer :cry:


^^^ this
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sun Aug 26, 2012 12:12 pm

Re: TV/stream keeps dropping out

BZ is on - Let me begin the test :D
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sun Aug 26, 2012 12:33 pm

Re: TV/stream keeps dropping out

BZ = audio only :?: :roll:
Great quality, but Russian :cry: sop://broker.sopcast.com:3912/130000
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sun Aug 26, 2012 12:35 pm

Re: TV/stream keeps dropping out

Wingsgb wrote:I used "M & M3" all day they were great.

But via your laptop, right? Not via Serviio and your Samsung TVs..?
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sun Aug 26, 2012 12:36 pm

Re: TV/stream keeps dropping out

English: sop://broker.sopcast.com:3912/134160
(Squeezed to 4:3 on my TV)
<<

Wingsgb

Serviio lover

Posts: 82

Joined: Sun Feb 26, 2012 5:02 pm

Post Sun Aug 26, 2012 1:54 pm

Re: TV/stream keeps dropping out

  Code:
BZ = audio only     

BZ has pic and sound for me just disconnects didnt even last 30sec this time

henri wrote:
Wingsgb wrote:I used "M & M3" all day they were great.

But via your laptop, right? Not via Serviio and your Samsung TVs..?


Yeh thats right via my laptop connected to my tv through hdmi. Serviio is still failing every single stream i try!

jhb50 wrote:You should also change your RSS as follows and repeat the "items" as many times as you want and change the number in the <link> for each item.

that never worked either

theres also a line were it closes the sopcast stream while iv got it added as a live stream

  Code:
2012-08-26 14:49:19,266 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth3 (Broadcom NetLink (TM) Gigabit Ethernet) and address 192.168.1.109, timeout = 0
2012-08-26 14:49:19,266 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device c3ae39b6-2030-3c75-8667-79c385656f9b
2012-08-26 14:49:21,066 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:45
2012-08-26 14:49:34,430 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-08-26 14:49:34,430 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-08-26 14:49:34,431 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-08-26 14:49:34,431 DEBUG [OnlineLibraryManager] Resource https://sites.google.com/site/wingsgb22/LiveFeeds_iPlayer.rss not in cache yet, loading it
2012-08-26 14:49:34,431 DEBUG [FeedParser] Parsing feed 'https://sites.google.com/site/wingsgb22/LiveFeeds_iPlayer.rss'
2012-08-26 14:49:37,676 DEBUG [FeedParser] Found matching url extractor (LiveFeeds) for resource https://sites.google.com/site/wingsgb22/LiveFeeds_iPlayer.rss
2012-08-26 14:49:37,676 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.lang.IllegalArgumentException: URI is not absolute
   at java.net.URI.toURL(Unknown Source)
   at org.serviio.library.online.feed.MediaFeedEntryParser.setThumbnail(MediaFeedEntryParser.java:150)
   at org.serviio.library.online.feed.MediaFeedEntryParser.parseFeedEntry(MediaFeedEntryParser.java:68)
   at org.serviio.library.online.feed.FeedParser.addEntryToFeed(FeedParser.java:166)
   at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:100)
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:169)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)


  Code:
2012-08-26 14:48:38,832 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaServer:1 from address /192.168.1.108:24234
2012-08-26 14:48:38,832 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:38,833 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaServer:1 from address /192.168.1.108:24234
2012-08-26 14:48:38,833 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:38,833 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.108:24234
2012-08-26 14:48:38,833 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.108:24234
2012-08-26 14:48:44,327 DEBUG [WebServer] Incoming connection from /192.168.1.108:39810
2012-08-26 14:48:44,328 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:44,328 DEBUG [DeviceDescriptionRequestHandler] DeviceDescription request received for device c3ae39b6-2030-3c75-8667-79c385656f9b from 192.168.1.108 (headers = [HOST: 192.168.1.109:8895,ACCEPT-ENCODING: deflate,ACCEPT-LANGUAGE: en-us,User-Agent: SEC_HHP_[TV]UE37ES5500/1.0 DLNADOC/1.50])
2012-08-26 14:48:44,328 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:44,329 DEBUG [RendererManager] Looking for a renderer profile for Http headers: [HOST: 192.168.1.109:8895,ACCEPT-ENCODING: deflate,ACCEPT-LANGUAGE: en-us,User-Agent: SEC_HHP_[TV]UE37ES5500/1.0 DLNADOC/1.50]
2012-08-26 14:48:44,329 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:44,331 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Samsung TV / player (C/D/E-series)'
2012-08-26 14:48:44,340 DEBUG [WebServer] Incoming connection from /192.168.1.108:39811
2012-08-26 14:48:44,340 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:44,340 DEBUG [ServiceDescriptionRequestHandler] ServiceDescription request received for service ConnectionManager
2012-08-26 14:48:44,341 DEBUG [ServiceDescriptionRequestHandler] Sending ServiceDescription XML back
2012-08-26 14:48:44,350 DEBUG [WebServer] Incoming connection from /192.168.1.108:39812
2012-08-26 14:48:44,350 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:44,350 DEBUG [ServiceDescriptionRequestHandler] ServiceDescription request received for service ContentDirectory
2012-08-26 14:48:44,351 DEBUG [ServiceDescriptionRequestHandler] Sending ServiceDescription XML back
2012-08-26 14:48:44,361 DEBUG [WebServer] Incoming connection from /192.168.1.108:39813
2012-08-26 14:48:44,361 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2012-08-26 14:48:44,361 DEBUG [ServiceDescriptionRequestHandler] ServiceDescription request received for service X_MS_MediaReceiverRegistrar
2012-08-26 14:48:44,362 DEBUG [ServiceDescriptionRequestHandler] Sending ServiceDescription XML back
2012-08-26 14:48:49,353 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2012-08-26 14:48:49,353 DEBUG [OnlineInputStream] Closing stream
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sun Aug 26, 2012 2:13 pm

Re: TV/stream keeps dropping out

Wingsgb wrote:BZ has pic and sound for me just disconnects didnt even last 30sec this time

The same here (via Samsung TV).. via media streaming device = no video.. :roll:
<<

Wingsgb

Serviio lover

Posts: 82

Joined: Sun Feb 26, 2012 5:02 pm

Post Sun Aug 26, 2012 2:46 pm

Re: TV/stream keeps dropping out

henri wrote:
Wingsgb wrote:BZ has pic and sound for me just disconnects didnt even last 30sec this time

The same here (via Samsung TV).. via media streaming device = no video.. :roll:


the only other device other than my smart TV's i have to try this on is a xbox360 but the stream dosent even show up in the online folder on that to even test.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Aug 28, 2012 9:24 pm

Re: TV/stream keeps dropping out

I have continued to work on this problem.

Above I have explained the reality that Serviio caches the attributes of the first live stream when http:/localhost:8902 is added to the console, so if a different stream is played later, it may not transcode correctly. This is particularly true if BloodZ is the first stream because its mpegps stream will play natively per Samsung C/D but other mpegts streams with mp2 audio and wmv will fail because they must be transcoded)

I also suggested the use of a livefeeds rss to address the restart problem. This is important because the Samsung is intolerant of stream errors which as the posted ffmpeg -i results show are many, which accounts for the dropouts)

Finally I also suggested a profile addition. In fact it has now been determined that due to a Serviio bug, mpegts streams with avc fail in transcoding. To fix that, add the second line shown below following first line in the first section of the C/D/E profile <Transcoding> entry. You may also add the third line, and then AVC mpegps as well as AVC mpegts and wmv.asf streams will transcode to MPEG2VIDEO making all these SOPCAST streams compatible.
  Code:
<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
<Matches container="mpegts" vCodec="h264" /> <!-- jhb50 fixes serviio h264.ts to h264.ts transcode bug -->
<Matches container="mpeg" vCodec="h264" /> <!-- optional -->


To deal with the stream dropout problem and any transcode incompatibilities, I have created a Sopcast Webresource plugin that you may obtain at viewtopic.php?f=20&t=7249 It creates a folder with 7 Sopcast items which will start in turn if the stream drops out and when refreshed will recache the currently playing Sopcast stream so that Serviio will obtain the new stream attributes and transcode it correctly.

I used it on Tuesday night to start and play YES and then switch to BloodZ and then various other streams without any dropouts. All with Serviio 1.0.1 and the modified C/D/E profile.
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sat Sep 01, 2012 12:25 pm

Re: TV/stream keeps dropping out

jhb50 wrote:Finally I also suggested a profile addition. In fact it has now been determined that due to a Serviio bug, mpegts streams with avc fail in transcoding. To fix that, add the second line shown below following first line in the first section of the C/D/E profile <Transcoding> entry. You may also add the third line, and then AVC mpegps as well as AVC mpegts and wmv.asf streams will transcode to MPEG2VIDEO making all these SOPCAST streams compatible.
  Code:
<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
<Matches container="mpegts" vCodec="h264" /> <!-- jhb50 fixes serviio h264.ts to h264.ts transcode bug -->
<Matches container="mpeg" vCodec="h264" /> <!-- optional -->


First of all, thank you for investigating further in this issue. Could you please tell me where exactly to add/insert the code above? Which line within the profiles.xml should it be? I'm rather a noob in these things :D
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Sep 01, 2012 1:03 pm

Re: TV/stream keeps dropping out

As it says
add the second line shown below following first line (shown below) in the first section of the C/D/E profile <Transcoding> entry.

so it will look like this:
<Transcoding>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" maxVBitrate="20000">
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
<Matches container="mpegts" vCodec="h264" /> <!-- jhb50 fixes serviio h264.ts to h264.ts transcode bug -->
<Matches container="mpeg" vCodec="h264" /> <!-- optional for SOPCAST compatibility -->
</Video>
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sat Sep 01, 2012 1:22 pm

Re: TV/stream keeps dropping out

jhb50 wrote:As it says
add the second line shown below following first line (shown below) in the first section of the C/D/E profile <Transcoding> entry.

so it will look like this:
<Transcoding>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" maxVBitrate="20000">
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
<Matches container="mpegts" vCodec="h264" /> <!-- jhb50 fixes serviio h264.ts to h264.ts transcode bug -->
<Matches container="mpeg" vCodec="h264" /> <!-- optional for SOPCAST compatibility -->
</Video>

Then I did it right :D Stream still drops every couple of minutes though :cry:
Edit: I did oversee the groovy plugin... will check it out :)
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Sep 01, 2012 1:30 pm

Re: TV/stream keeps dropping out

Hi. I'm in Canada. Just started watching a great picture of WH vs FUL on my TV. And yes I got a dropout at about 84 minutes, but the plugin simply reloaded Sopcast #3 and the stream continued. I'll keep monitoring it.

Got 2 drops after the game and then Sopcast stream shut down and the plugin cycled thru multiple items.

Then tottenham started up and then Sopcast stream shut down again.
Running smooth now with ads playing. I'm now watching Sopcast #5 so it seems the folder recycles automatically back to the top so the plugin really only needs one Sopcast feed item instead of 7.
Last edited by jhb50 on Sat Sep 01, 2012 1:50 pm, edited 1 time in total.
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sat Sep 01, 2012 1:42 pm

Re: TV/stream keeps dropping out

jhb50 wrote:Hi. I'm in Canada. Just started watching a great picture of WH vs FUL on my TV. And yes I got a dropout at about 84 minutes, but the plugin simply reloaded Sopcast #3 and the stream continued. I'll keep monitoring it.

I was also watching WH vs Fulham, dropped out, switched automatically from Sopcast #1 to Sopcast #2.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Sep 01, 2012 1:52 pm

Re: TV/stream keeps dropping out

Great. Glad it works for you. See my edits above.
<<

henri

Streaming enthusiast

Posts: 38

Joined: Sun Aug 05, 2012 7:14 am

Post Sat Sep 01, 2012 3:11 pm

Re: TV/stream keeps dropping out

jhb50 wrote:Great. Glad it works for you. See my edits above.

It went all the way through from Sopcast #1 to Sopcast #7 and then back to the folder.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Sep 01, 2012 4:54 pm

Re: TV/stream keeps dropping out

OK then do you think I should have more than 7 ? Perhaps I should add an option where you can set the number of items that you want.
PreviousNext

Return to Samsung

Who is online

Users browsing this forum: No registered users and 8 guests

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