Hi All, Need help regarding resources utilization of ffmpeg while generating .m3u8 from RTSP feed. I am using following command for .m3u8 generation from RTSP ffmpeg -rtsp_transport tcp -i {RTSP} -c:v libx264 -crf 35 -preset ultrafast -maxrate 3M -bufsize 100K -r 50 -g 100 -movflags +faststart -tune zerolatency -hls_time 1 -hls_list_size 4 -hls_wrap4 -start_number 1 -hls_allow_cache 0 -threads 1 -loglevel warning -y {PATHM3U8} This is on demand streaming. Let us say I have five camera. User clicks on live camera request of any one, that starts one instance of FFMpeg with above command. Its taking a lot of memory and CPU resources? Any thoughts on how to optimize it? Regards, Ankit Kumar Gupta
Am 21.03.2017 um 04:10 schrieb Ankit Gupta:
Need help regarding resources utilization of ffmpeg while generating .m3u8 from RTSP feed.
I am using following command for .m3u8 generation from RTSP
ffmpeg -rtsp_transport tcp -i {RTSP} -c:v libx264 -crf 35 -preset ultrafast -maxrate 3M -bufsize 100K -r 50 -g 100 -movflags +faststart -tune zerolatency -hls_time 1 -hls_list_size 4 -hls_wrap4 -start_number 1 -hls_allow_cache 0 -threads 1 -loglevel warning -y {PATHM3U8}
This is on demand streaming. Let us say I have five camera. User clicks on live camera request of any one, that starts one instance of FFMpeg with above command. Its taking a lot of memory and CPU resources? Any thoughts on how to optimize it?
it takes what it takes waht sense makes it to only use a small percent of available CPU power and make things just slower?
ankit.gupta wrote
that starts one instance of FFMpeg with above command. Its taking a lot of memory and CPU resources? Any thoughts on how to optimize it?
Do you really want to optimise, or do you mean you want to throttle CPU usage? I'm not aware this is possible, but I do think you can use the threads option to tie a process to just one CPU core. On a multi-core PC this would effectively throttle the process and leave resources available to other threads. -- View this message in context: http://www.ffmpeg-archive.org/Optimizing-CPU-Utilization-tp4679511p4679517.h... Sent from the FFmpeg-users mailing list archive at Nabble.com.
participants (3)
-
Ankit Gupta -
Mike Versteeg -
Reindl Harald