How to reduce load CPU while stream one flow to two out, one as is, other cropped?

About encoding, codec settings, muxers and filter usage
reeshkov
New Cone
New Cone
Posts: 1
Joined: 30 Sep 2019 09:37

How to reduce load CPU while stream one flow to two out, one as is, other cropped?

Postby reeshkov » 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:

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}"'
Now solution is one of next:

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}"}'
Is there other solution(s) for subject?

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 31 guests