I'm trying to resize a video feed but I'm getting an error.
mfw_v4lsrc device=/dev/video0 ! \
mfw_ipucsc ! \
'video/x-raw-yuv, width=100, height=100' ! \
vpuenc codec=mjpg ! \
tcpclientsink host=192.168.1.2 port=910 sync=false
But when I run my launch with width=100, height=100 added I get this error.
ERROR: from element /GstPipeline:pipeline0/MFWGstV4LSrc:mfwgstv4lsrc0: Internal data flow error.
Reason not-negotiate....(-4)
I tried adding (int) in front of the width and height but to no avail.
Please check, using gst-inspect, if "mfw_ipucsc" element is present and has
all the needed properties (width, height).
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I have mfw_ipucsc as you can see in my pipeline example in my original question. How do I format width and height to have mfw_ipucsc reszie? Thanks!
I tried changing the caps to 'video/x-raw-yuv, width=640, height=480' but then it stops working with 'Got EOS from element pipeline0". If I restore it to 1280x720 (the input resolution) it returns to normal operation. So how do I tel the ipucsc to actually change the scale?
Please let me know result of the following command :
$ gst-inspect mfw_ipucsc
Regards,
Yuri.
I found the solution. You need caps on on either side of mfw_ipucsc not just after. So this works:
mfw_v4lsrc device=/dev/video0 ! \
'video/x-raw-yuv, width=1280, height=720' ! \
mfw_ipucsc ! \
'video/x-raw-yuv, width=100, height=100' ! \
vpuenc codec=mjpg ! \
tcpclientsink host=192.168.1.2 port=910 sync=false
yes, you are right Gavin,
i do have same issue and solved by adding caps before mfw_ipucsc, but i have one more requirement is
to change the mfw_ipucsc output dynamically, i am using the gstreamer call " gst_element_link_filtered ()" and working file initially.
but i if try to change caps (after pausing pipeline) and again try to link, not working. can anybody help me ?
the actual requirement is _______ the output of scale can be variable
/
videosrc(1080p awlays) ---> scale -----> vpuenc
regards
nagendra