AnsweredAssumed Answered

How to rotate a mp4 video with gstreamer in i.mx6 SABRE Lite

Question asked by Wilson ODB on Dec 6, 2013
Latest reply on Feb 23, 2014 by Wilson ODB

I am trying to rotate a video clockwise with gplay command line.

But it got errors:

[Playing  ][Vol=01][00:00:05/00:02:22][fps:29]t

Set rotation between 0, 90, 180, 270: 90

fsl_player_rotate(): AutVideoSinko=videosink : ActualVideoSink=videosink-actual-sink-mfw_v4l

rotate_value = 90

rotate = 90update_mfw_v4lsink_parameter(): Update mfw_v4lsink successfully!

fsl_player_rotate(): After rotate_value == 90

mxc_v4l2_output mxc_v4l2_output.0: vout check task failed

full screen size:1920x1080

 

Failed to initalize the dispmxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22

lay

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

 

But it's fine to rotate 180, but 90 and 270.


And I try the following to rotate by 90:

gst-launch filesrc location=/data/No5.mp4 typefind=true ! videoflip method=clockwise ! aiurdemux ! vpudec ! mfw_v4lsink

 

Errors again:

MFW_GST_V4LSINK_PLUGIN 3.0.7 build on Nov 11 2013 00:17:51.

WARNING: erroneous pipeline: could not link videoflip0 to aiurdemux0


What is the best way to rotate a video in i.mx6 and how?

 

Thanks,

Wilson

Outcomes