Opened 7 years ago

Closed 6 years ago

#1883 closed defect (fixed)

ASF/WMV Source Aspect Ratio (X/Y) Reversed

Reported by: starkline Owned by:
Priority: important Component: avformat
Version: git-master Keywords: asf aspect regression
Cc: Holger Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

I've noticed this bug only when using ffplay/ffmpeg to decode WMV3 video. I believe ffmpeg is reversing the X and Y values for SAR or PAR, resulting in the wrong DAR.

Regression introduced at ffmpeg-20120914-git-8bdba0b. Earlier builds handle DAR/SAR properly.

To reproduce find an ASF that has a pixel aspect ratio of, for instance, 4x3, but which requires a display aspect ratio of 16x9 to view properly. If the source aspect ratio is set to 4x3, then the DAR would display correctly at 16x9. However, under current build the DAR is getting set to 1:1.

Change History (13)

comment:1 Changed 7 years ago by starkline

  • Component changed from undetermined to FFplay

comment:2 Changed 7 years ago by cehoyos

  • Component changed from FFplay to avformat
  • Keywords asf added; SAR DAR Aspect Ratio removed
  • Priority changed from normal to important
  • Version changed from unspecified to git-master

Please provide a sample and a command line that allows to reproduce the problem together with complete, uncut console output.

Changed 7 years ago by starkline

comment:3 Changed 7 years ago by starkline

I've attached logs for ffplay and ffprobe for "sample-1.wmv"
Hopefully, that provides all of the requested information.

comment:4 Changed 7 years ago by michael

  • Keywords aspect added
  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed

will be fixed in my next git push

comment:5 Changed 7 years ago by cehoyos

  • Keywords regression added

comment:6 follow-up: Changed 6 years ago by Holger

  • Resolution fixed deleted
  • Status changed from closed to reopened

1080HdvNtscWrongAspectRatio.wmv:
Is displayed in WMP as 16:9
but in FFmpeg as 4:3

FFmpeg from 2013-07-03

Sample Video:
https://www.dropbox.com/s/dmqsblqw2nmlq3x/1080HdvNtscWrongAspectRatio.wmv

comment:7 in reply to: ↑ 6 Changed 6 years ago by cehoyos

  • Cc Holger added
  • Resolution set to fixed
  • Status changed from reopened to closed

Replying to Holger:

1080HdvNtscWrongAspectRatio.wmv:
Is displayed in WMP as 16:9
but in FFmpeg as 4:3

Generally, please reopen "fixed" tickets only if the original issue was not fixed, ie if the problem as originally described (with the original sample) was not fixed. This is of course not a strict rule, but it is useful as a general guideline. Even more so for tickets that were fixed more than six months ago.
(The original sample is detected as 16:9 with current FFmpeg.)

For the specific case you mentioned: It works fine here, if you get 4:3 output please open a new ticket providing your command line (no external libraries if possible) together with the complete, uncut console output.

Changed 4 years ago by cehoyos

Note: See TracTickets for help on using tickets.