[FFmpeg-trac] #6276(avcodec:new): h264_vaapi & nvenc do not preserve aspect ratio changes

FFmpeg trac at avcodec.org
Sun Nov 17 15:48:37 EET 2019


#6276: h264_vaapi & nvenc do not preserve aspect ratio changes
-------------------------------------+-------------------------------------
             Reporter:  Tom_B        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  vaapi nvenc  |               Blocked By:
  aspect                             |
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by tvsht):

 Replying to [comment:12 fulinjie]:
 > Hi yurtesen/Carl,
 >
 > This patch helps to preserve the aspect ratio changes for VAAPI:
 > https://patchwork.ffmpeg.org/patch/16245/
 >
 > Would you please help to verify?
 >
 >
 > BTW, similar issue existed in QSV. It could be addressed next.
 > {{{
 > ffmpeg -hwaccel vaapi -i 80_aspect_ratio_change_cut.h264 -y -g 30 -c:v
 h264_qsv -qp 20 -sn qsv.ts
 > }}}
 >

 Patched it and it still ends mangled [amdgpu]

 sample file: [40MB]
 https://send.firefox.com/download/c48ebf7304f8a60f/#i5ZJ3Zdz1rjnz8lBxgjeaQ
 end result: [27MB]
 https://send.firefox.com/download/42933b87d649abee/#2CJQHnxFiF6FV8F1PnHsIw

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6276#comment:13>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list