Video decoder detects wrong pixel aspect ratio

Open
#507 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale

Research direction

Start by examining the uploaded aspect.mkv sample and comparing the ffmpeg stream metadata with omxplayer's reported 64/27 pixel aspect ratio. Trace the Raspberry Pi video decoder path responsible for the PortSettingsChanged output; done would require identifying the cause and defining a verified correction or explanation.

Written by the indexing model from the issue text.

Description

I have some SD-MPEG2 streams with 16.9 aspect ratio. VLC plays them fine and ffmpeg reports correct dimensions:

Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 8500 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)

However, omxplayer detects a curious pixel aspect ratio of 64/27 and thus shrinks the video vertically:

V:PortSettingsChanged: 720x576@25.00 interlace:3 deinterlace:1 anaglyph:0 par:2.37 layer:0 alpha:255

Do you have an explanation for this? I've uploaded a sample here: www.reufer.ch/temp/aspect.mkv

Dominant language
No language data
Stars
5.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/firmware

All issues in raspberrypi/firmware

Similar issues

More Audio/Video & RTC issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.