Closed creited closed 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?
hey, @creited !
I've just tested the https://www.twitch.tv/btsbrasiltv URL and it is working outside the TVHeadend environment. This should rule out any issues with streamlink and its twitch plugin. (Make sure you're running the latest version though, which I think is 2.2.0.)
Now Let me try to configure a network for this twitch channel on TVH..~. (will update this post afterwards)~ I'm able to map the channel but I can only see the following screen when trying to watch it:
~Investigating this issue now....~ Found the issue: https://github.com/streamlink/streamlink/issues/3210
In short, append --twitch-disable-ads
to your pipe://
command in the TVH mux configuration. This will tell streamlink to try to remove the ads before piping the stream output to your client (TVH). Just a heads up that depending on how long the ads are, your client might timeout before streamlink is able to pipe any stream data. It's running fine on both webUI and Kodi clients here though:
Here's the TVH log when mapping the channel using the following pipe
command:
pipe:///usr/bin/env streamlink --stdout --twitch-disable-ads https://www.twitch.tv/btsbrasiltv best
2021-07-02 17:40:12.238 mpegts: TwitchBrasilTv in Test - tuning on IPTV #1
2021-07-02 17:40:12.239 spawn: Executing "/usr/bin/env"
2021-07-02 17:40:12.240 subscription: 000A: "scan" subscribing to mux "TwitchBrasilTv", weight: 6, adapter: "IPTV #1", network: "Test", service: "Raw PID Subscription"
2021-07-02 17:40:13.502 spawn: [cli][info] Found matching plugin twitch for URL https://www.twitch.tv/btsbrasiltv
2021-07-02 17:40:15.170 spawn: [cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)
2021-07-02 17:40:15.170 spawn: [cli][info] Opening stream: 1080p60 (hls)
2021-07-02 17:40:15.170 spawn: [plugins.twitch][info] Will skip ad segments
2021-07-02 17:40:15.781 spawn: [plugins.twitch][info] Waiting for pre-roll ads to finish, be patient
2021-07-02 17:40:16.281 spawn: [stream.hls][info] Filtering out segments and pausing stream output
2021-07-02 17:40:49.647 spawn: [stream.hls][info] Resuming stream output
2021-07-02 17:40:50.611 bouquet: Test/TwitchBrasilTv/{PMT:4096}: mapped service from Test
2021-07-02 17:41:12.238 mpegts: TwitchBrasilTv in Test scan complete
2021-07-02 17:41:12.238 subscription: 000A: "scan" unsubscribing
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
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...
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.
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.
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!
Sem problemas, @creited . Glad it worked out. I'm gonna go ahead and close this issue then.
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.
Can you please try to help here?
Obrigado!