V
V
vermus2014-04-01 22:19:59
linux
vermus, 2014-04-01 22:19:59

How to "transcode" RTSP to HLS at the lowest cost?

How to transcode RTSP to HLS at the lowest cost on Linux?
Source codec as reported by vlc: H264 MPEG-4 AVC.
Is it possible to "redirect" the stream without compressing the video? By what means?
ps. I tried a lot of software (ffmpeg loads the processor (c debian-multimedia), cftmpserver does not understand my rtsp source (with svn), openrtsp needs a server - recoding again)
pps. Other options are also being considered: the main conditions are: the minimum load during conversion and the output stream that can be attached to the web (flash, html5 video, WebM, etc.).
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Valentine, 2014-04-02
@vermus

Hike you have a jamb with transcoding with ffmpeg. Rebuild ffmpeg with the required
codec libs.
In general, if you need HLS, install nginx + rtmp module, it supports HLS. Send a stream to it (it works like this for me):
ffmpeg -re -i rtsp://192.168.0.1/ -vcodec copy -acodec copy -vbsf h264_mp4toannexb -f flv rtmp://localhost/hls/720p

V
vermus, 2014-04-05
@vermus

In general, in live mode hls does not work, see the post .
"This introduces a minimum lag of 5 seconds."
The link has a solution, but it's without sound and using javascript - I haven't tried it.

H
hbruser, 2015-10-29
@hbruser

In general, in live mode hls does not work, see the post.

This post is about latency, not performance.
In the case of TS, minimal costs are required for stream repacketization.
The minimum cost can be provided by the use of Flash, tk. Flash supports H.264 and only needs to re-packetize the stream to the same codec. If you use HTML5(WebM), the costs will be higher, since transcoding to VP8 or VP9 video codec will be required, and this is just a very costly operation.
> There is a solution at the link, but it is without sound and with the help of javascript - I have not tried it.
The same thing, but with sound
The link is a completely different technology, where the video is encoded on the fly to MPEG1. Not a very costly codec, because compresses badly. Therefore performance will be better than in WebM and worse than in Flash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question