udara
Posts: 50
Joined: Fri Jul 11, 2014 3:27 pm

How To Reduce Delay When Changing Omxplayer Resolution

Sun Sep 07, 2014 9:32 am

I'm using Raspbian on my RPi, first I start a omxplayer instance using following command

Code: Select all

omxplayer --win '0 0 1920 1080' --dbus_name org.mpris.MediaPlayer2.omxplayer1 udp://224.1.1.1:1234
Then occasionally I need to open another omxplayer instance, before that I need to change "org.mpris.MediaPlayer2.omxplayer1" resolution 1920*880 (or any) so I use

Code: Select all

bash dbuscontrolm.sh org.mpris.MediaPlayer2.omxplayer1 setvideopos 0 0 1920 880
This works fine but the problem is this take about 4 seconds to change resolution but I need to change resolution quickly as possible.
Is this the only way to do this or is there any different method to do this? need help
Thanks.

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: How To Reduce Delay When Changing Omxplayer Resolution

Sun Sep 07, 2014 10:35 am

It's very much faster on http streams or local files. Changing resolution requires a seek command and this might be harder on udp streams.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

udara
Posts: 50
Joined: Fri Jul 11, 2014 3:27 pm

Re: How To Reduce Delay When Changing Omxplayer Resolution

Sun Sep 07, 2014 11:05 am

Yes I checked with local files, compare to udp stream changing resolution of local file is really fast. Is there any other way to do this other than using dbus command.
Thanks.

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: How To Reduce Delay When Changing Omxplayer Resolution

Sun Sep 07, 2014 11:49 am

udara wrote:Yes I checked with local files, compare to udp stream changing resolution of local file is really fast. Is there any other way to do this other than using dbus command.
Thanks.
No
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Beginners”