adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
452 stars 239 forks source link

Skewing video on 7" touchscreen #109

Closed amandansimons closed 3 years ago

amandansimons commented 3 years ago

I'm running the video looper on a 7" touchscreen, and the video is squished on the top and bottom only during playback. I am running mp4 files with the omxplayer option. Any tips on how to easily adjust the aspect ratio?

Thanks!

christiansievers commented 3 years ago

You don't say how your screen is connected but let's assume it's via HDMI. Omxplayer doesn't respect the video output settings you set in config.txt. Instead you’ll have to edit the line in /boot/video_looper.ini that starts with extra_args and add i.e. --win 40, 20, 704, 560 to position the video directly. See the Omxplayer docs for all options: https://github.com/popcornmix/omxplayer

Once you made changes, no need to restart the Pi, just do a sudo supervisorctl restart video_looper to see what’s different.

On 26. Nov 2020, at 02:21, amandansimons notifications@github.com wrote:

I'm running the video looper on a 7" touchscreen, and the video is squished on the top and bottom only during playback. I am running mp4 files with the omxplayer option. Any tips on how to easily adjust the aspect ratio?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/pi_video_looper/issues/109, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2KQ2BJMM5ELSOOBJP35TLSRWUQJANCNFSM4UDC4F5A.

ltdstudio commented 3 years ago

Dear Pi_video_looper creater, I hope you can add a command for every video play. add
--aspect-mode stretch

especially when I play 720X1280 Video on rotated 90° LCD.

tofuSCHNITZEL commented 3 years ago

you can add this setting to the omx player options in /boot/video_looper.ini