arut / nginx-ts-module

NGINX MPEG-TS Live Module
BSD 2-Clause "Simplified" License
422 stars 91 forks source link

How to use OBS or other push device to flow to nginx-ts-module module? #6

Closed Tinywan closed 7 years ago

Tinywan commented 7 years ago

How to nginx-ts-module push?

nginx-rtmp-module Push

rtmp://up.quanmin.tv/live/123456

emreuenal commented 7 years ago

same problem... any advice?

TimIsOverpowered commented 7 years ago

exec ffmpeg -i rtmp://127.0.0.1:1935/$app/$name -bsf:v h264_mp4toannexb -c copy -f mpegts https://URL/publish

Tinywan commented 7 years ago

@TimIsOverpowered Hi! Not ffmpeg flow, but with equipment or push the flow of software, such as: OBS, equipment box

TimIsOverpowered commented 7 years ago

OBS uses rtmp. you can push from OBS > nginx-rtmp > nginx-ts with that code.

Tinywan commented 7 years ago

@TimIsOverpowered Thank you for your answer! This can be

musclewizard commented 7 years ago

also: you can push mpegts from obs using the record feature:

Settings -> Output -> set Output Mode to Advanced -> Recording -> Custom Output (FFmpeg) -> FFmpeg Output Type -> Output to URL, File path or URL -> http://yourserver/input_path and Muxer Settings -f mpegts should do the trick.