FAQ  •  Register  •  Login

Samsung F Series problems with rtmp link

<<

denialmx

Serviio newbie

Posts: 5

Joined: Sun Jun 22, 2014 5:29 pm

Post Sun Jun 22, 2014 5:41 pm

Samsung F Series problems with rtmp link

Hello everyone, I've been a serviio users for quite a long time and I finally got a Samsung F series Smart TV.
I also got the Pro serviio because I think it's an awesome program, but I am having some weird issues.

I've tried looking in the forum but I could not find any answer to my problem, so here it is:

I have a futubox subscription, I've created some Online RSS/Atom Feeds which show with no problems on the Online folder.
Futubox provides 2 links, one is an RTMP link, and the other is a simple HTTP link.

If I put RTMP links on my RSS, the video freezes every minute or so which makes it very hard to watch (Samsung F Series)
If I put the same rtmp link on VLC, or even if I watch it in MediaBrowser from serviio, it works great, it does not freeze at all, I've used the local computer to test this and also a laptop that I have using wireless to discard any wireless problems.

If I change my links from rtmp to http instead, the TV does not freeze at all, but after 5 minutes or so, the stream is closed, and it advances to the next stream and so it continues until it goes to all the stream list I have.

I am using the F Profile with serviio, and when the stream is on, the time remaining shows 289:21 hours, so I am still not sure why the stream closes when using http and why it freezes so bad when I use rtmp.

Sorry for my English as it is not my main language, and I hope I made my situation a bit clear and see if someone can help me out.

---UPDATE---

I was able to debug a bit.
I was looking with wireshark and right before it stops I am getting a lot of TCP ZeroWindow and TCP ZeroWindowProbe, then it disconnects.
The only serviio log that I found was, so looks like my Samsung TV at some point does not like it and closes the connection.

DEBUG [WebServer] I/O error: Connection reset by peer: socket write error

I was looking in the forums and I only found something similar to Sopcast, but nothing for Futubox. Anyone got any ideas?

Thanks all.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jun 24, 2014 7:39 pm

Re: Samsung F Series problems with rtmp link

you could try the latest ffmpeg
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Jun 24, 2014 10:00 pm

Re: Samsung F Series problems with rtmp link

Samsungs are very fussy with streams.
Do an ffmpeg on the stream url to see what the codec characteristics of the stream are.
Then check the profile to see what Serviio is doing to streams with those characteristics.
Then alter the profile until the TV likes the transformed Serviio output.
That's how I determined the profile "fix" for Sopcast streams.
If that does not work use the recently posted trick in the Sopcast thread and use VLC to read the stream and stream it to the TV
viewtopic.php?f=20&t=7249&start=140#p91710
Kludgy but it works.
<<

denialmx

Serviio newbie

Posts: 5

Joined: Sun Jun 22, 2014 5:29 pm

Post Tue Jun 24, 2014 11:49 pm

Re: Samsung F Series problems with rtmp link

I am a bit new with profiles so I will probably need a bit of help here.
Anyway this is what I was able to gather.

I tried with the newest ffmpeg, same results.

HTTP:

