mmormota
Posts: 10
Joined: Fri Aug 05, 2016 10:17 pm

demo_video speed control

Fri Aug 05, 2016 10:47 pm

Hi,

I like to add speed control to the demo_video program (in order to sync a stream). Hw: Pi3

I added a few lines to the video.c, and my first quiery returned with error code:

Code: Select all

OMX_TIME_CONFIG_SCALETYPE scaleType;
...
   // create video_decode
   // create video_render
   // create clock
...
OMX_GetConfig(ILC_GET_HANDLE(clock), OMX_IndexConfigTimeScale, &scaleType);
The returning error code
80001009
OMX_ErrorHardware The hardware failed to respond as expected

I like to set scaleType.xScale with the similar OMX_SetConfig().

Please, point me to the right direction.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6422
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: demo_video speed control

Sat Aug 06, 2016 3:50 pm

Have you initialised the header values in OMX_TIME_CONFIG_SCALETYPE (nSize, nVersion, nPortIndex) to appropriate values?
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

mmormota
Posts: 10
Joined: Fri Aug 05, 2016 10:17 pm

Re: demo_video speed control

Sat Aug 06, 2016 4:38 pm

No, I didn't. Most probably that's the problem, I'll try.
Thank you very much.

mmormota
Posts: 10
Joined: Fri Aug 05, 2016 10:17 pm

Re: demo_video speed control

Sat Aug 06, 2016 11:20 pm

I copy-pasted it from the omxplayer source code, and the speed control is working now.
Thank you again.

Return to “OpenMAX”