JuliusCode / MP4MUSEUM

MP4MUSEUM.org Media Player
GNU General Public License v3.0
32 stars 8 forks source link

Waveshare 5" circular display - working config #35

Closed nickteeple closed 11 months ago

nickteeple commented 11 months ago

Hello, noting this down in case it helps others.

I had a lot of trouble getting the 5" circular waveshare display working: https://www.waveshare.com/wiki/5inch_1080x1080_LCD

When I tested on RP v1.1, the screen worked fine, but the video stuttered.

I upgraded to a RP 4b and couldn't get anything to show up on the display at all.

Working /boot/config.txt based on waveshare's supplied settings

hdmi_group=2
hdmi_mode=87
hdmi_pixel_freq_limit=356000000
hdmi_timings=1080 0 68 32 100 1080 0 12 4 16 0 0 0 60 0 85500000 0
[pi4]
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
pi@mp4museum:~ $ tvservice -s
state 0xa [HDMI DMT (87) RGB full unknown AR], 1080x1080 @ 60.00Hz, progressive
pi@mp4museum:~ $ fbset

mode "1080x1080"
    geometry 1080 1080 1080 1080 16
    timings 0 0 0 0 0 0 0
    accel true
    rgba 5/11,6/5,5/0,0/0
endmode

Plug in the HDMI port closest to the usb-c power port. If you use the included HDMI adapter, you need to plug in the adapter before screwing the board down. Enjoy :)

Working handbrake settings were your config, but switched back to H264: https://mp4museum.org/wp-content/uploads/2021/05/Raspi-4k.json_.zip

Note the below resolution is based on auto-cropping, 1080x1080 should work fine too.

image image

JuliusCode commented 11 months ago

Dear Nick, many thanks for sharing this! Cheers, Julius

nickteeple commented 11 months ago

FYI for lower-powered Raspberry Pis like the Zero, it seems easy to avoid the stuttering issue at the end of the loop if you just set keyframe interval to 1 keyint=1

image

This was the highest quality I could find on the Pi Zero W while getting the gap between loops to be functionally imperceptible

image