This is the log from serviio when I put the http link (this is the one that plays smoothly, but gets the disconnect

2014-06-24 18:26:22,678 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -analyzeduration 10000000 -fflags +genpts -threads auto -i http://s03.futubox.to/ilive/z050345.str ... YKEYKEYKEY -y -threads auto -c:v copy -c:a ac3 -b:a 384k -ac 2 -map 0:1 -map 0:2 -sn -f mpegts pipe:
2014-06-24 18:27:20,728 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000260001170 and profile Samsung TV / player (E/F-series)
2014-06-24 18:27:20,728 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file http://s03.futubox.to/ilive/z050345.str ... =KEYKEYKEY: AVC_TS_MP_HD_AC3_ISO
2014-06-24 18:27:20,731 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2014-06-24 18:27:21,367 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-06-24 18:27:21,367 DEBUG [TimeoutStreamDelegator] Scheduling stream stop to happen in 20 seconds if there is no traffic

This is the FFMPEG info for the HTTP stream
C:\Program Files\Serviio\lib>ffmpeg.exe -i "http://s03.futubox.to/ilive/z050345.stream/playlist.m3u8?lp=KEYKEYKEYKEYKEYKEY"
ffmpeg version N-64195-g723550d Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 23 2014 22:09:25 with gcc 4.8.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libope
njpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab -
-enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 52. 90.101 / 52. 90.101
libavcodec 55. 68.100 / 55. 68.100
libavformat 55. 44.100 / 55. 44.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 9.100 / 4. 9.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, hls,applehttp, from 'http://s03.futubox.to/ilive/z050345.stream/playli
st.m3u8?lp=KEYKEYKEYKEYKEYKEY':
Duration: N/A, start: 29411.293578, bitrate: 245 kb/s
Program 0
Metadata:
variant_bitrate : 2000000
Stream #0:0: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 2000000
Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 2000000
Stream #0:2: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 12
2 kb/s
Metadata:
variant_bitrate : 2000000
Program 1
Metadata:
variant_bitrate : 512000
Stream #0:3: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 512000
Stream #0:4: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 512000
Stream #0:5: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 12
2 kb/s
Metadata:
variant_bitrate : 512000
At least one output file must be specified

C:\Program Files\Serviio\lib>


RTMP

This is the log from serviio when I put the RTMPlink (this is the one that freezes a lot, but does not get the disconnect

2014-06-24 18:27:21,395 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000260002274, format MPEG_TS_SD_KO_ISO and profile Samsung TV / player (E/F-series)
2014-06-24 18:27:21,395 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtmp://s03.futubox.to/live?lp=KEYKEYKEY playpath=z050345.stream live=1
2014-06-24 18:27:21,396 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s03.futubox.to/live?lp=KEYKEYKEY playpath=z050345.stream live=1: MPEG_TS_SD_EU_ISO
2014-06-24 18:27:21,396 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s03.futubox.to/live?lp=KEYKEYKEY playpath=z050345.stream live=1: MPEG_TS_SD_NA_ISO
2014-06-24 18:27:21,396 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s03.futubox.to/live?lp=KEYKEYKEY playpath=z050345.stream live=1: MPEG_TS_SD_KO_ISO

2014-06-24 18:27:21,419 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -analyzeduration 10000000 -threads auto -i rtmp://s03.futubox.to/live?lp=KEYKEYKEY playpath=z050345.stream live=1 -y -threads auto -c:v mpeg2video -pix_fmt yuv420p -qscale:v 1 -r 25 -g 15 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:

This is the FFMPEG info for the RTMP stream

C:\Program Files\Serviio\lib>ffmpeg.exe -i "rtmp://s03.futubox.to/live?lp=KEYKEYKEYKEYKEYKEY playpath=z050345.stream live=1"
ffmpeg version N-64195-g723550d Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 23 2014 22:09:25 with gcc 4.8.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libope
njpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab -
-enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 52. 90.101 / 52. 90.101
libavcodec 55. 68.100 / 55. 68.100
libavformat 55. 44.100 / 55. 44.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 9.100 / 4. 9.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Metadata:
Server NGINX RTMP (github.com/arut/nginx-rtmp-module)
width 1280.00
height 720.00
displayWidth 1280.00
displayHeight 720.00
duration 0.00
framerate 25.00
fps 25.00
videodatarate 0.00
videocodecid 0.00
audiodatarate 0.00
audiocodecid 16.00
Input #0, live_flv, from 'rtmp://s03.futubox.to/live?lp=KEYKEYKEY playpath=z050345.stream live=1':
Metadata:
Server : NGINX RTMP (github.com/arut/nginx-rtmp-module)
displayWidth : 1280
displayHeight : 720
fps : 25
profile :
level :
Duration: 00:00:00.00, start: 330.304000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fp
s, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp
At least one output file must be specified

C:\Program Files\Serviio\lib>


I know I must be putting some stuff in the OnlineTranscoding but I am still not sure what.

Thanks for the help.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Jun 25, 2014 2:18 am

Re: Samsung F Series problems with rtmp link

the F should play your avc/aac.flv stream natively so try removing these lines from the ef profile to see if it helps
<Matches container="flv" vCodec="flv"/> <!-- some models support playing flv natively, in that case remove this
line -->
and
<Matches container="flv" /> <!-- transcoding all flv streams, even h264, to avoild premature disconnects, to avoid this, use Samsung C/D profile -->
also try that vlc trick just to see if it works.
<<

denialmx

Serviio newbie

Posts: 5

Joined: Sun Jun 22, 2014 5:29 pm

Post Wed Jun 25, 2014 3:57 am

Re: Samsung F Series problems with rtmp link

If I remove those lines

The HTTP stream plays smoothly, but same behavior, it disconnects after some minutes
The RTMP stream does not even play, it says unsupported format, and the TV outputs x-flv, so I guess my TV cannot play FLV natively.

The exact model of the TV is UN40F5500

If I do the VLC trick, the HTTP stream plays and does not disconnect, at least it has been playing for 20 minutes while it would not last more than 3 minutes before.

So basically what is VLC doing different than serviio for this to make it work?
Having VLC in the mix, specially with futubox kinda sucks, specially because it was so easy with the serviio to add an RSS feed with all the channels and just use your control remote to change them.

I do understand that this is Samsung fault for not handling very well the raw stream, is there a feature in the future to allow serviio do the same thing VLC does? Some kind of buffering?

Thanks in advance.
<<

gabrielra

Serviio newbie

Posts: 4

Joined: Tue May 27, 2014 12:14 am

Post Wed Jun 25, 2014 11:19 pm

Re: Samsung F Series problems with rtmp link

denialmx wrote:If I remove those lines

The HTTP stream plays smoothly, but same behavior, it disconnects after some minutes
The RTMP stream does not even play, it says unsupported format, and the TV outputs x-flv, so I guess my TV cannot play FLV natively.

The exact model of the TV is UN40F5500

If I do the VLC trick, the HTTP stream plays and does not disconnect, at least it has been playing for 20 minutes while it would not last more than 3 minutes before.

So basically what is VLC doing different than serviio for this to make it work?
Having VLC in the mix, specially with futubox kinda sucks, specially because it was so easy with the serviio to add an RSS feed with all the channels and just use your control remote to change them.

I do understand that this is Samsung fault for not handling very well the raw stream, is there a feature in the future to allow serviio do the same thing VLC does? Some kind of buffering?

Thanks in advance.


Your TV can play FLV natively. I have the same model with another diagonal.
And same problem (for me with sopcast), the stream only works smoothly via VLC. Try to send an email to the Serviio's dev and ask this feature ;)
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Jun 26, 2014 2:07 am

Re: Samsung F Series problems with rtmp link

It might be worthwhile to look at the VLC streaming parameters and do an ffmpeg on the VLC port output to what the characteristics of that stream are, and then alter the Serviio profile to transcode to the same. It might be a lower bit rate or some other slight difference to what Serviio is giving you now. Also look at my Desktop streaming in the Wiki. There I create a VLC mpeg2video stream that works fine with Samsung.
<<

denialmx

Serviio newbie

Posts: 5

Joined: Sun Jun 22, 2014 5:29 pm

Post Thu Jun 26, 2014 3:07 am

Re: Samsung F Series problems with rtmp link

This is the ffmpeg info for the VLC stream

C:\Program Files\Serviio\lib>ffmpeg.exe -i "http://100.100.200.50:8913"
ffmpeg version N-64195-g723550d Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 23 2014 22:09:25 with gcc 4.8.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnu
tls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-
libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-l
ibschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrw
benc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --ena
ble-decklink --enable-zlib
libavutil 52. 90.101 / 52. 90.101
libavcodec 55. 68.100 / 55. 68.100
libavformat 55. 44.100 / 55. 44.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 9.100 / 4. 9.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[h264 @ 0000000002dcb7a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000002dcb7a0] decode_slice_header error
[h264 @ 0000000002dcb7a0] no frame!
[h264 @ 0000000002dcb7a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000002dcb7a0] decode_slice_header error
[h264 @ 0000000002dcb7a0] no frame!
[h264 @ 0000000002dcb7a0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000002dcb7a0] decode_slice_header error
[h264 @ 0000000002dcb7a0] no frame!
[h264 @ 0000000002dcb7a0] non-existing PPS 0 referenced
Last message repeated 1 times
... This message repeated like 10 more times

Input #0, mpegts, from 'http://100.100.200.50:8913':
Duration: N/A, start: 71103.942800, bitrate: 115 kb/s
Program 1
Stream #0:0[0x44](): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 115 kb/s
Stream #0:1[0x45](): Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
At least one output file must be specified

And again, this is the one for the HTTP stream.

Input #0, hls,applehttp, from 'http://s03.futubox.to/ilive/z050345.stream/playlist.m3u8?lp=KEYKEYKEY':
Duration: N/A, start: 10622.264467, bitrate: 281 kb/s
Program 0
Metadata:
variant_bitrate : 2000000
Stream #0:0: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 2000000
Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 2000000
Stream #0:2: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 140 kb/s
Metadata:
variant_bitrate : 2000000
Program 1
Metadata:
variant_bitrate : 512000
Stream #0:3: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 512000
Stream #0:4: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 512000
Stream #0:5: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 140 kb/s
Metadata:
variant_bitrate : 512000

Looks like bitrate is less on the VLC stream?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Jun 28, 2014 12:13 pm

Re: Samsung F Series problems with rtmp link

Try
  Code:
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="applehttp" vCodec="h264"/>
         </Video>      
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="asf" /> <!-- mms -->
         </Video>
         <Video targetContainer="mpegts" >
            <Matches container="flv" vCodec="h264" aCodec="aac"/>
         </Video>      
      </OnlineTranscoding>
That should generate Serviio output that is the same as VLC output
<<

denialmx

Serviio newbie

Posts: 5

Joined: Sun Jun 22, 2014 5:29 pm

Post Mon Jun 30, 2014 12:33 am

Re: Samsung F Series problems with rtmp link

Thanks a lot.
I will try this configuration tomorrow and see how it works.

Return to Samsung

Who is online

Users browsing this forum: No registered users and 15 guests

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