IPTV streams hangs up just after seconds....
#1
Hello Guys,

I have problem with my IPTV streams from tvheadend running on a synology DS212j NAS. Just seconds after I start the streams both the audio and video just hangs up ending up with a frozen picture. Please see content of the kodi.log below:

I'am running Kodi on a Nvidia Shield TV which is connected (wired) to a Asus Router supplying 100/100 MGbit connection.


10:08:47 T:12220 NOTICE: VideoPlayer: Opening: pvr://channels/tv/All channels/pvr.hts_645396183.pvr
10:08:47 T:12220 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
10:08:47 T:13852 NOTICE: Creating InputStream
10:08:47 T:13852 NOTICE: Creating Demuxer
10:08:49 T:13852 NOTICE: Opening stream: 1 source: 256
10:08:49 T:13852 NOTICE: Creating video codec with codec id: 28
10:08:49 T:13852 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
10:08:49 T:13852 NOTICE: Creating video thread
10:08:49 T:13852 NOTICE: Opening stream: 2 source: 256
10:08:49 T:13852 NOTICE: Finding audio codec for: 86016
10:08:49 T:6036 NOTICE: running thread: video_thread
10:08:49 T:13852 NOTICE: Creating audio thread
10:08:49 T:13852 NOTICE: Opening stream: 4 source: 256
10:08:49 T:13852 NOTICE: Opening stream: 3 source: 256
10:08:49 T:13852 NOTICE: CDVDMessageQueue(teletext)::WaitUntilEmpty
10:08:49 T:13852 WARNING: CDVDMessageQueue(teletext):Tongueut MSGQ_NOT_INITIALIZED
10:08:49 T:13852 NOTICE: waiting for teletext data thread to exit
10:08:49 T:13172 NOTICE: running thread: CVideoPlayerAudio:Tonguerocess()
10:08:49 T:13852 NOTICE: Creating teletext data thread
10:08:49 T:13852 NOTICE: Opening stream: 2 source: 256
10:08:49 T:13852 NOTICE: Finding audio codec for: 86016
10:08:49 T:12488 NOTICE: running thread: CDVDTeletextData
10:08:49 T:13852 NOTICE: CDVDMessageQueue::GetLevel() - can't determine level
10:08:49 T:13172 NOTICE: Previous line repeats 2 times.
10:08:49 T:13172 NOTICE: Creating audio stream (codec id: 86016, channels: 2, sample rate: 48000, no pass-through)
10:08:49 T:13852 NOTICE: Opening stream: 1 source: 256
10:08:49 T:13852 NOTICE: Creating video codec with codec id: 28
10:08:49 T:13852 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
10:08:49 T:6036 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1920x1080)
10:08:49 T:13852 NOTICE: CDVDMessageQueue::GetLevel() - can't determine level
10:08:49 T:12220 NOTICE: Previous line repeats 1 times.
10:08:49 T:12220 NOTICE: D3D: rendering method forced to DXVA processor
10:08:49 T:12220 NOTICE: DXVA::CProcessorHD::InitProcessor - Supported deinterlace methods: Blend:yes, Bob:yes, Adaptive:yes, MoComp:yes.
10:08:49 T:12220 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
10:08:49 T:13852 NOTICE: CDVDMessageQueue::GetLevel() - can't determine level
10:08:52 T:13172 NOTICE: Previous line repeats 9 times.
10:08:52 T:13172 NOTICE: CVideoPlayerAudio:Tonguerocess - stream stalled
10:08:59 T:12220 NOTICE: Storing total System Uptime
10:08:59 T:12220 NOTICE: Saving settings
10:08:59 T:12220 NOTICE: stop all
10:08:59 T:12220 NOTICE: stop player
10:08:59 T:12220 NOTICE: CVideoPlayer::CloseFile()
10:08:59 T:12220 NOTICE: VideoPlayer: waiting for threads to exit
10:09:00 T:13852 NOTICE: CVideoPlayer::OnExit()
10:09:00 T:13852 NOTICE: Closing stream player 1
10:09:00 T:13852 NOTICE: Waiting for audio thread to exit

Appreciate all help I could get.

/M
Reply
#2
If it uses URLResolver at all, then you might have to rollback from 3.01 to 2.10.0. There's a bug in 3.01 making streams freeze up.
Reply
#3
Hi and thanks for the reply,

Are you talking about rolling back to version 2.10.0 of tvheadend? Cause what I'am using right now is Tvheadend-tesing version 4.1.1525 which can be found on http://syno.dierkse.nl/.

/M
Reply
#4
No... System/Add-ons/System/Dependencies/URLResolver. That's "if" that's the problem to begin with. I needed to rollback, because as soon as I started any stream, from any plugin's servers.. it would either freeze moments after the video started, or would freeze Kodi up when I stopped the video. I had no idea what was going on.. even thinking it was video acceleration settings. Then I came across a thread about URLResolver.. that fixed my issue.

Code:
http://www.tekto-kodi.com/kodi-news/url-resolver-bad-update/
Code:
https://ares-forum.com/threads/url-resolver-_-bad-update.1332/

As far as I know, IPTV uses internet streams.. so it could be the same issue.


Also.. from what I've been reading, and my own personal experience, tvheadend 4.0.9 is the last stable version. 4.1.x wouldn't even load predefined mux lists.. even though it's built with the same lists as previous versions. It should display at least 10 different lists for ATSC, yet it only shows 2. Neither in my location.

If you built your own, git clone from '-b release/4.0'

Code:
git clone -b release/4.0 https://github.com/tvheadend/tvheadend.git

That'll give you 4.0.9. Alternatively, you can download 4.0.8 manually, then unpack the tar ball and go from there. I'm running 4.0.8 with Kodi 17 right now.. working fine. But I'm not using iptv streams.
Reply
#5
Thanks you very much for all that info, I will give it a try Smile

/M
Reply
#6
What does tvheadend's log say?
Reply
#7
Hello,

Yesterday tried to reinstall tvheadend on my NAS but now i'am facing another problem. When the installation is done and iam trying to login to the web UI it doesnt accept my user credential. I googled on it and found out that by adding -C flag to the start-stop-status script i was able to login and create a user. But it still does not accept my newly created user. Anyone experienced the same thing?

/M
Reply
#8
The tvheadend log doesnt say so much, I see only when the subscription on the channel is started, then the channel freezes and after that i disconnect the client and the channels is unsubscribed. I've even tried to debug all subsystems and traced on the following subsystems:

+mpegts,+iptv-pcr,+dvr,+parser,+htsp-sub

the log file becomes much bigger but I still didnt see any errors or warnings on the log file.





/M
Reply
#9
Hi,

I've got the same problem. Normale DVB streams by tvheadend work but the iptv streams freeze after some time (10s to 3 min.) if I open the tvh stream in VLC it just works. So it must be something with kodi.
Reply
#10
It's PVR part of Kodi that is broken for some IPTV streams.
If you try to add tvheadend link in a m3u and opens that file it will probably work better.
That works for IPTV streams that i have problem with from TVheadend server.
Why it works if i open it as a m3u file but not streaming to pvr.hts addon i can't answer.
Same stream from TVheadend works with VLC for example.
 
Intel Core i5 2320 8GB 500GB HDD - Tvheadend + Kodi, Raspberry Pi 3 - LibreELEC, HDHomeRun HDHR3-4DC, Epson TW3200, Pioneer VSX-1123
Reply

Logout Mark Read Team Forum Stats Members Help
IPTV streams hangs up just after seconds....0