Opened 4 years ago

Last modified 4 years ago

#5959 open enhancement

aspect ratio change not working with libx265 (works with libx264)

Reported by: te36 Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: libx265
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no


Summary of the bug:
files encoded with libx264 support aspect ratio change during the clip. With libx265 this is not the case. It is not clear to me if this is a libx265 issue or an ffmpeg issue.

How to reproduce:
ffmpeg, ffplay from ffmpeg-git

encode example MPEG2 clip which changes AR from 4:3 to 16:9 (PAL, non-square pixel).

ffmpeg -i ar-change.mpg -vcodec libx264 ar-change-h264.ts
ffmpeg -i ar-change.mpg -vcodec libx265 ar-change-h265.ts

Display with ffplay
ffplay ar-change.mpg
ffplay ar-change-h264.ts
ffplay ar-change-h265.ts

mpg/h264 will show AR change, h265 not.

no external player (kodi, mplayer, vlc) show AR change, so i assume its an ffmpeg/avcodec issue (or libx265), but not an ffplay issue.

Attachments (1)

ar-change.mpg (2.2 MB) - added by te36 4 years ago.
MPEG2 file with aspect ratio change 4:3 to 16:9 for testing

Change History (4)

Changed 4 years ago by te36

MPEG2 file with aspect ratio change 4:3 to 16:9 for testing

comment:1 Changed 4 years ago by cehoyos

  • Keywords libx265 added
  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open

For future tickets: Please remember to always test current FFmpeg and provide the tested command line together with the complete, uncut console output to make tickets valid.

comment:2 Changed 4 years ago by keynet

  • Priority changed from wish to normal

I can confirm this issue with git N-83006-g4c63910 and other recorded sources

I have raised the priority of this to 'normal' as a problem like this is blocking for x265 use with any TV recordings which regularly change aspect ratio mid-way through (e.g. commercials, trailers etc.

comment:3 Changed 4 years ago by cehoyos

  • Priority changed from normal to wish
  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.