Jump to content

Recording Service Stability when Streaming to Samsung Smart TV


Recommended Posts

Hi,

I've been using the DVB recording service to stream to my Samsung UE32D6500 smart tv. Recently the service restarts its self after a few minutes of streaming. The event log gives the message "The DVBViewer Recording Service service terminated unexpectedly." and then the service restarts.

 

I have attached a copy of the support log,support.zip and given the other detail below

  • exact TV-card model and used driver version
  • Prof 7301 DVB-S/S2 - Driver 2.1.0.1
  • type and chipset of the mainboard
  • ASUS P6T Delux V2 - Intel X58 chipset
  • graphics card and used driver version
  • NVIDIA Geoforce GTX650 Ti BOOST- Driver 9.18.13.4052

Thanks for any help you can give.

 

Evan

Link to comment
  • 2 months later...

Hi,

 

As this thread is recording service and Samsung TV related...

 

I have been having a problem with AV sync on DNLA streams to my Samsung UE46F5500 and BD-F5100 for some time, certainly since 1.26 onwards.

The problem seems to affect HD (H264) recordings or live tv. I dont notice a problem with more than SD content.

 

I have a gigabit unmanaged switch, cat6 cabling around my home and 1000T nic. Network utilization with multiple HD streams is hardly anything. Processors and memory are below 60% utilisation when streaming.

Both Samsungs are the latest firmware.

 

As a test - I have tried the latest Plex media server 0.9.11.4 and Plex apps on both Samsung devices. Using the same media server pc, same files, same everything else, I dont notice any AV sync issue.

I dont know Plex that well, but I think it might also use ffmpeg?

From - https://ffmpeg.org/

"Plex Transcoder and the Plex Media Server contain code from ffmpeg:http://files.plexapp.com/elan/ffmpeg/PlexTranscoder.tar.bz2"

 

I guess this points to software config/settings? Is there some setting in recording service (or ffmpeg maybe?) that can be adjusted to get this working - I dont want to use Plex?

 

I have attached the support.zip

 

Thanks for your advice.

 

Tony

support.zip

Link to comment

The RS doesn't transcode when using UPnP. The stream is forwarded in the format in which it is the the media file or transmitted from the TV station.

(one exemption audio can be transcoded to mp3)

 

ffmpeg is in the RS only used for streaming via web interface.

 

The only thing you could change in theory, for UPnP is the mime type which is use to by announcing it to the client.

 

All UPnP setting are stored in the configuration folder\config\uPnPProfilesV2.xml but there is currently on one how is familiar with this topic.

Link to comment

Hi Tjod

 

Thanks for the reply...

 

I can see in that xml file 2 samsung sections..

I noticed the following sections

 

<Ext name=".ts">
<MediaFormat mime-type="video/mpeg" special="" alias="" transcode="0" hassize="0" allaudio="-1" bufsize="0">*</MediaFormat>
<MediaFormat mime-type="video/mpegts" special="" alias=".mpgts" transcode="0" hassize="0" allaudio="-1" bufsize="0">*</MediaFormat>
</Ext>
what does allaudio="-1" mean? a delay or one audio track or something else?

 

<Extensions>
<Ext name=".ts">
<MediaFormat mime-type="video/mpeg" special="H264">MPEG_TS_SD_EU_ISO</MediaFormat>
<MediaFormat mime-type="video/mpeg" special="MPEG2">MPEG_TS_SD_EU_ISO</MediaFormat>
</Ext>
Both the above are SD. Should the H264 be HD?

 

Also I tried recording as mpg and as ts. HD Content with both file types is out of sync. I noticed the skip (right arrow on tv remote) gives "not available" error with mpg. Works fine with ts files. Any ideas?

Should one file type work better than another with DNLA (so maybe ts better than mpg)?
Thanks for your help..
Alot of TV to watch over christmas holiday so keen to fix this :)
Tony
Link to comment

I think "allaudio" has some connection with "All Audio tracks of a channel are streamed."

http://en.DVBViewer.tv/wiki/Options_Service_-_Web/UPnP#All_Audiotracks

 

For the rest, no idea. Try and error, searching for terms like MPEG_TS_SD_EU_ISO in the forum or in the hole internet and try to guess what they are designed for.

 

Examine connections to other UPnP Servers with Wireshark or in the RS (Web interface > Configuration > UPnP > ) UPnP debug logging (a lot of things will the be longed including things like Web interface password etc.) and the look in http://127.0.0.1:8089/getdebuglog.html if you find a hint from the UPnP client what is causing maybe problems.

 

The entire UPnP part has been developed by Lars_MQ. Currently there is no one with knowledge in this part.

 

But is the TV isn't able to play ts container with H.264 video as stream. There my be no fix.

Plex could be transcoding the five before streaming.

 

You can try if you get the problem as well if you put a recording an a USB stick and try to play it direct on the TV.

If you get the sync problems as well. There is no way to fix that in the foreseeable future.

 

Link to comment

Hi Tjod,

 

I understand the situation, and thanks for the ideas...

 

I played some HD recorded files from usb stick in my TV. They work fine with no AV sync issues that I could notice.

The debug file was not easy to look at - a load of unicast errors, a load of transponder/channel stuff and a few lines at the bottom which I think was telling me the service is running.

I did some research and contacted DLNA....

I installed xml notepad to help with editing the file.

 

According to the header, the uPnPProfilesV2.xml was created 2013.

