Welcome! Log In Create A New Profile


Possible to output RTSP stream?

Posted by SomebodySysop 
Possible to output RTSP stream?
June 25, 2021 02:12PM
I just set up nginx open source server. It reads in an RTMP stream. I'd like to be able to output an RTSP stream. Is this possible, and if so, how could it be done? This is my current conf file:

worker_processes auto;
events {
worker_connections 1024;

# RTMP configuration
rtmp {
server {
listen 1935; # Listen on standard RTMP port
chunk_size 4000;

application show {
live on;
# Turn on HLS
hls on;
hls_path /mnt/hls/;
hls_fragment 3;
hls_playlist_length 60;
# turn on Dash
dash on;
dash_path /tmp/dash;
dash_fragment 15s;
# disable consuming the stream from nginx as rtmp
# deny play all;

http {
sendfile off;
tcp_nopush on;
# aio on;
directio 512;
default_type application/octet-stream;

server {
listen 8080;

location / {
# Disable cache
add_header 'Cache-Control' 'no-cache';

# CORS setup
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length';

# allow CORS preflight requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;

types {
application/dash+xml mpd;
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;

root /mnt/;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 50
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready