The camera used in the blog reports that it supports YUYV and MJPEG. Yours supports YUYV only. There is no way that you can get the camera/v4l2src to produce JPEG data directly (MJPEG can be treated as a continuous form of JPEG).
PI_newbee wrote:I would understand that there is a hardware issue but error message doesn't give any use full information, where to look... If it would be HW i guess, error message would point in this direction.
From my point of view, i guess that there must be some problem with packages...
I've already said, break your pipe down to find where you have an issue. Try each of these in turn to find where your issue is (you still hadn't replied about the seemingly missing space in your command)
Code: Select all
gst-launch -v v4l2src ! jpegenc ! "image/jpeg,width=320,height=240,framerate=30/1" ! fakesink
gst-launch -v v4l2src ! jpegenc ! "image/jpeg,width=320,height=240,framerate=30/1" ! multipartmux ! fakesink
gst-launch -v v4l2src ! jpegenc ! "image/jpeg,width=320,height=240,framerate=30/1" ! multipartmux ! tcpserversink host=192.168.101 port=5000 sync=false
gst-launch -v alsasrc device=hw:1 ! audioconvert ! fakesink
gst-launch -v alsasrc device=hw:1 ! audioconvert ! audioresample ! 'audio/x-raw-int,rate=8000,width=16,channels=1' ! fakesink
gst-launch -v alsasrc device=hw:1 ! audioconvert ! audioresample ! 'audio/x-raw-int,rate=8000,width=16,channels=1' ! udpsink host=x.x.x.x port=5001
and if ALL of those have worked,
gst-launch -v v4l2src ! jpegenc ! "image/jpeg,width=320,height=240,framerate=30/1" ! multipartmux ! tcpserversink host=192.168.101 port=5000 sync=false \
alsasrc device=hw:1 ! audioconvert ! audioresample ! 'audio/x-raw-int,rate=8000,width=16,channels=1' ! udpsink host=x.x.x.x port=5001
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.