FFmpeg Document 33-timeline editing

Source: Internet
Author: User

33 Time Line editing

Some filters support the general enable options. For filters that support timeline editing, this option can be set to an expression that determines whether the frame is sent to the filter by evaluating the previous situation. If the expression evaluates to a value other than 0, the filter is used or the filter is skipped (that is, the frame is sent directly to the next filter in the filter chain)

The following values can appear in an expression:

  • ' t '

    Timestamp, per second. If the input timestamp is unknownNAN

  • N

    Enter the ordinal of the frame, counting from 0

  • ' POS '

    Enter the offset position of the frame in the file, if unknownNAN

  • ' W '

  • ' H '

    Video input frame width and height

In addition, these filter enable option States can also be used for expressions.

Similar to other options, this enable option has the same rules.

For example, to allow a blur (blur) filter () in 10 seconds to 3 minutes smartblur , and then curves the filter after 3 seconds:

smartblur = enable=‘between(t,10,3*60)‘,curves    = enable=‘gte(t,3)‘ : preset=cross_process

FFmpeg Document 33-timeline editing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.