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

How to play mpegts without HLS #29

Open
chamchenko opened this issue Feb 25, 2018 · 5 comments
Open

How to play mpegts without HLS #29

chamchenko opened this issue Feb 25, 2018 · 5 comments

Comments

@chamchenko
Copy link

Hi
I now that to play mpegts hls i have to use this link
http://127.0.0.1:8000/play/hls/sintel/index.m3u8
but how to play the mpegts without hls I really have no clue

@shinctl
Copy link

shinctl commented Mar 4, 2018

Got myself thinking the same thing... Is it possible to just create a mpegts output?

@chamchenko
Copy link
Author

No clue for now and no one is answering if it's even possible.
If you get anything about it please let me know

@arut
Copy link
Owner

arut commented Apr 6, 2018

Currently it's not possible. I was planning to implement exec feature, which would run ffmpeg (or whatever you want) with the original mpegts on input. This ffmpeg would send/transcode this mpegts. Maybe this can partially solve the issue. I'm currently short on time, but the code is mostly ready and I will undoubtedly finish it.

But reading mpegts from nginx is something that I didn't plan to support. One major reason for this is the following. If you have multiple workers, the mpegts client may connect to a wrong worker and have nothing to read. To fix this something like rtmp-auto-push should be implemented, which is a huge hack.

@cathmer
Copy link

cathmer commented May 23, 2018

@arut Are you still planning on implementing this exec function? Would greatly help me, since that would enable me to record the incoming stream with FFmpeg or running a script.

My use case is as follows: I have a remote IP camera and an Intel Edison which can retrieve the stream of this camera. Now I want to stream the content to a remote server and store the stream there and serve it as HLS. But the traversal of both streams needs to be secure, which prevents me from using your nginx-rtmp module, because FFmpeg and your module don't have support for RTMPS as far as I can tell. So this module would be ideal, because I can send the stream over HTTPS from the Edison to the server, but the only problem is that I can't record the stream. Any suggestions on how I could achieve this now? I was also thinking about using the HttpLua module to be able to run a script to do the recording, however as far as I can tell from the docs I don't have access to the stream name and therefore I can't use it to record..

@juni745
Copy link

juni745 commented Jul 30, 2023

No clue for now and no one is answering if it's even possible. If you get anything about it please let me know

did you find a way to do this?

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

5 participants