Skip to content

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

Description

@plexmax

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions