Qt and video from camera

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Qt and video from camera

Jump to solution
2,170 Views
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.

Labels (3)
0 Kudos
1 Solution
1,012 Views
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

View solution in original post

0 Kudos
2 Replies
1,013 Views
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 Kudos
1,012 Views
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 Kudos