Pixelation when im using it through WAN
Added by Henrik Pedersen over 7 years ago
Hi everybody
Im using TVheadend 4.3.28042017 on a Synology DS-1815+ with 6GB Ram. It runs smoothly when im using it on my LAN on my clients, but when im trying to use it through WAN there is a lot of Pixelation. my internet speed is 100Mbit down and 40 Mbit up. Im not quite sure how to setup my user so it can make an adaptive streaming to my TVHclient on my iPhone using 4G. It's mostly HD channels im using though a HD-Homerun. can anybody tell my what I shall do.. thanx
Replies (5)
RE: Pixelation when im using it through WAN - Added by Robert Cameron over 7 years ago
Native HD streams are usually big MPEG2 files, and have bitrates from 8-20Mbps. That's a lot of data to push around. You may want to consider transcoding before streaming outside your LAN.
RE: Pixelation when im using it through WAN - Added by saen acro over 7 years ago
There is a lot of problematic point with can do your description.
MSS value of connection, IP segmentation, provider limitation.
Threre is a ticket for HLS streaming but implementation is in near feature.
For now you can use https://github.com/andrisdru/E2Transcoder (TVH support e2 playlist export), Flussonic (with on-demand option)
RE: Pixelation when im using it through WAN - Added by Henrik Pedersen over 7 years ago
Hi Robert
Yes but I can't see how I can setup the server to transcode, I have tried but im not good enough to get it to work do you know to do it?
Robert Cameron wrote:
Native HD streams are usually big MPEG2 files, and have bitrates from 8-20Mbps. That's a lot of data to push around. You may want to consider transcoding before streaming outside your LAN.
RE: Pixelation when im using it through WAN - Added by Robert Cameron over 7 years ago
Tvheadend will only apply a profile once to a stream coming in. This is either when a channel is requested for live streaming, or when it starts a recording. However, Tvheadend will not apply a streaming profile to a program that is already recorded; it will only stream exactly what was recording. In short, this means you cannot transcode recordings.
Transcoding can be done 2 ways. The easiest way is using its built-in transcoding profiles. If you have nVidia hardware, you can probably use the nvenc
profiles to get hardware transcoding. Similarly, if you have capable Intel hardware, you can use the QSV profiles; however, these require modified kernels with Intel's QSV module, and usually an installation with libmfx. Otherwise, you're left with software/CPU-based encoding using libx264.
The other option is to use ffmpeg to do the transcoding. This is much more awkward to setup, as it requires use of the pipe://
protocol and using IPTV networks in Tvheadend. It's not impossible, but quite a bit of effort. If you need VA-API hardware transcoding, this is pretty much your only option. (Even if your Tvheadend install offers h264_vaapi
options for transcoding, it's broken and won't work; you may have luck with a fork of Tvheadend that's supposedly re-working the transcoding, but I have no experience with that.)
However, without more information, everything is guesswork.
RE: Pixelation when im using it through WAN - Added by Henrik Pedersen over 7 years ago
Hi thank you very much for your help..
I decided to install Tvheadend 4.0.9 on a Raspberry pi 3, I must say im astonished how much smoother it runs. now I can playback outside WAN without no pixelation.
I have auto mounted my NAS so I can record there