您好,
将器件用作 am5728 /dev/video1和/dev/video2. 视频源为摄像机 1920*1080p30。
脚本1:
gst-launch-1.0 v4l2src device=/dev/video1 io-mode=4! 'video/x-raw、format=(string) YUY2、width=(int) 1920、height=(int) 1080、framerate=(fraction) 30/1'! VPE num-input-buffers=6! 'video/x-raw、format=(string) NV12、width=(int) 1920、height=(int) 1080、帧速率=(fraction) 30/1'! ducatih264enc bitrate = 4000! filesink location=test.h264
脚本2:
gst-launch-1.0 v4l2src device=/dev/video2 io-mode=4! 'video/x-raw、format=(string) YUY2、width=(int) 1920、height=(int) 1080、framerate=(fraction) 30/1'! VPE num-input-buffers=6! 'video/x-raw、format=(string) NV12、width=(int) 1920、height=(int) 1080、帧速率=(fraction) 20/1'! ducatih264enc bitrate = 4000! 文件链接位置=test_2.h264
运行上述两个脚本会将视频保存为 H264文件。
在后台运行第一个脚本、然后运行第二个脚本将报告以下错误:
单独运行两个脚本可以将视频保存为 h264文件,同时运行报告错误的两个脚本,请问导致上述错误的原因是什么。
如何解决此问题?
BR
Andre

