Stutter using tvheadend

Ideally we’d want to pick a 25Hz mode, but your TV isn’t advertising support
for that video mode. Your TV advertises support for:

====================== Display Cap =================== g0gjk991
480p60hz
576p50hz
720p60hz
1080i60hz
1080p60hz
720p50hz
1080i50hz
1080p30hz
1080p50hz
1080p24hz

I’m going to try the recording momentarily.

@sam_nazarko

Thanks, the strange thing is that it worked on my Pi3, however I understand that it’s a different platform alltogether.

Even stranger that only one channel seems to be affected.

Hi @Trekster

I just tried the Danish TV clip. It’s a good clip to test with because of the globe animation and the
scrolling text.

Interesting to know this is the only affected channel.
Can you send a MediaInfo of a known, good channel so I can compare it.

I do not believe that the refresh rate is causing problems with the clip here. There’s something
else at play here.

I’m looking in to this.

Sam

Hi @sam_nazarko

Of course. Here is mediainfo on Channel 4 which works(can provide clip if needed aswell):

Video
ID : 1230 (0x4CE)
Menu ID : 1123 (0x463)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : 27
Duration : 53 min 12 s
Bit rate : 8 204 kb/s
Maximum bit rate : 8 700 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Separated fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.158
Stream size : 3.05 GiB (91%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Thanks

Hi Trekster,

Not sure if it will make any difference, but the article was missing </override>, from advancedsettings.xml; please try:

<advancedsettings>
    	<video>
    	<adjustrefreshrate>
    		<override>
    		<fps>25.0</fps>
    		<refresh>25.0</refresh>
    		</override>
    	</adjustrefreshrate>
    	</video>
</advancedsettings>

Thanks Tom.

Hi @Tom_Doyle

Thanks. I’ll give it a go tonight.

Regards

Hi @Tom_Doyle

Unfortunately it didn’t change anything.

Hi,

Sorry to hear, to be honest it was a long shot. As Sam is already investigating, I don’t think I’ve got anything else to add.

Thanks Tom.

OK, so I’ve put in a network switch at the TV so I can run the Rpi3 and Vero4k at the same time and just A/B by switching source.

Examining BBC1 I’ve made simultaneous recordings from the SD and HD streams.
I did this for “EastEnders” and later for “Shrek 2”.
The quoted mediainfo output is for the original .ts files, rather than the short .mkv cuts I’ve uploaded.

Video
ID : 6601 (0x19C9)
Menu ID : 17540 (0x4484)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=8, N=24
Codec ID : 27
Duration : 29mn 1s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Video
ID : 101 (0x65)
Menu ID : 4163 (0x1043)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : Variable
Codec ID : 2
Duration : 29mn 10s
Bit rate mode : Variable
Bit rate : 2 510 Kbps
Maximum bit rate : 15.0 Mbps
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Active Format Description : Letterbox 16:9 image
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.248
Stream size : 524 MiB (84%)

Video
ID : 6601 (0x19C9)
Menu ID : 17540 (0x4484)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 1mn 10s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Video
ID : 101 (0x65)
Menu ID : 4163 (0x1043)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : Variable
Codec ID : 2
Duration : 4mn 37s
Bit rate mode : Variable
Bit rate : 2 582 Kbps
Maximum bit rate : 15.0 Mbps
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Active Format Description : Letterbox 16:9 image
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.255
Stream size : 85.3 MiB (84%)

In each case the live stream played fine on the Rpi. On the Vero the SD was fine but HD juddered.
The same result when playing back the recordings from each device - only HD juddered on the Vero.

In all cases the tv switches to 50Hz (set to auto switch).
Mediainfo on all files indicates 25.000 fps.
The fps reported from the info button at playback:

				Rpi3	Vero
Eastenders SD	25		50
Eastenders HD	25		50
Shrek2 SD		25		25
Shrek2 HD		25		50

So the reported fps on Vero4k is different not only between SD/HD but also between programmes from the same channel.

I hope this gives you something to work with. Please do let me know if there’s anything else I can provide.

What does ffmpeg / debug log say?
Does disabling HW accel make a difference?

Sorry if asking the same questions, but as it’s been a week I have forgotten the specifics.

I have a series of video improvements coming up. Stay tuned.

I watched Shrek 2 then EastEnders with debugging on (component specific for FFmpeg libraries).

https://paste.osmc.tv/luhekekimu

Watching without HW acceleration was interesting.
Shrek 2 looked absolutely fine.
EastEnders I’d selected because the titles are a rotating aerial view. That has perhaps a finer judder but still not right. But the footage before it, when the continuity announcer is speaking, runs in juddery slow motion, whilst the audio continues normally. Every few seconds the video seeks and jumps to catch up. Same after the titles, the program proper starts and it’s juddery slow motion again.

What’s handling the TVH backend? I know we had some issues with TVH on Pi recently.

Sam

TVH is running on an Rpi2.

If it helps with diagnosis - Freeview HD live and recordings look fine for me, certainly better than my NUC. OSD says 1080p @ 50hz. The backend is ubuntu with tvh 4.1-451.

Hi @sam_nazarko

I have since noticed that all of the TV2 family channels exhibit the problem. All others are fine.

So TV2(which you have a clip of), TV2 News, TV2 Fri etc - all have the problem.

@sam_nazarko

Is there any progress on this? I can see that i’m not the only one with this issues.

I have had to revert back to my RPi3 w. LibreElec for the time being, as this is the channel most watched in the household, so the Vero is fast becoming a very expensive paperweight.

I have similar issue with Vero4K and Dvblink server. My temporary solution was downgrade to 2017-5.2 version.

Hi

I’ve been given access to some Live Streams now, so I should be able to make progress with this shortly.

Sam

Just to add that I’ve experienced this exact same issue. I have tvheadend 4.2 on a separate system and regularly record kid’s tv shows on UK channel 5 HD for playback on the Vero 4k without issue. I then recorded a program on Channel 4 HD to watch with the missus and it was stuttering really badly. File plays fine on the PC. Needless to say the usual opinionating about me wasting time and money on rubbish technology ensued and we had to watch it on the All4 app on the tele and endure adverts! :frowning:

I also wondered if the tv headend client app might contribute to this issue of course?