Opened 3 years ago

Closed 3 years ago

#10492 closed defect (fixed)

scale_vt does not seems to work correctly

Reported by: Paul Pacifico Owned by: quinkblack
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Paul Pacifico)

I've just compiled the latest git version of FFmpeg to use the scale_vt filter.

When using:

ffmpeg -hwaccel videotoolbox -hwaccel_output_format videotoolbox_vld -i input.mov -c:v hevc_videotoolbox -b:v 5M 
-vf scale_vt=640:360 -an -tag:v hvc1 ouput.mp4

It does not scale the output.

But if I add hwdownload,format=nv12:

ffmpeg -hwaccel videotoolbox -hwaccel_output_format videotoolbox_vld -i input.mov -c:v hevc_videotoolbox -b:v 5M 
-vf scale_vt=640:360,hwdownload,format=nv12 -an -tag:v hvc1 ouput.mp4

The image is cropped to a 640x360 scale.

I've tried using various input files (8bit or 10bit) same result.

Tested on a Mac Mini M1.

Change History (5)

comment:1 by Paul Pacifico, 3 years ago

Description: modified (diff)

comment:2 by Paul Pacifico, 3 years ago

Description: modified (diff)

comment:3 by quinkblack, 3 years ago

Owner: set to quinkblack
Status: new → open

Should be fixed by

​https://patchwork.ffmpeg.org/project/ffmpeg/patch/tencent_FF0BCD87CF8C5516A703B8E71647CD7D2007@qq.com/

Could you test current master and report the results?

comment:4 by Paul Pacifico, 3 years ago

It works great now, thanks!

comment:5 by quinkblack, 3 years ago

Resolution: → fixed
Status: open → closed
Note: See TracTickets for help on using tickets.