Opened 11 years ago

Closed 3 years ago

#2631 closed enhancement (wontfix)

fade filter offset from the end of stream

Reported by: burek Owned by:
Priority: wish Component: avfilter
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The fade filter example shows how to fade out last 45 frames of a video:

Fade out last 45 frames of a 200-frame video:
fade=out:155:45

where 155 is a starting frame and 55 is the number of frames that the filter should be applied to.

It might be more convenient if users could specify just the number of frames to fade out, together with some kind of a constant (or -1) for the starting frame, to avoid the need to know the exact frame number before setting the filter's parameters, like this:

Fade out last 45 frames of an unknown-frame-count video:
fade=out:-1:45

It would make filter to be applied to the last 45 frames of the video.

Change History (5)

comment:1 by Elon Musk, 11 years ago

Component: undeterminedavfilter
Status: newopen
Version: unspecifiedgit-master

comment:2 by richardacre, 11 years ago

Suggest a more flexible approach would be to allow a negative start-frame to count back from the end but also allow the second parameter to be omitted to also signify "from here until the end" ... so that in the 200 frame video example (above) the following would all have the same effect:

fade=out:155:45
fade=out:-45:45
fade=out:155
fade=out:-45

Same timekeeping could also apply to any filter (e.g. show a watermark for final X frames and audio fades)

This would certainly help me, as I am currently tasked with watermarking and processing several dozen videos and would love to be able to automate all of it in one simple script, rather than having to determine the length of each clip and then tailor the parameters individually!

comment:3 by Carl Eugen Hoyos, 11 years ago

Most developers on irc seem to have a agreed that such a "queue" feature should not be implemented due to memory (security?) concerns.

comment:4 by burek, 11 years ago

I suggested the implementation of a new feature here: https://ffmpeg.org/trac/ffmpeg/ticket/2789

That might help implementing this feature, as well as other usable features that ffmpeg can't easily implement right now, because of the 1-pass processing logic.

comment:5 by Elon Musk, 3 years ago

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