How to play video , by rotating at 90 degree?
hi,
I have an 800*480 size Capacitve TFT connected with the ARM Board. The LCD is in Landscape mode, but i want it to be in Portrait Mode. So i am rotating each parent widget , i shows.
But, issue come with the Video File. I dont know about Rotating by hardware support. What should i do if i want to play a video file rotated at 90 degree.
I am fine with the .gif file, by rotating the parent . But video is not working. What should i do?
Re: How to play video , by rotating at 90 degree?
It depends how the video is being rendered.
If your application is the one rendering the video, then you can do the rotation in code (exactly how depends on how you are rending, with openGL or with QPainter etc).
If you don't have direct access to the video frame data, then its probably done by the hardware and you have no control over the frame in your code.
In such case the solution also is not in your code, but in hardware / system configuration.
But you supplied to little information to help you any further.
Re: How to play video , by rotating at 90 degree?
No, My application doesnt have a control over Video Rendering.
I am just using video file and my application needs to play the video file specified by its path. If i am having a resource file , say myvideo.mp4, What should i do if taking a control of the frame data is possible.
If you have Any trick , let me know. As i have very little knowledge on video.
Re: How to play video , by rotating at 90 degree?
Quote:
am just using video file and my application needs to play the video file specified by its path.
Please post the code for that, it will be quicker to understand what you are doing this way.
Re: How to play video , by rotating at 90 degree?
If i am able to rotate .gif file and run with the QMovie. Why cant i rotate and play video file?
What is the difference between them?
Re: How to play video , by rotating at 90 degree?
Probably for a QMovie, Qt does the painting and so it is controllable.
For video, Qt uses plugins available on the system. So you dont have control over them.
A trick would have been to use Video widget inside graphics scene and rotate it.
Re: How to play video , by rotating at 90 degree?
Thanks for ur reply.
But, No its not working. I have tried. It only rotates the VideoWidget, video display is not rotated.