cgomesu / tvhlink

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

compatibility acestream #31

Open Euskalgaming opened 2 months ago

Euskalgaming commented 2 months ago

I use this proxy acestream. Is there any way to link its links to tvheadend?

cgomesu commented 2 months ago

I'm not familiar with this service but if it gives you an m3u or m3u8, then just point to it in tvheadend. if you have the URL of the m3u file, then create a new automatic network and point it to the m3u file; if all you have are the m3u8 files, and assuming the URLs are static, then create a new ip network and add channels to it by pointing each channel to its m3u8 URL. it should be that simple. no need to use streamlink for that.

Euskalgaming commented 2 months ago

This acestream proxy has two types of links to access it. One hls is of this type: http://127.0.0.1:6878/ace/manifest.m3u8?id=dd1e67078381739d14beca697356ab76d49d1a2 and other mpeg-ts type: http://127.0.0.1:6878/ace/getstream?id=dd1e67078381739d14beca697356ab76d49d1a2 The final part of the link is the link of the acestream channel you want to access. If i launch the mpeg-ts inside streamlink it doesn't work

root@jellyfin:~# streamlink http://127.0.0.1:6878/ace/getstream?id=cc9b7f5fe416069a2110da0909b0f915043c468b [cli][info] streamlink is running as root! Be careful! error: No plugin can handle URL: http://127.0.0.1:6878/ace/getstream?id=cc9b7f5fe416069a2110da0909b0f915043c468b

However, the hls links do seem to work.

root@jellyfin:~# streamlink http://127.0.0.1:6878/ace/manifest.m3u8?id=cc9b7f5fe416069a2110da0909b0f915043c468b [cli][info] streamlink is running as root! Be careful! [cli][info] Found matching plugin hls for URL http://127.0.0.1:6878/ace/manifest.m3u8?id=cc9b7f5fe416069a2110da0909b0f915043c468b Available streams: live (worst, best)

But I can't find a way to add them properly to tvheadend as shown in the manual with the pipe command

cgomesu commented 2 months ago

you dont need streamlink. tvheadend should be able to handle such urls, per my previous comment. if you really want to use streamlink, use the other playlists in the m3u/ dir as template.