Qt and video from camera

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Qt and video from camera

ソリューションへジャンプ
3,335件の閲覧回数
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 解決策
2,177件の閲覧回数
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 返答(返信)
2,178件の閲覧回数
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,177件の閲覧回数
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 件の賞賛
返信