I'm currently using nginx-rtmp with exec_pull and ffmpeg, it works fine, the problems getting started when trying to retransmit streams with codec not supported by rtmp, example h265, it becomes totally unfeasible to transcode the video because it require a lot of cpu.
I want a solution , i need simple and functional examples using python, I do not want to use any solution ready, iptv panels are out of the question!
So I started using the gstreamer with python to try to segment any stream to hls, and at first I came across a problem I quoted in [url removed, login to view] . Segmenting using gstreamer requires:
1. Need to be by the duration of the segment and not by the size of the data.
2. Without need to pass the codec of the input in the command of the gstreamer, or that somehow this is be done automatically without having to open the input stream twice to check the codec.
3. Accept as many codecs as possible without transcoding to segmenting.
4. Need to be possible to know when there is an error in the input streaming inside python.
5. Need to Know when a new segment was created and its duration inside python.
Segmenting using ffmpeg is unfeasible, as far as I know there is no ffmpeg control inside python besides starting the command, I need to have a bigger control, such as receive errors, know when a new segment was created and its duration, start segmenting only When a user wants to watch.
Using the gstreamer rtsp server would also be an option as long as meet all the requirements:
1. Accept as many codecs as possible without transcoding to transmit.
2. Without need to pass the codec of the input streaming in the command of the gstreamer, or that somehow this is done automatically without having to open the input stream twice to check the codec.
3. Need to be possible to check parameters sent in the url to authorize or not a user to watch.
4. Need to be possible to know when there is an error in the input streaming inside python, to be able to change the input for a backup without having to disconnect the users.
5. Need to be possible to have several streamings and several users watching simultaneously.
6. Begin downloading the incoming streaming only when at least one user is logged in to that streaming!
8 freelancer menawar pada rata-rata R$1665 untuk pekerjaan ini
hello, i have more then 7 year experience in python and i am ready to start work now waiting for your reply thanks Relevant Skills and Experience have a look to my reviews thanks Proposed Milestones R$2222 BRL - 2222
HIGHLY interested with your project. I'm ready to start right now. I'm an individual developer and my completion rate is always 100%. I STRICTLY BITE only WHICH I CAN CHEW. Knock me please