两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 |
digi:arm-embedded:ccmp2:mipiwifi [2025/07/08 08:24] – robin | digi:arm-embedded:ccmp2:mipiwifi [2025/07/08 09:02] (当前版本) – robin |
---|
</code> | </code> |
gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=YUYV ! nvvidconv ! 'video/x-raw(memory:NVMM)' ! nvv4l2h264enc bitrate=4000000 ! rtph264pay ! udpsink host=192.168.46.100 port=5000 | gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=YUYV ! nvvidconv ! 'video/x-raw(memory:NVMM)' ! nvv4l2h264enc bitrate=4000000 ! rtph264pay ! udpsink host=192.168.46.100 port=5000 |
| </code> |
| |
| |
| *************调试相关 |
| |
| <code> |
| gst-launch-1.0 v4l2src device=/dev/video2 io-mode=dmabuf ! image/jpeg,width=640,height=480 ! jpegparse ! jpegdec ! videoconvert ! autovideosink |
| |
| gst-launch-1.0 v4l2src device=/dev/video2 io-mode=mmap ! image/jpeg,width=640,height=480 ! jpegparse ! jpegdec ! videoconvert ! autovideosink |
| |
| gst-launch-1.0 v4l2src device=/dev/video2 ! image/jpeg,width=640,height=480 ! queue max-size-buffers=2 leaky=downstream ! jpegparse ! jpegdec ! videoconvert ! autovideosink |
| |
| 上面不行,JPEG可能是为了静态抓图,而不是mjpg, 设置回YUYV |
| |
| gst-launch-1.0 v4l2src device=/dev/video2 ! "video/x-raw,format=YUYV,width=640,height=480" ! videoconvert ! video/x-raw,format=I420 ! autovideosink |
| |
| gst-launch-1.0 v4l2src device=/dev/video2 ! capsfilter caps="video/x-raw,format=YUYV,width=640,height=480" ! videoconvert ! autovideosink |
| |
| 尝试mjpg,还是要设置回jpeg |
| gst-launch-1.0 v4l2src device=/dev/video2 ! image/jpeg,width=640,height=480 ! jpegdec ! videoconvert ! autovideosink |
| |
| </code> |
| 上面不行,就用专用转换方案 |
| <code> |
| gst-launch-1.0 v4l2src device=/dev/video2 ! v4l2convert ! video/x-raw,format=YUYV,width=640,height=480 ! videoconvert ! autovideosink |
</code> | </code> |
| |