Anthias icon indicating copy to clipboard operation
Anthias copied to clipboard

Support for looping video & orientation

Open abrenoch opened this issue 9 years ago • 7 comments

We have recently found a need to play looping video (in portrait mode) with screenly.

I know this isn't supported natively, but the most recent versions of omxplayer do actually support changing the video orientation & a loop flag.

In the meantime I am just turning off all the assets, and playing the video with the orientation & loop flags via SSH (with an updated version of omxplayer). I have not seen any impact on performance.

abrenoch avatar Jul 21 '15 18:07 abrenoch

Interesting observation. Thanks, @abrenoch. We'll take a look.

vpetersson avatar Jul 21 '15 21:07 vpetersson

Just wanted to bump this - unless I'm mistaken I believe SSH is still the only way to accomplish changing orientation & seamless looping!

abrenoch avatar Feb 09 '18 15:02 abrenoch

SSH is the only way to sort out orientation, that is correct.

As far as the loop feature goes, that would require development work. I haven't looked into this, but I presume it would require something like conditional checks in the playlist and then appending some flag if there is only one video asset (which likely is an edge case IMHO).

vpetersson avatar Feb 09 '18 16:02 vpetersson

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '18 15:08 stale[bot]

@abrenoch what exactly did you modify in SSH to achieve this?

joeladria avatar Feb 05 '19 20:02 joeladria

@abrenoch what exactly did you modify in SSH to achieve this?

Originally I had to build and install a newer version of omxplayer, but it appears that the more recent versions of screenly do support the --loop and --orientation flags in omxplayer already.

Basically I would just call out the screenly asset I want to play looped & rotated, launching it with omxplayer. Provide the orientation & loop flags as needed to make it display/play as expected. This needs to be done every time you want to play a video.

Kinda stinks but will get the job done if you are in a pinch!

abrenoch avatar Feb 05 '19 20:02 abrenoch

I've created a fork that rather crudely implements these features as global functions. Unfortunately it breaks scheduling, but if you're just looking for a quick version that does looping and orientation this will do the trick. https://github.com/joeladria/screenly-ose

joeladria avatar May 13 '19 22:05 joeladria