How to reduce load CPU while stream one flow to two out, one as is, other cropped?
Posted: 30 Sep 2019 09:57
I want one stream video from webcam, to two out video, one full and other cropped.
I was try followed command lines, but it is not worked:
Now solution is one of next:
Is there other solution(s) for subject?
I was try followed command lines, but it is not worked:
Code: Select all
cvlc -vv v4l2:///dev/video0:chroma=YUYV --v4l2-width 1600 --v4l2-height 1200 --sout '#transcode{vcodec=mp2v}:duplicate{dst="rtp{mux=ts,sdp=rtsp://:8888/parking}",dst="transcode{vfilter=croppadd{croptop=650,cropbottom=150,cropleft=200,cropright=900}}:rtp{mux=ts,sdp=rtsp://:8888/moto}"'
cvlc -vv v4l2:///dev/video0:chroma=YUYV --v4l2-width 1600 --v4l2-height 1200 --sout '#transcode{vcodec=mp2v}:duplicate{dst="rtp{mux=ts,sdp=rtsp://:8888/parking}",dst="transcode{croptop=650,cropbottom=150,cropleft=200,cropright=900}:rtp{mux=ts,sdp=rtsp://:8888/moto}"'
Code: Select all
cvlc -vv v4l2:///dev/video0:chroma=YUYV --v4l2-width 1600 --v4l2-height 1200 --sout '#transcode{vcodec=mp2v}:duplicate{dst="rtp{mux=ts,sdp=rtsp://:8888/parking}",dst="transcode{vcodec=mp2v,vfilter=croppadd{croptop=650,cropbottom=150,cropleft=200,cropright=900}}:rtp{mux=ts,sdp=rtsp://:8888/moto}"'
cvlc -vv v4l2:///dev/video0:chroma=YUYV --v4l2-width 1600 --v4l2-height 1200 --sout '#duplicate{dst="transcode{vcodec=mp2v}:rtp{mux=ts,sdp=rtsp://:8888/parking}",dst="transcode{vcodec=mp2v,vfilter=croppadd{croptop=650,cropbottom=150,cropleft=200,cropright=900}}:rtp{mux=ts,sdp=rtsp://:8888/moto}"}'