Opened 7 months ago

Closed 3 months ago

#10621 closed defect (fixed)

tpad is always/only green

Reported by: Alex Owned by: ePirat
Priority: normal Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

tpad color is green, both default and when color=black
How to reproduce:

ffmpeg.exe -i Test.mkv -c:v libx265 -pix_fmt yuv420p10le -crf 25 -preset ultrafast -filter_complex "[0:v]trim=end=1000ms,tpad=stop_duration=1000ms:color=black" Green-HEVC.mp4
ffmpeg version 2023-10-09-git-37b5f4a1f6-full_build-www.gyan.dev

windows 10.

tried encoding via AV1 & HEVC to mkv & mp4 and all tpad color is green.

Issue also discussed on superuser a few months ago, Gyan commented
"The regression happened on May 22, likely commit 86b252ea9d – Gyan Jun 18 at 4:12"
https://superuser.com/questions/1789626/when-using-ffmpeg-tpad-padding-frames-are-green

but I couldn't find a corresponding ticket here.

Attachments (1)

Green.zip (91.9 KB ) - added by Alex 7 months ago.
green tpad on encode

Download all attachments as: .zip

Change History (8)

by Alex, 7 months ago

Attachment: Green.zip added

green tpad on encode

comment:1 by Alex, 7 months ago

Component: undeterminedffmpeg
Summary: green tpadtpad is always/only green

in reply to:  description comment:2 by Alex, 7 months ago

discovered tpad's

stop=[frames]

still produces black correctly, so the green problem seems to be only

stop_duration

(start_duration is also okay).

FWIW, would still be helpful if stop_duration were fixed when possible.

Thanks,
Alex

comment:4 by ePirat, 6 months ago

You can work around the issue by specifying the start and/or stop option (depending which you need) with a dummy value like 1, while still specifying the start_duration and/or stop_duration, which will take precedence.

comment:5 by ePirat, 6 months ago

Analyzed by developer: set
Owner: set to ePirat
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:6 by Alex, 6 months ago

awesome, thanks.

comment:7 by Marton Balint, 3 months ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.