引用: jerry1978 发表于 2018-10-31 08:49
嗨Dion,感谢您对英特尔®Aero计算板的兴趣。请您提供有关您的设置的更多详细信息?您打算在哪里打开流:直接在无人机或远程计算机上?如果是
远程计算机,请确保它已正确连接到无人机的接入点。另外,请确保您正在更改QGC中的视频设置:https://github.com/intel-aero/meta-intel-aero/wiki
/ 06-Cameras-and-VideoDid你 ...
HI George,
我只是试图直接在aero上启动UDP或RTSP流,所以我可以在其他地方接收它。
我想运行类似的命令
sudo gst-launch-1.0 v4l2src device = / dev / video0 do-timestamp = true!
video / x-raw,format = YUY2,width = 640,height = 480,framerate = 15/1!
autovideoconvert!
vaapih264enc!
rtph264pay!
udpsink host = 192.168.1.147 port = 5600
但我得到这个错误,它立即退出:
aero @ ubuntu-aero:〜$ sudo gst-launch-1.0 v4l2src device = / dev / video0 do-timestamp = true!
video / x-raw,format = YUY2,width = 640,height = 480,framerate = 15/1!
autovideoconvert!
vaapih264enc!
rtph264pay!
udpsink host = 192.168.1.147 port = 5600
航空的[sudo]密码:
将管道设置为PAUSED ...
错误:未在环境中设置XDG_RUNTIME_DIR。
libva info:VA-API版本0.39.0
libva info:va_getDriverName()返回0
libva info:试图打开/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info:找到init函数__vaDriverInit_0_39
libva info:va_openDriver()返回0
管道现场直播,不需要PREROLL ......
从元素'vaapiencodeh264-0'获得上下文:gst.vaapi.Display = context,gst.vaapi.Display =(GstVaapiDisplay)NULL;
将管道设置为播放...
新时钟:GstSystemClock
错误:来自element / GstPipeline:pipeline0 / GstV4l2Src:v4l2src0:设备'/ dev / video0'无法捕获640x480
其他调试信息:
gstv4l2object.c(3458):gst_v4l2_object_set_format_full():/ GstPipeline:pipeline0 / GstV4l2Src:v4l2src0:
对于YUYV @ 640x480,调用S_FMT失败:参数无效
执行在0:00:01.030384570之后结束
将管道设置为PAUSED ...
将管道设置为READY ...
将管道设置为NULL ...
释放管道......
航空@ Ubuntu的航空:〜$
我也停止了csd所以它没有干扰(systemctl stop csd)。
使用video13运行命令工作正常!
只是没有视频0。
我对QGC很熟悉,问题不在于此。
只是无法打开前置摄像头......
干杯
翁
以上来自于谷歌翻译
以下为原文
HI George,
I'm just attempting to start the UDP or RTSP stream on the aero directly so I can receive it elsewhere.
I'd like to run a command similar to
sudo gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw, format=YUY2, width=640, height=480, framerate=15/1 ! autovideoconvert ! vaapih264enc ! rtph264pay ! udpsink host=192.168.1.147 port=5600
but i get this error with it exiting immediately:
aero@ubuntu-aero:~$ sudo gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw, format=YUY2, width=640, height=480, framerate=15/1 ! autovideoconvert ! vaapih264enc ! rtph264pay ! udpsink host=192.168.1.147 port=5600
[sudo] password for aero:
Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Pipeline is live and does not need PREROLL ...
Got context from element 'vaapiencodeh264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 640x480
Additional debug info:
gstv4l2object.c(3458): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for YUYV @ 640x480: Invalid argument
Execution ended after 0:00:01.030384570
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
aero@ubuntu-aero:~$
I also stopped csd so it wasn't interfering (systemctl stop csd).
Running the command with video13 works fine! just not video0.
I'm familiar with QGC, the the issue doesn't lay there.
Just can't open the front facing camera...
Cheers
Dion
引用: jerry1978 发表于 2018-10-31 08:49
嗨Dion,感谢您对英特尔®Aero计算板的兴趣。请您提供有关您的设置的更多详细信息?您打算在哪里打开流:直接在无人机或远程计算机上?如果是
远程计算机,请确保它已正确连接到无人机的接入点。另外,请确保您正在更改QGC中的视频设置:https://github.com/intel-aero/meta-intel-aero/wiki
/ 06-Cameras-and-VideoDid你 ...
HI George,
我只是试图直接在aero上启动UDP或RTSP流,所以我可以在其他地方接收它。
我想运行类似的命令
sudo gst-launch-1.0 v4l2src device = / dev / video0 do-timestamp = true!
video / x-raw,format = YUY2,width = 640,height = 480,framerate = 15/1!
autovideoconvert!
vaapih264enc!
rtph264pay!
udpsink host = 192.168.1.147 port = 5600
但我得到这个错误,它立即退出:
aero @ ubuntu-aero:〜$ sudo gst-launch-1.0 v4l2src device = / dev / video0 do-timestamp = true!
video / x-raw,format = YUY2,width = 640,height = 480,framerate = 15/1!
autovideoconvert!
vaapih264enc!
rtph264pay!
udpsink host = 192.168.1.147 port = 5600
航空的[sudo]密码:
将管道设置为PAUSED ...
错误:未在环境中设置XDG_RUNTIME_DIR。
libva info:VA-API版本0.39.0
libva info:va_getDriverName()返回0
libva info:试图打开/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info:找到init函数__vaDriverInit_0_39
libva info:va_openDriver()返回0
管道现场直播,不需要PREROLL ......
从元素'vaapiencodeh264-0'获得上下文:gst.vaapi.Display = context,gst.vaapi.Display =(GstVaapiDisplay)NULL;
将管道设置为播放...
新时钟:GstSystemClock
错误:来自element / GstPipeline:pipeline0 / GstV4l2Src:v4l2src0:设备'/ dev / video0'无法捕获640x480
其他调试信息:
gstv4l2object.c(3458):gst_v4l2_object_set_format_full():/ GstPipeline:pipeline0 / GstV4l2Src:v4l2src0:
对于YUYV @ 640x480,调用S_FMT失败:参数无效
执行在0:00:01.030384570之后结束
将管道设置为PAUSED ...
将管道设置为READY ...
将管道设置为NULL ...
释放管道......
航空@ Ubuntu的航空:〜$
我也停止了csd所以它没有干扰(systemctl stop csd)。
使用video13运行命令工作正常!
只是没有视频0。
我对QGC很熟悉,问题不在于此。
只是无法打开前置摄像头......
干杯
翁
以上来自于谷歌翻译
以下为原文
HI George,
I'm just attempting to start the UDP or RTSP stream on the aero directly so I can receive it elsewhere.
I'd like to run a command similar to
sudo gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw, format=YUY2, width=640, height=480, framerate=15/1 ! autovideoconvert ! vaapih264enc ! rtph264pay ! udpsink host=192.168.1.147 port=5600
but i get this error with it exiting immediately:
aero@ubuntu-aero:~$ sudo gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw, format=YUY2, width=640, height=480, framerate=15/1 ! autovideoconvert ! vaapih264enc ! rtph264pay ! udpsink host=192.168.1.147 port=5600
[sudo] password for aero:
Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Pipeline is live and does not need PREROLL ...
Got context from element 'vaapiencodeh264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 640x480
Additional debug info:
gstv4l2object.c(3458): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for YUYV @ 640x480: Invalid argument
Execution ended after 0:00:01.030384570
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
aero@ubuntu-aero:~$
I also stopped csd so it wasn't interfering (systemctl stop csd).
Running the command with video13 works fine! just not video0.
I'm familiar with QGC, the the issue doesn't lay there.
Just can't open the front facing camera...
Cheers
Dion
举报