Comments (3)
Take a look at https://github.com/huceke/omxplayer/blob/master/OMXVideo.cpp#L600
from omxplayer.
Hi torarin,
I attempted to uncommend Line 593 to 608,But it not work!
It not response any error message but not any affect of the video too.
So , i try to other mode (Set transform, set src dis...etc.)
It is working properly .
My code following, could you mind let me know where is issue??
Set src dis (It work)
OMX_ERRORTYPE omx_err = OMX_ErrorNone;
OMX_CONFIG_DISPLAYREGIONTYPE configDisplay;
OMX_INIT_STRUCTURE(configDisplay);
configDisplay.nPortIndex = m_omx_render.GetInputPort();
configDisplay.set = OMX_DISPLAY_SET_SRC_RECT;
configDisplay.src_rect = src;
omx_err=m_omx_render.SetConfig(OMX_IndexConfigDisplayRegion,&configDisplay);
if (omx_err != OMX_ErrorNone)
{
printf("Get The Error!omx_err(0x%08x)\r\n",omx_err);
}
else
{
printf("Src width:\t%d\r\n",src.width);
printf("Src Height:\t%d\r\n",src.height);
printf("Src x offset:\t%d\r\n",src.x_offset);
printf("Src y offset:\t%d\r\n",src.y_offset);
}
Set transform(It work)
OMX_ERRORTYPE omx_err = OMX_ErrorNone;
OMX_CONFIG_DISPLAYREGIONTYPE configDisplay;
OMX_INIT_STRUCTURE(configDisplay);
configDisplay.nPortIndex = m_omx_render.GetInputPort();
configDisplay.set = OMX_DISPLAY_SET_TRANSFORM;
configDisplay.transform = trans;
omx_err=m_omx_render.SetConfig(OMX_IndexConfigDisplayRegion,&configDisplay);
if (omx_err != OMX_ErrorNone)
{
printf("Get The Error!omx_err(0x%08x)\r\n",omx_err);
}
else
{
printf("Transforms:\t%d\r\n",trans);
}
Set dist (It not work:()
OMX_ERRORTYPE omx_err = OMX_ErrorNone;
OMX_CONFIG_DISPLAYREGIONTYPE configDisplay;
OMX_INIT_STRUCTURE(configDisplay);
configDisplay.nPortIndex = m_omx_render.GetInputPort();
configDisplay.set = OMX_DISPLAY_SET_DEST_RECT;
configDisplay.dest_rect = dest;
omx_err=m_omx_render.SetConfig(OMX_IndexConfigDisplayRegion,&configDisplay);
if (omx_err != OMX_ErrorNone)
{
printf("Get The Error!omx_err(0x%08x)\r\n",omx_err);
}
else
{
printf("Dest width:\t%d\r\n",dest.width);
printf("Dest Height:\t%d\r\n",dest.height);
printf("Dest x offset:\t%d\r\n",dest.x_offset);
printf("Dest y offset:\t%d\r\n",dest.y_offset);
}
from omxplayer.
Hi, i found the solution
It must specify layer before set dest.
from omxplayer.
Related Issues (20)
- Play audio in folder
- Delay in display
- Raspberry Pi 2, can't route audio to alsa:hw:1,0 HOT 1
- DVR h264 rtsp stream
- Synced display of multicast video
- subtitles problem (only first stroke is displayed)
- Controlling OMX player via UDP/network
- Possibility to change subtitles and ghost boxes color?
- Can't install on stretch HOT 2
- There is no video service select option in udp streaming in Omxplayer
- configurable seek time
- Audio-Video sync, av-delay request
- omxplayer plays at speed 2.0 when using a pipe HOT 3
- how to set z-order HOT 1
- play rtmp video sometimes fails HOT 2
- OMXplayer doesn't appear to support yuv444p videos HOT 2
- sound in omxplayer HOT 2
- Incorrect PCM 5.1 channel mapping HOT 1
- omxplayer freezes after running videos repeatedly on Pi3
- Omxplayer is not a available in apt source,and libWFC.so is missing. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omxplayer.