I am using webcam 720P from Logitech and I tried successfully mjpeg streaming on iMX6. Below are the commands if it is useful for some one.
/usr/bin/gst-launch-0.10 v4l2src device=/dev/video2 ! 'video/x-raw-yuv,framerate=(fraction)30/1' ! ffmpegcolorspace ! vpuenc codec=12 ! multipartmux ! tcpserversink host=10.10.4.117 port=5000
#default resolution of this webcam is 1280x960
gst-launch tcpclientsrc host=10.10.4.117 port=5000 ! queue ! jpegdec ! autovideosink
The above works fine.
I wanted to do the same with h.264 encoded stream instead of mjpeg, but I could not get to work. pipe says it is playing, but I could not decode it either by using vlc or iMX6 as client.
Any experts throw any idea on following.
1. how to do h.264 tcp streaming (instead of above it was mjpeg) ?
2. For mjpeg I could not use vpudec (actually it was very jerky with vpudec), any ideas why ?
appreciate if some experts share some pointers.