Project

General

Profile

Fluctuation on bitrate value

Added by ermos jevohan almost 2 years ago

Hello All Friends,
I have been running : HTS Tvheadend 4.3-2027~ge3f4f222e
OS: Ubuntu 20.04
I have attached screenshot of admin panel.
Is there anything I can do to stop fluctuation of bitrate value.
Normally all listed channels are working on VLC but admin panel show bitrate goes up and zero.

Thank you
Ermos

sc1.png (75 KB) sc1.png
sc2.png (65.1 KB) sc2.png
sc1.png (75 KB) sc1.png

Replies (7)

RE: Fluctuation on bitrate value - Added by Anders Gustafsson almost 2 years ago

I see a lot of variation there. It depends on the programme. Ie Sports tend to have very high bitrates, whereas "The Remains of the Day" will have a low. Are you seeing any other problems?

RE: Fluctuation on bitrate value - Added by ermos jevohan almost 2 years ago

Dear Anders,
Thank you for your support.
It's just youtube live channel. If I use udp stream as input source, bitrate does not volatile.
Anyways, thank you again
Ermos

RE: Fluctuation on bitrate value - Added by Anders Gustafsson almost 2 years ago

OK. I just use tvh for DVB-T2 and DVB-C and there I see a lot of variation.

RE: Fluctuation on bitrate value - Added by Alin Gherghescu almost 2 years ago

Taking into account you use PASS, TVH will 'take banana .. give banana' so someone else is generating the actual encoding (H264 or H265 ... or whatever). 'Someone else' is the one that decide the bitrate (and the variability in bitrate).
To add even more variability ... if you use YouTube (or some internet source), the networks tends to add variability in fluency of the packets. To give you an example: even when you select constant bitrate the encoding (amount of bits allocated per second) are constant, but when you look at the internet bandwidth on your router you will see in average is the constant bitrate but is bouncing up/down due to internet latency. Longer the distance ... more variability you are going to see (because more servers with more constrains are going to be added on your path from source to destination).

An interesting feature for TVH would be to add a variable buffer ... like sling box implementation.
Description of the feature:
- when you switch channel the buffer is short (in order to start playing at destination with small delay)
- reduce temporary the frame rate in playback in order to generate a buffer increase at the destination.
- when buffer is long enough you switch to source frame rate.
- I don't know if TVH can override the Time to Play ( I think is called) on the stream in order to force client (like Kodi) to change actual frame rate played (and force him to increase the buffer).

RE: Fluctuation on bitrate value - Added by ermos jevohan almost 2 years ago

Dear @Alin @Anders,
Thank you for your replies.
Seems like it's better this way now:

#!/bin/sh
cd /home/hts/.hts/tvheadend
/usr/bin/ffmpeg -loglevel quiet -y -analyzeduration 3000000 -probesize 3000000 -i $(cat "$1".m3u) -muxrate 8M -max_interleave_delta 800000 -movflags faststart -preset superfast -f mpegts pipe:1
exit 0

Bitrate goes up/down between 2700-3200kbps.

Kind regards
Ermos

RE: Fluctuation on bitrate value - Added by saen acro almost 2 years ago

ermos jevohan What tuners you use on what hardware?
This is similar to USB tuners data transfer bug, USBTOP can help for this.

RE: Fluctuation on bitrate value - Added by ermos jevohan almost 2 years ago

Hello Dear Saen,
This is not related to USB. It's just youtube live channel stream.
While watching channels, you do not feel bitrate change on tv screen but it can be observed only on tvh admin panel.
In addition, if I use udp input as stream source, there is no fluctuation on bitrate. In my case, bitrate shows zero for a couple of seconds, then goes up 5000-8000kbps.
I have attached new screenshots for a better understanding.

Kind regards
Ermos

    (1-7/7)