11156
1
你好,我在 ROCK 3A 使用 IMX219,我使用 cheese 软件,帧率很正常,isp 功能也正常。
我使用 Gstreamer 命令就会发生掉帧现象,图像很卡顿。
我试了论坛上提到的Gstreamer 组件,我总结下能用的:
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=1920,height=1080, framerate=30/1 ! videoconvert ! autovideosink -v
这个命令能用,但是一直掉帧。因为新用户我无法提供视频文件,如果有其他需要的信息请告诉我。
我的需求是在 3A 上使用 Gstreamer 不掉帧命令,或者其他类似工具也可以
ken
2
看下这个是什么结果,,另外不要指定帧率试试framerate=30/1
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=NV12 --stream-mmap=4 --stream-skip=100 --stream-to=/tmp/cif1.raw --stream-count=1 --stream-poll
1 Like
fdalto
3
rock@rock-3c:~$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=NV12 --stream-mmap=4 --stream-skip=100 --stream-to=/tmp/cif1.raw --stream-count=1 --stream-poll
The pixelformat ‘NV12’ is invalid
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 28.88 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.44 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 29.63 fps
<<<<<<<<<<<
fdalto
4
我想将视频录制为包含音频的 mp4 文件,符合 H264。你能帮我吗?
ken
5
摄像头不带mic 没有音频吧
gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/tmp/test.mp4