Screenly / Anthias

The world's most popular open source digital signage project.
https://anthias.screenly.io
Other
2.51k stars 623 forks source link

Support for looping video & orientation #298

Open abrenoch opened 9 years ago

abrenoch commented 9 years ago

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.

vpetersson commented 9 years ago

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

abrenoch commented 6 years ago

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

vpetersson commented 6 years ago

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).

stale[bot] commented 6 years ago

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.

joeladria commented 5 years ago

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

abrenoch commented 5 years ago

@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!

joeladria commented 5 years ago

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