omxplayer icon indicating copy to clipboard operation
omxplayer copied to clipboard

aspect mode distortion with Raspberry Pi 4

Open foocp opened this issue 5 years ago • 8 comments

Using a Raspberry Pi 4, with the latest 2019-07-10-raspbian-buster-lite, omxplayer distorts videos to always fill the entire space of the screen. Normal behavior would be to display black bars around the video if the aspect ratio doesn't match.

The same SD card when booted on a Raspberry Pi 3b+ doesn't do that.

Manually adding --aspect-mode letterbox doesn't help.

I've tried various screens, using both HDMI-to-HDMI cables as well as HDMI-to-DVI cables (when using a desktop screen that only has DVI input). This is the result of /opt/vc/bin/tvservice -s, which fits the hardware specs, so apparently it's correctly identifying the screen: state 0x6 [DVI CUSTOM RGB full unknown AR], 1920x1200 @ 60.00Hz, progressive

Running sudo apt show omxplayer tells me I'm running the current version: 20190723+gitf543a0d-1

Any ideas? Thanks!

foocp avatar Sep 11 '19 10:09 foocp

I can confirm that. It also does not help if you specify the hdmi output with --display=2 or --display=7. also happens on both hdmi outputs.

tofuSCHNITZEL avatar Sep 11 '19 18:09 tofuSCHNITZEL

Just tried and omxplayer is behaving as expected with black bars when video is either taller or wider than display's aspect ratio.

Report output of:

vcgencmd version
uname -a
omxplayer -v

and contents of config.txt and mediainfo of a file with the issue.

popcornmix avatar Sep 12 '19 12:09 popcornmix

vcgencmd version:

Aug 15 2019 12:03:51
Copyright (c) 2012 Broadcom
version 9f8431fb7839c7f00f52b81f5822ddab2b31d0db (clean) (release) (start)

uname -a Linux raspberrypi 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux

omxplayer -v:

omxplayer - Commandline multimedia player for the Raspberry Pi
        Build date: Thu, 01 Aug 2019 12:50:43 +0000
        Version   : f543a0d [master]
        Repository: https://github.com/popcornmix/omxplayer.git

mediainfo:

Input #0, matroska,webm, from 'testfile.mkv':
  Metadata:
    encoder         : libebml v1.0.0 + libmatroska v1.0.0
    creation_time   : 2012-12-04T10:51:29.000000Z
  Duration: 00:43:36.16, start: 0.000000, bitrate: 5150 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)
    Metadata:
      title           : 
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      title           : Dolby Digital 5.1 @ 384 kbps

config.txt: (vanilla rpi4 - I removed commented lines)

dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

tofuSCHNITZEL avatar Sep 12 '19 17:09 tofuSCHNITZEL

removing

dtoverlay=vc4-fkms-v3d

from config.txt

fixed the issue

tofuSCHNITZEL avatar Sep 12 '19 17:09 tofuSCHNITZEL

@tofuSCHNITZEL and your "tvservice -s" output?

popcornmix avatar Sep 12 '19 20:09 popcornmix

@tofuSCHNITZEL and your "tvservice -s" output?

state 0x6 [DVI CUSTOM RGB full unknown AR], 1680x1050 @ 60.00Hz, progressive

its the only non 16:9 display I have

tofuSCHNITZEL avatar Sep 13 '19 07:09 tofuSCHNITZEL

Commenting out the line @tofuSCHNITZEL mentioned resolved my problem with distortion as well.

boy412 avatar Dec 15 '19 23:12 boy412

For me the problem is associated with having a Pi4 with official touchscreen and one HDMI monitor

The HDMI monitor is 1920*1080 16:9

I am playing suits-short.mkv, the video that was used to develop subtitles for omxplayer It is 1276*720 = 15.95:9

With the touchscreen disabled (ignore_lcd= 1 in config.txt) all is OK omxplayer --display 2 suits-short.mkv fills the screen omxplayer -- display 2 --aspect-mode letterbox suits-short.mkv fills the screen as it should do since aspect ratios are the same for video and display (well nearly!)

With the touchscreen enabled there are big black bars at top and bottom of screen omxplayer --display 2 suits-short.mkv - black bars omxplayer -- display 2 --aspect-mode letterbox suits-short.mkv - black bars, should definitely fill the screen in letterbox omxplayer -- display 2 --aspect-mode fill suits-short.mkv fills the screen as expected

Pi3 with a single HDMI display has always been full screen for omxplayer --display 2 suits-short.mkv

copied to #688 which better fits the symptoms

KenT2 avatar Mar 10 '20 15:03 KenT2