cgomesu / tvhlink

TVHlink (Tvheadend + Streamlink) integration
https://cgomesu.com/blog/Tvhlink
55 stars 8 forks source link

Question regarding TVH container’s /config #2

Closed creited closed 3 years ago

creited commented 3 years ago

Olá Carlos, boa tarde.

I was trying to follow your tutorial, but I could not find the TVH container containing the config subdir.

I installed my TVH from apt install tvheadend, and I can see a folder inside /home/hts/.hts/tvheadend.

Inside this folder I have a config file, but not a folder.

root@raspberrypi:/home/hts/.hts/tvheadend# ls
backup  bouquet  caclient  channel  config  dvr  epgdb.v2  epgdb.v3  epggrab  input  profile  service_mapper  superuser

Can you please try to help here?

Obrigado!

creited commented 3 years ago

Nevermind, skipping this step worked for few Youtube URLs tried.

Unfortunately Twitch.tv is not working.

2021-07-02 14:23:05.828 subscription: 0022: "HTTP" subscribing to mux "Twitch", weight: 10, adapter: "IPTV #1", network: "Twitch", service: "Raw PID Subscription", hostname="192.168.0.115", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2021-07-02 14:23:09.082 spawn: [cli][info] Found matching plugin twitch for URL https://www.twitch.tv/btsbrasiltv
2021-07-02 14:23:10.727 spawn: [cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)
2021-07-02 14:23:10.728 spawn: [cli][info] Opening stream: 1080p60 (hls)
2021-07-02 14:23:11.399 webui: Stop streaming /stream/mux/249faef42f807f8de394d759ca22f6f3?ticket=116cd610302685442be902445c35e014c8731618, timeout waiting for packets
2021-07-02 14:23:11.399 subscription: 0022: "HTTP" unsubscribing, hostname="192.168.0.115", client="VLC/3.0.7.1 LibVLC/3.0.7.1"

Any hint?

cgomesu commented 3 years ago

hey, @creited !

creited commented 3 years ago

Thanks for helping.

I'm getting timeouts in about 10 seconds. Chaging the timeout parameter on the network from 15 to 50, did not help.

See my log:

2021-07-02 18:47:57.251 spawn: [plugins.twitch][info] Will skip ad segments
2021-07-02 18:47:58.274 spawn: [stream.hls][info] Filtering out segments and pausing stream output
2021-07-02 18:48:08.482 subscription: 0041: service instance is bad, reason: No input detected
cgomesu commented 3 years ago

I installed my TVH from apt install tvheadend, and I can see a folder inside /home/hts/.hts/tvheadend

which version did you install exactly? you can check that in the About tab of the web UI

I was trying to follow your tutorial, but I could not find the TVH container containing the config subdir

I believe you are referring to the Docker container. If you installed TVH via apt, then you likely did not install it as a Docker container. You can try it (that is the one I used in my previous comment) but unless you installed an outdated TVH version via apt (actually very likely if you did not change repos), I doubt the results will be different.

Lastly, can you play the stream via streamlink alone? (Open a terminal and run streamlink --stdout --twitch-disable-ads https://www.twitch.tv/btsbrasiltv best and check if it starts sending a bunch of nonsense to the terminal screen:)

��
  �|z|/�Ʉ�3����p��44I88�v��S<~~�P��qI�j�~���
DN&�]����f��Mj�>�l/u����d�|����DmP�w�'��X�� 
�J�\a�Z<$��M�r"�ϩ�����[,��@�X`u18�돩�&�ͼ��x�[��7��ˆ�`{A���9jٞ������P6̙���E�dk��c'K���U!j���Cm-_�᪥�.Ϛ7�\� O��0<<@��j�
�T��n�<j�*|zIt,���eG=����������������������������������������������������������������������������������������������������������������������������������-���w�N�p^C[cli][info] Stream ended��������
Interrupted! Exiting...
[cli][info] Closing currently open stream...
creited commented 3 years ago

My TVH version is: HTS Tvheadend 4.3-1857~g221c29b40 My streamlink version is: streamlink 2.2.0+22.geff9d76

Running the command suggested does give me these nonsenses output to the terminal.

The thing is I'm getting early timeouts on TVH.

cgomesu commented 3 years ago

Tvheadend 4.3-1857~g221c29b40

that does look a little outdated (I can find reference to it from 1-year old posts). the latest Docker version is at 4.3-1967~geb59284b8, which seems to be based on the last commit to the master branch from 21 days ago. you might want to try the latter method instead.

TVH does have internal timeouts that cannot be changed via the webUI. Remember that TVH was built with TV signals in mind and in that context, it might not make sense to wait too long for data to arrive because the outcome is unlikely to be different. That said, my instance seems to be handling the initial delays pretty well. I do not watch Twitch streams at all but since I set up the one you mentioned, it now loads without any delays--it might be the Twitch servers whitelisting my IP addr after the initial ad.

Not entirely sure what else could be done. If you manage to find a solution, please post it here and close the issue. Otherwise, I will keep it open for other users experiencing the same issue.

creited commented 3 years ago

I successfully updated TVH do the same build mentioned and the issue still remained.

Nevermind

The issue was: I was opening the MUX with VLC. Mapping the Channel and opening it with KODI worked!

It will be very helpful in my case, since the Twitch addon for Kodi is not working very well on my system.

Many tks! Obrigado!

cgomesu commented 3 years ago

Sem problemas, @creited . Glad it worked out. I'm gonna go ahead and close this issue then.