At that time, it seems to be that DLNA did not support the profile MPEG_TS_HD_EU_ISO, so the file used MPEG_TS_SD_EU_ISO

I discovered that in late 2013 or 2014 MPEG_TS_HD_EU_ISO was made available. I found some other streamer application forums discussed updating as follows - change AVC_TS_MP_HD_AC3_ISO or MPEG_TS_SD_EU_ISO references to MPEG_TS_HD_EU_ISO. This fixed AV sync on recorded files for both my Samsung TV and BD player.

 

This problem is Almost fixed :)

 

I have A few questions...

There is still an AV sync problem with live HD TV and AC3 / Dobly Digital audio.

 

Do you know if live tv profile is handled by the LiveExtensions sections?

As I only watch streamed content on either my TV or BD player with stereo speakers, do you know a way to create an alias or mime so AC3 is streamed as MP2 audio?

 

 

Thanks again

Tony

Link to comment

I don't know if that is possible transcode="-1" activates the transcoding. For the PlayStation 3 the mp2 Audio is changed to .wav (this is documented in the changelog).

 

And there are lines for .mp3 and .mp2 as target could work as well. If it is simply past though to ffmpeg.

 

 

If you are able to fix the problem could you pleas post your fixed uPnPProfilesV2.xml. So that other Samsung Smart TV users can use the changes as well.

Link to comment

Hi everyone

 

I have attached the xml file which to my eyes appears to have almost eliminated AV sync issues on HD TS files, and reduced AV sync on live TV (but its still there a bit).

This is splitting hairs after 2 days working on this problem. I got a couple of friends to watch a couple of HD files - one about 10cm from a 46" screen, and they couldnt see any issue. One couldnt see the issue with Live HD TV either...

From a BBC AV sync video I have (HD TS H264 file with AC3 and MP2 audio tracks), the file-based delay on the Samsung BD-F6500 is about 3 milliseconds and the on the Samsung UE46F5500 its less than that.

Live TV - using BBC News HD channel as a test, AV lip sync is only very slightly out. For some reason, BBC One HD and ITV HD its more noticeable... All were AC3 Dolby Digital 2 channel, so should not have been any downsampling within the TV or BD player. Maybe problem is worse with AC3 5.1 downsampling to 2 channel - but didnt test this.

 

To help me and the Samsungs focus on relevant sections, I have removed non-EU and non-Samsung sections.

I noticed LiveExtension sections didnt have an MPEG-TS special H264 media format, so I added this and this seemed to improve the HD channels AV sync, as when special = H264 it uses MPEG_TS_HD_EU_ISO. If you try this file, suggest you rename your current xml file to .xxx in case you need it again.

 

During this weekend of working on this problem, I noticed there are conflicts of opinion over whether MPEG_TS_HD_EU_ISO is a ratified DLNA / UPNP profile. Seems to be as a number of manufacturers have included it. Seems to work on my kit, but both my units are about a year old in the UK. Both have always been connected by cat6 cable and gigabit switch/server NIC.

 

Some background info...

MPEG_TS_HD_EU_ISO and DLNA process map > http://www.google.com/patents/US20100268765

Samsung profiles > http://forum.serviio.org/viewtopic.php?f=10&t=17647

Panasonic profiles > http://sourceforge.net/p/lximedia/discussion/1178772/thread/a29cda26/

 

There's hardly any DLNA streamer software that natively tries to handle live TV... The recording service seems to be treading new ground...

 

I tried serviio. Their config files are far longer and very specifc to manufacturers - one profile for Samsung E/F series. The image looks sharper, but the audio is fractionally behind the video, by about the same amount DVBV is ahead of video. Again - probably anyone watching who doesnt know the AV sync issue wouldnt even notice.

 

I also tried with "DLNA.ORG_PN=MPEG_TS_HD_EU_ISO;DLNA.ORG_OP=11;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=81500000000000000000000000000000" instead of MPEG_TS_HD_EU_ISO - but seems to make AV sync about the same as it was before I started playing with the file. I noticed other streamer config files have "http:// get" in front of the "long version", so not sure this is even working without this prefix? The original xml file has some similar strings, but also without the "http://get" prefix.

 

I dont know how many Samsung TVs or smart devices this will help to fix....

I didnt ask Samsung which kit can handle MPEG_TS_HD_EU_ISO profile, as last time I contacted them, it took 5 emails to a support guy to explain what DLNA was... and then try to explain the whole MP4 16:9 and H264 16:9 anamorphic differences for the EU...

 

Hope this helps...

 

Tony

uPnPProfilesV2.xml

Link to comment

..when RS/UPnP works it's ok, but in general it's rather useless and buggy. I solved most of my problems by using a 3rd party software (bubble) ;)

Nice idea, I use bubble upnp on my phone.

But on my PC, I seem to be having a fight with my router and firewall... I need to check I have a static public IP with my ISP. I think thats an additional cost I didnt request... Serviio seems pretty good as well...

Link to comment

You just need your phone as a controller to connect a media server on your pc (e.g. DVBViewer Media Server) and dlna renderer (your Samsung) in your network. The BubbleUPnP Server on the pc is only needed to transcode (with ffmpeg) if your renderer (e.g. a chromecast dongle) can't play the selected stream type. With the free app transcoding is limited to 20 min.

 

No need to fiddle with a uPnPProfilesV2.xml :D

Link to comment
×
×
  • Create New...