Closed skerit closed 7 years ago
I fixed the readme, it should read:
var format = VideoDecode.getParameter(VideoDecode.in_port, omx.Index.OMX_INDEXTYPE.OMX_IndexParamVideoPortFormat);
format.eCompressionFormat = omx.Video.OMX_VIDEO_CODINGTYPE.OMX_VIDEO_CodingAVC;
VideoDecode.setParameter(VideoDecode.in_port, omx.Index.OMX_INDEXTYPE.OMX_IndexParamVideoPortFormat, format);
As per changing the scale and position, try the following sample: https://github.com/jean343/Node-OpenMAX/blob/master/perf/PerfRender.ts
It was used to display a matrix of 4x3 videos.
Let me know if there is another issue.
JP
In the readme you wrote
Use the OMX OMX_GetParameter and OMX_SetParameter to change eCompressionFormat to
:I tried to do this in the
SimpleVideoDecoderRenderBuffer.js
file, after theinitAll
call:But as you can see in the comment,
out_format
is undefined. What am I doing wrong here?In case you're wondering: I'm trying to change the scale & position of the video being rendered.
While that probably has to happen in the
VideoRender
(usingOMX_IndexConfigCommonScale
perhaps?) I'm just wondering why I'm having trouble with this parameter.