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

[Question] How to use ts output instead hls? #54

Open
plexmax opened this issue Nov 28, 2023 · 0 comments
Open

[Question] How to use ts output instead hls? #54

plexmax opened this issue Nov 28, 2023 · 0 comments

Comments

@plexmax
Copy link

plexmax commented Nov 28, 2023

Hi, I've setup Nginx with the module.

This is my nginx.conf

http {
    server {
        listen 8000;
        #location / {
        #    root /var/www/html;
        #}
	location / {
		ts;
		client_max_body_size 0;
	}
        location /publish/ {
            ts;
            ts_hls path=/var/media/hls segment=10s;
            ts_dash path=/var/media/dash segment=10s;

            client_max_body_size 0;
        }

        location /play/ {
            types {
                application/x-mpegURL m3u8;
                application/dash+xml mpd;
                video/MP2T ts;
                video/mp4 mp4;
            }
            alias /var/media/;
        }
    }
}

When I run ffmpeg -re -i file -c copy -f mpegts http://localhost:8000/foo it start to run but I can not access remotly to the stream.
Which is the uri to access to this stream remotly?
I tried http://ip:8000/foo and get no response.
Thanks in advance

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

1 participant