Opened 18 years ago
Closed 18 years ago
#462 closed enhancement (fixed)
PiP aspect ratio improvement
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | trivial | Milestone: | 0.20 |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
The attached patch should ensure the aspect ratio of the PiP video source is respected. It calculates the pip height as a % of the main source (set at 26%, consistent with current code) and scales the width appropriately. A marginal increase in overhead per frame processed but it does dynamically adjust the pip size as the aspect ratio changes (quite common on certain UK dvb-t channels).
It also backs out changeset:7080 which is no longer required.
I've not touched videoout_ivtv (as I cannot test it) but see no reason why the changes should not work there too.
Attachments (3)
Change History (15)
Changed 18 years ago by
Attachment: | pipaspect.diff added |
---|
comment:1 Changed 18 years ago by
Milestone: | → 0.19 |
---|---|
Owner: | changed from Isaac Richards to danielk |
Status: | new → assigned |
comment:2 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 18 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I have DVB images that 720x576 with a 16:9 aspect ratio. If you have aspect override off, on a 4:3 display you get the main video window with black bars top and bottom, which is fine. But the PiP window is stretched horizontally.
changeset:7560 has no effect on this.
comment:4 Changed 18 years ago by
"But the PiP window is stretched horizontally."
As it should be?
Anonymous, please provide a photograph of the screen along with a log from "mythfrontend -v playback".
comment:5 Changed 18 years ago by
Milestone: | 0.19 → 0.20 |
---|---|
Priority: | minor → trivial |
Type: | patch → enhancement |
comment:6 Changed 18 years ago by
But if you have the same image in both the main video window and the PiP windows, shouldn't the aspect of both windows be the same regardless of the display dimension ?
See new attachments as asked for.
Changed 18 years ago by
Attachment: | PiPScreenShot.jpg added |
---|
Screenshot with PiP in Top-Right corner.
comment:7 Changed 18 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Here is your problem... VideoOutputXv?: Estimated display dimensions: 260x195 mm Aspect: 1.33333 VideoOutputXv?: Estimated window dimensions: 260x195 mm Aspect: 1.33333
Probably due to displaying on a 4:3 monitor. You need to set the DisplaySize? in the "Monitor" section of your xorg.conf something like "DisplaySize? 521 324 # in millimeters"
You could also use MythTV's XRandR config to set the display aspect ratio if using a single monitor (assuming you have XRandR), or use MythTV's Xinerama config to set the display aspect ratio if using Xinerama.
comment:8 Changed 18 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
When I set the DisplaySize? to 521x324 mm, Myth's main video window aspect is wrong, because the 16:9 DVB image is being stretched vertically, to fill my 4:3 display. Whereas previously, the 16:9 DVB image was displayed with black bars top and bottom on my 4:3 display and in the correct aspect.
Also, changing the DisplaySize? does not fix the PiP aspect.
Any other suggestions ?
comment:9 Changed 18 years ago by
Hmm, I missdiagnosed this.
I thought you had set up your monitor to display a 16:9 image.
It looks like the PiP is not compensating for the stretching properly.
What is the resolution of the video it is displaying?
comment:11 Changed 18 years ago by
Hmm, I think this might be easy enough to fix...
We adjust for letterboxing, we adjust for non-square pixels on the screen, but we I don't think we are adjusting for non-square pixels in the video in the PiP window...
comment:12 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
I'll have a look at this today.