Qt and video from camera

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Qt and video from camera

跳至解决方案
2,205 次查看
z0oba
Contributor I

Hello all!

I need to play video from camera on my imx53 board at the Qt widget (Qt embedded, without X11). I think, that i can do this with QtGstreamer and creating custom pipeline. But now, i can only play video  files with playbin2 without hardware acceleration.When custom pipeline created, i see only fullscreen video (mfw_v4lsrc ==> mfw_ v4lsink) or take  "internal data flow  error" (mfw_v4lsrc ==>qtvideosink).

Have you any suggestions how to play video from camera at the Qt widget?

Thanks.

标签 (3)
0 项奖励
1 解答
1,047 次查看
richard1094
Contributor III

try this

gst-launch -v v4l2src device=/dev/video0 ! ffmpegcolorspace ! video/x-raw-rgb,bpp=16,width=640,height=480 ! mfw_v4lsink disp-width=640 disp-height=480

在原帖中查看解决方案

0 项奖励
2 回复数
1,048 次查看
richard1094
Contributor III

try this

gst-launch -v v4l2src device=/dev/video0 ! ffmpegcolorspace ! video/x-raw-rgb,bpp=16,width=640,height=480 ! mfw_v4lsink disp-width=640 disp-height=480

0 项奖励
1,047 次查看
z0oba
Contributor I

Thanks you, richard1094!

I have got  some  idea about my problem. mfw_v4lsrc gives a video at yuv format, but qtvideosink use rgb  format.

My custom pipeline with "ffmpegcolorspace ! video/x-raw-rgb" works fine, and i see video on my qtwidget. But i haven`t hardware acceleration with ffmpegcolorspace. How can i fix it?

Sorry for my poor English.

0 项奖励