Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrent Streams #34

Open
dceldran opened this issue Nov 30, 2024 · 13 comments
Open

Concurrent Streams #34

dceldran opened this issue Nov 30, 2024 · 13 comments

Comments

@dceldran
Copy link

Hi,

It's any chance to add the feature to have more than one stream at same time with same docker container?

When i try to start more than one stream at the same time, i have random disconnections in all the streams.

Thanks!!

@martinbjeldbak
Copy link
Owner

hi @dceldran this should be achievable by running multiple docker containers as well, any reason why you can't do this?

@dceldran
Copy link
Author

dceldran commented Dec 1, 2024

Hi @martinbjeldbak,

Thanks for the fast answer.

My usecase is the following:

I've created an .m3u file with some acestream channels. I like to use this .m3u in home devices like some tvs, smartphones... and it's possible that there are 2 or 3 concurrent streams at the same time.

I've been thinking in another possibilities like having some containers, for example 3, and generate 3 .m3u files. The problem is that the maintaining of this file is more complex because i have to maintain 3 m3u files instead of one.

The other possibility is to use some containers and add a load balancer (like traefik for example) to balance the traffic on all containers. But honestly i don't know if this is going to work or not.

Thanks!!

@bijfy
Copy link

bijfy commented Dec 12, 2024

@dceldran how did you make m3u out of acestream. Kindly share some details?

@dceldran
Copy link
Author

Hi @bijfy,

For example if you have the acestream-http-proxy container in 192.168.10.20:6878, you can create an .m3u file with content:

#EXTM3U
#EXTINF:-1,1. Acestream Channel 1 group-title="ACESTREAM" tvg-id="Acestream Channel 1"
http://192.168.10.20:6878/ace/getstream?id=XXXX
#EXTINF:-1,2. Acestream Channel 2 group-title="ACESTREAM" tvg-id="Acestream Channel 2"
http://192.168.10.20:6878/ace/getstream?id=YYYY

After that, if you can't load the m3u file directly to your client app, you can create a docker container with httpd server and put the file inside, so you can download from: http://192.168.10.20/playlist.m3u for example.

Ofc this only works in local network, if you want to use this for example with your smartphone outside your local network you need to open ports or use some proxy like NPM or using an vpn.

And the problem with this is that you can only use once at a time. If you want to see any channel in your TV and another channel in your smartphone at the same time, you need to create two containers of acestream-http-proxy with different ports and create two .m3u files and load that different m3u files in the different clients you have. And if the acestream ids changes, you need to update more than one .m3u file.

I really like this project because it's easy to see acestream in all devices you need. You only need some client that accepts m3u and voila. I really hope that will be viable to implement the concurrent streams. Thanks for this project :)

@bijfy
Copy link

bijfy commented Dec 13, 2024 via email

@bijfy
Copy link

bijfy commented Dec 29, 2024

services:
ace22:
image: ghcr.io/martinbjeldbak/acestream-http-proxy:latest
container_name: ace22
network_mode: "container:glu3"
environment:
- ALLOW_REMOTE_ACCESS=yes
- HTTP_PORT=6822
restart: always

I have 4 containers with different ports through my vpn container.

@iercan
Copy link
Contributor

iercan commented Jan 7, 2025

@dceldran

If you provide different pid for each channel, you can watch more than one channel at a time.

For example

#EXTM3U
#EXTINF:-1,1. Acestream Channel 1 group-title="ACESTREAM" tvg-id="Acestream Channel 1"
http://192.168.10.20:6878/ace/getstream?id=XXXX&pid=1
#EXTINF:-1,2. Acestream Channel 2 group-title="ACESTREAM" tvg-id="Acestream Channel 2"
http://192.168.10.20:6878/ace/getstream?id=YYYY&pid=2

@dceldran
Copy link
Author

dceldran commented Jan 7, 2025

Hi @iercan

Finally i'm using another project, it's a proxy between the client that is playing an stream and the acestream engine and is capable to automatically create new pids for new streams and reuse existing streams if you need two clients playing same channel for example.

Thanks

@bijfy
Copy link

bijfy commented Jan 9, 2025

@dceldran which project are you using ?

@martinbjeldbak
Copy link
Owner

martinbjeldbak commented Jan 9, 2025

@bijfy this project I suspect: https://github.com/Javinator9889/acexy

Funnily enough, it is based on this image

@dceldran
Copy link
Author

dceldran commented Jan 9, 2025

Hi @bijfy

Like @martinbjeldbak says, the project is https://github.com/Javinator9889/acexy.

@iercan
Copy link
Contributor

iercan commented Jan 9, 2025

Nice work by acexy developer. @martinbjeldbak maybe we could add this feature to the this project too.

@martinbjeldbak
Copy link
Owner

agree @iercan maybe we can work with them to accelerate any features on this project's backlog. I like the idea of it being built on top of our project and seamlessly extends functionality at a higher level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants