r2p2
Posts: 6
Joined: Sat Mar 17, 2018 10:30 am

omx player rotate, zoom and position

Sat Mar 31, 2018 9:48 am

hi guys, hope you can help me out.
what code is needed to rotate, zoom and position videos in the omxplayer? i want to use some monitors vertically.
using raspberry pi3+ i want to be able to play mp4's on a playlist, from an external usb harddrive.
I understood that VLC for pi can do a playlist and image adjustments but not from an external harddrive.
what i'm trying to do is use part of the landscape mp4 videos as portrait videos. so i need to rotate, zoom and be able to set the absolute position if necessary. i need to have the same settings for the entire playlist. see example below:

Image

Image

Image

i found the forum post below, but it's from 2 years ago, so not sure if anyone would still respond.
the code for the rotation is
--orientation 90
viewtopic.php?t=169376

please let me know.
happy easter!
ciao,
roma

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

Re: omx player rotate, zoom and position

Sat Mar 31, 2018 10:48 am

Simply running "omxplayer -h" will provide a list of all possible options, e. g.
--orientation n Set orientation of video (0, 90, 180 or 270)
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

r2p2
Posts: 6
Joined: Sat Mar 17, 2018 10:30 am

Re: omx player rotate, zoom and position

Mon Apr 02, 2018 5:29 pm

thank you! i didnt realize someone responded (didnt turn notification on). sorry.
will the settings pertain to the whole playlist in omxplayer?

i found this:
https://www.raspberrypi.org/documentati ... xplayer.md

--win 'x1 y1 x2 y2' Set position of video window
--win x1,y1,x2,y2 Set position of video window
--crop 'x1 y1 x2 y2' Set crop area for input video
--crop x1,y1,x2,y2 Set crop area for input video
--aspect-mode type Letterbox, fill, stretch. Default is stretch if win is specified, letterbox otherwise

what do the positions represent?
x1, y1 x2, y2?
x2 and y2 is the screen size?
x1 and y1 is the absolute position? from left top?

set position of video window
set crop area for input video
set rotation
then use fill or stretch?

i didnt buy a raspberry pi yet. first want to make sure it can do this.

thanks for helping out!

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

Re: omx player rotate, zoom and position

Mon Apr 02, 2018 5:41 pm

omxplayer does not support playlists, but my omxplayerGUI (part of my kweb suite) does.

You can use it in a special way (without GUI elements) and a specially created m3u playlist, where you can add omxplayer options for each video. Have a look at the developer's chapter in my omxplayerGUI manual.
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

r2p2
Posts: 6
Joined: Sat Mar 17, 2018 10:30 am

Re: omx player rotate, zoom and position

Mon Apr 02, 2018 6:17 pm

okay, thanks for pointing me in the right direction
will it be possible to use one setting for the whole playlist though? or do i have to set them for each video?
it may be almost 1 terrabyte of mp4 videos

i found this
https://github.com/ekapujiw2002/kweb


found this manual, but it's not the latest version mentioned in the log
http://steinerdatenbank.de/software/omx ... manual.pdf
is that the right one?

http://steinerdatenbank.de/software/kweb_changelog.html

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

Re: omx player rotate, zoom and position

Tue Apr 03, 2018 4:56 am

r2p2 wrote:
Mon Apr 02, 2018 6:17 pm
okay, thanks for pointing me in the right direction
will it be possible to use one setting for the whole playlist though? or do i have to set them for each video?
it may be almost 1 terrabyte of mp4 videos

i found this
https://github.com/ekapujiw2002/kweb


found this manual, but it's not the latest version mentioned in the log
http://steinerdatenbank.de/software/omx ... manual.pdf
is that the right one?

http://steinerdatenbank.de/software/kweb_changelog.html
No, this is a very old version which has been placed on github without my consent. You will find everything here: viewtopic.php?f=66&t=40860

There's a separate manual for omxplayerGUI, which is linked to from the post above.

And yes, if you create a special configuration, you can set omxplayer options for general use. But you cannot use the GUI otzself, as this is not rotated, of course. You have to use one of the GUI-less modes supported by omxplayerGUI.
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

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

Re: omx player rotate, zoom and position

Tue Apr 03, 2018 9:22 am

gkreidl wrote:
Tue Apr 03, 2018 4:56 am
No, this is a very old version which has been placed on github without my consent.
Without your consent? Then why is it GPLv3 licenced? That is your consent.
https://www.gnu.org/licenses/gpl.html
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
You can pull them up on the fact that they/Github have added a GPLv2 licence file to the repo, but not that it is being shared.
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.

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

Re: omx player rotate, zoom and position

Tue Apr 03, 2018 9:58 am

6by9 wrote:
Tue Apr 03, 2018 9:22 am
gkreidl wrote:
Tue Apr 03, 2018 4:56 am
No, this is a very old version which has been placed on github without my consent.
Without your consent? Then why is it GPLv3 licenced? That is your consent.
https://www.gnu.org/licenses/gpl.html
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
You can pull them up on the fact that they/Github have added a GPLv2 licence file to the repo, but not that it is being shared.
You're right, in a way. That's why I didn't complain. But pushing a version out without caring about upgrades etc. is bad practice, in my view. It will only cause a lot of confusion. And the Documentation is not GPL licensed, BTW. It may be distributed free of charge, but not modified.

Personally I don't like using github for my projects, but I always publish the source code in some way, and yes, it is GPL licensed.
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

r2p2
Posts: 6
Joined: Sat Mar 17, 2018 10:30 am

Re: omx player rotate, zoom and position

Tue Apr 03, 2018 10:53 am

hi gkreidl,
thanks
where can i download kweb? i'm probably doing something wrong.
these seem to be links, red coloured, but they don't work, even though i'm signed in.
see screenshot below >>> so these are not the actual links but a pic (sorry, don't want to cause more confusion):

Image

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

Re: omx player rotate, zoom and position

Tue Apr 03, 2018 11:32 am

gkreidl wrote:
Tue Apr 03, 2018 9:58 am
You're right, in a way. That's why I didn't complain. But pushing a version out without caring about upgrades etc. is bad practice, in my view. It will only cause a lot of confusion. And the Documentation is not GPL licensed, BTW. It may be distributed free of charge, but not modified.

Personally I don't like using github for my projects, but I always publish the source code in some way, and yes, it is GPL licensed.
Submit a PR to that project which updates the README.md to reflect that the repo is out of date and point to the correct location then ;)
It appears that account is still active on Github, so making it a single action for him in order to clear up this confusion is the sort of thing that is likely to happen.
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.

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

Re: omx player rotate, zoom and position

Tue Apr 03, 2018 12:05 pm

r2p2 wrote:
Tue Apr 03, 2018 10:53 am
hi gkreidl,
thanks
where can i download kweb? i'm probably doing something wrong.
these seem to be links, red coloured, but they don't work, even though i'm signed in.
see screenshot below >>> so these are not the actual links but a pic (sorry, don't want to cause more confusion):

Image
Scroll a bit farther down (Installation for Stretch) and you will find detailed download and installation instructions (in a code box).
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

r2p2
Posts: 6
Joined: Sat Mar 17, 2018 10:30 am

Re: omx player rotate, zoom and position

Tue Apr 03, 2018 5:54 pm

okay, merci!
will go through everything and see if i can make it work ; )

Return to “Graphics, sound and multimedia”