i.MX.6Q video playback with GStreamer using mfw_v4lsink

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

i.MX.6Q video playback with GStreamer using mfw_v4lsink

Jump to solution
3,452 Views
joepsycho
Contributor II

I am trying to play video using GStreamer, the video-sink I use is mfw_v4lsink, the goal is to play video in the portrait orientation (which is rotating video playback in 90degree).

When I set the "rotate" property of mfw_v4lsink to 180 and it works (~$ gst-launch uri=file://SOME_VIDEO video-sink="mfw_v4lsink rotate=180"), the video playback turns out upside down, but when the rotate=90 or rotate=270, the video is disappeared.

I also tried to play with gplay, the rotate function of gplay work well with 180 degree and it worked, but the error message came out below when rotate=90 and 270 :

mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22

mxc_v4l2_output mxc_v4l2_output.0: display work fail ret = -22

I also found that the framebuffer can only be rotate in 180 degree using "echo 1 > /sys/class/graphic/fb0/rotate", 1 is the only valid number to be set to the/sys/class/graphic/fb0/rotate, according to this link, the value 1 should be rotate in 90 degree, is there any connection between /sys/class/graphic/fb0/rotate" and the video playback orientation.

Can someone help me out please?

Labels (4)
1 Solution
1,310 Views
LeonardoSandova
Specialist I

Honestly, I do know the answers, but you need to look at the release notes, there you find 'what's new' and 'issues' and 'workarounds'. Better to read it before doing any programming. Flash an SD with the latest demo images. I have a i.MX6Q running latest image and pipelines work as expected.

Leo

View solution in original post

0 Kudos
6 Replies
1,310 Views
LeonardoSandova
Specialist I

which BSP are you using? I just tried rotating 90 degrees from the mfw_v4lsink and it worked. BTW, I did not echo the ...fb0/rotate file. I also tried 180 and 270 rotations and worked as expected.

Leo

0 Kudos
1,310 Views
joepsycho
Contributor II

I have my question updated, could you please check again? I am not sure which BSP I am using ( this job was taken over from my colleague but he is no longer work here :smileysad: ) or which command can i find the version of BSP? Thanks.

0 Kudos
1,310 Views
LeonardoSandova
Specialist I

Type 'uname -a' to check BSP version.  Make sure you are running your test with lastest BSP (3.0.35_4.0.0).

Leo

0 Kudos
1,310 Views
joepsycho
Contributor II

With uname -a I get this:

Linux freescale 3.0.35-2026-geaaf30e #1 SMP PREEMPT Fri May 10 20:17:09 CST 2013 armv7l GNU/Linux

It looks like my BSP is a bit out of date, but what's the difference between this version and latest version against my problem?

Is there a updated version of mfw_v4lsink plugin or something?

Thank you for your reply

0 Kudos
1,311 Views
LeonardoSandova
Specialist I

Honestly, I do know the answers, but you need to look at the release notes, there you find 'what's new' and 'issues' and 'workarounds'. Better to read it before doing any programming. Flash an SD with the latest demo images. I have a i.MX6Q running latest image and pipelines work as expected.

Leo

0 Kudos
1,310 Views
wallyyeh
Contributor V

Hi, my partner try rotate with gst-launch and gplay.

we find out only "1024x768" can be rotate 90 degree, but "1280x720" & "1680x1050" can *NOT* be rotate to 90 degree.

we're using SDK3.0.35-4.1.0, which should work according your reply. could you help me this problem?