Project

General

Profile

IPTV (http) stuttering

Added by Hans Peter over 9 years ago

Hi,

i'm new to tvheadend and i'm happy about it, except of one fact.

I've configured IPTV on my tvheadend 3.9.2690 with two muxes.
At the begin of the stream i get lots of stuttering. when some time passes the stuttering is gone or it stutters one time in 5 minutes. When i play the mux directly.. the stream plays without stuttering. I'm using the "pass" profile and tested other profiles as well. No profile works perfectly for me.

My system is a Synology DS213+ with ppc

I'm using a pipe to play the stream (pipe:///usr/syno/bin/ffmpeg -loglevel fatal -i url-to-stream -vcodec copy -acodec copy -f mpegts -tune zerolatency pipe:1)

I've used two streaming qualities.. low ang high.. on high stuttering is more as on low (it is'nt viewable).. when playing a recorded stream there is 0 (no) stuttering on high and low.

When i play the streams directly without tvheadend, there were 0 (no) stuttering on high and low.

what can i do?

thank you for your answers.


Replies (12)

RE: IPTV (http) stuttering - Added by Njuskalo Njusko over 9 years ago

Have you tried adding -re to the command line ? I have tvheadend 3.9.2690 running on DS210j with no problems.

Look here:

https://tvheadend.org/projects/tvheadend/wiki/Custom_MPEG-TS_Input/23

Use option -re for the input specification to stream the file at native frame rate.

-re (input)
Read input at native frame rate. Mainly used to simulate a grab
device. or live input stream (e.g. when reading from a file).
Should not be used with actual grab devices or live input streams
(where it can cause packet loss). By default ffmpeg attempts to
read the input(s) as fast as possible. This option will slow down
the reading of the input(s) to the native frame rate of the
input(s). It is useful for real-time output (e.g. live streaming).

RE: IPTV (http) stuttering - Added by Hans Peter over 9 years ago

I've added -re now.

Works like a charm.. man of the day! thank you very much.
Maybe you can help me with another problem regarding recording on the synology nas.

When i scedule a recording i get the error: Time missed

recording failed. i will investigate the problem and come with some logs back.

thank you.

RE: IPTV (http) stuttering - Added by Njuskalo Njusko over 9 years ago

Glad it helped !

Sorry cannot help with recordings as I don't use it at all.

BTW, can you ff/rew during timeshift ?

RE: IPTV (http) stuttering - Added by Hans Peter over 9 years ago

No, i can't forward or rewind..

is -re used and placed correctly?

pipe:///volume1/@appstore/tvheadend-testing/bin/ffmpeg -loglevel fatal -re -i http://path/to/stream.m3u8 -vcodec copy -acodec copy -f mpegts -tune zerolatency pipe:1

Do you use other parameters?

RE: IPTV (http) stuttering - Added by Njuskalo Njusko over 9 years ago

This is what I use, basically it is the same:

pipe://ffmpeg -loglevel fatal -re -i http://stream.com/index.m3u8 -vcodec copy -acodec copy -metadata service_provider=IPTV -metadata service_name=ChannelName -tune zerolatency -f mpegts pipe:1

Created mux then went to services and mapped to a channel.

Also added xmltv for EPG

https://github.com/nurtext/tv_grab_file_synology

RE: IPTV (http) stuttering - Added by Hans Peter over 9 years ago

I'm working with that git for xmltv, too. works perfectly..

which stream profile do you use? pass?

RE: IPTV (http) stuttering - Added by Njuskalo Njusko over 9 years ago

yes, pass, as the default one

RE: IPTV (http) stuttering - Added by Njuskalo Njusko over 9 years ago

Hans Peter wrote:

No, i can't forward or rewind..

FYI, just updated to 3.9.2818-1 and all of the sudden I can rewind and fast forward ! Tested so far on Kodi nightly and XBMC Gotham 13.2 on a Mac

RE: IPTV (http) stuttering - Added by Hans Peter over 9 years ago

Ah, good neews.. thank you for your reply. After adding -re the situation is not better.. Do you have any other suggestions? I just added simple ip tv addon to kodi with the direct links to the streaming server (not tvheadend) and streaming works fine on high quality.. whats wrong with my tvheadend configuration?

does ffmpeg has one option to buffer some frames? when i configure vlc to use the streaming adress to tvheadend and use the buffering option under advanced.. then the stream works fine, too.. but this isn't a solution for smartphones or tablets.

RE: IPTV (http) stuttering - Added by Njuskalo Njusko over 9 years ago

I have absolutely no idea how to prebuffer or activate the ffmpeg cache unfortunately.

However, if you're using xbmc/kodi you could try the following:

put this in advancedsettings.xml

<advancedsettings>
<pvr>
<minvideocachelevel>20</minvideocachelevel>
<minaudiocachelevel>20</minaudiocachelevel>
<cacheindvdplayer>true</cacheindvdplayer>
</pvr>
</advancedsettings>

Or change the values to your liking, but remember, the higher the values, the slower channel switching.

Some references are here:

http://forum.kodi.tv/showthread.php?tid=159142&pid=1366031#pid1366031
http://kodi.wiki/view/Advancedsettings.xml#pvr

Hope this helps

RE: IPTV (http) stuttering - Added by Timothy Paul about 6 years ago

We trimmed the listing by thinking about the shape/style, size, https://www.theodysseyonline.com/13-diy-cat-bed-ideas-for-a-comfy-nap-time cleanability, materials used, and online individual testimonials.

    (1-12/12)