PAG官网 | PAG动效

PAG官网 | PAG动效

  • 首页
  • 产品
  • 功能
  • 文档
  • 案例
  • CN
  • GitHub
  • 论坛交流
  • 免费下载
  • Languages iconCN
    • EN

›导出插件

了解 PAG

  • Introduction
  • FAQs

快速开始

  • Install PAGViewer
  • Install PAGExporter
  • Export PAG Files
  • SDK Integration

导出插件

  • Use Configuration Panel
  • Use Exporting Panel
  • Export BMP Compositions
  • Config Fill Modes
  • Config Time Stretch Modes
  • Exporting Shortcut Keys
  • Error Code
  • Auto Detection Rules
  • Text Editing Rules
  • Add Text Background
  • Export Audio
  • Manually Install PAGExporter

预览工具

  • Preview Replacements
  • View File Structure
  • Preview Shortcut Keys
  • Export Image Sequence
  • File Encryption
  • Add Watermark
  • Upgrade to Beta Version

性能优化

  • Use Performance Panel
  • PAG File Optimization

移动端进阶

  • Common API Overview
  • Use PAGImageView
  • Video Replacement
  • Play Audio
  • Text Layer Description
  • Use Encripted File
  • Export To Video
  • SDK Authentication

Web 进阶

  • SDK Installation
  • Load PAG File
  • Play PAG File
  • Platform Capabilities
  • Use WebWorker

API 参考

  • API Document

视频教程

  • PAG Workflow
  • File Optimization Best Practices
  • Use PAGExporter Panel
  • PAG Online Q&A

资源下载

  • PAGViewer Installer
  • PAG Test Files
  • PAG Demo Projects
  • China LiveVideoStackCon2022
  • PAG Conversion Tool
  • PAG File Format Spec

TAVMedia

  • Introduction to TAVMedia
  • TAVMedia Quick access
  • Common API Overview

其他

  • From Lottie To PAG
  • PAG Dictionary

Config Time Stretch Modes


背景

由于 pag 文件的时长是固定的,在某些场景需要 pag 文件的时长能够动态变化,如占位图填充视频的场景,视频的长度是变化的,需要 pag 文件动态拉伸进行匹配。

当设置 PAG 的播放时长和 pag 文件时长不一致时,会应用时间伸缩。

时间伸缩 (TimeStretch) 设置

1. 打开导出面板: “文件”菜单 -> “导出” -> "PAG Panel...". 如下图:

2. 在导出面板中点击“设置”下的按钮,如下图:

3. 在设置面板中点击“时间伸缩”页,即可设置时间伸缩的相关参数,如下图:

伸缩模式:

  • none:不拉伸
  • scale:线性拉伸
  • repeat:重复
  • repeatinverted:倒序重复(播放到结尾后倒序播放)

伸缩区间:

  • 当模式为scale时有效,其它模式无效,一个pag文件仅能有一个拉伸区间

4. 点击“确认” 完成设置。

← Config Fill ModesExporting Shortcut Keys →
  • 背景
  • 时间伸缩 (TimeStretch) 设置
    • 1. 打开导出面板: “文件”菜单 -> “导出” -> "PAG Panel...". 如下图:
    • 2. 在导出面板中点击“设置”下的按钮,如下图:
    • 3. 在设置面板中点击“时间伸缩”页,即可设置时间伸缩的相关参数,如下图:
    • 4. 点击“确认” 完成设置。
Address: Tencent Binhai Building, No. 33 Haitian Second Road, Nanshan District, Shenzhen, Guangdong Province, China.
TEL: 0755-86013388
QQ Group: 893379574
Copyright © 2018 - 2025 Tencent. All Rights Reserved.
Privacy Policy
公司地址:广东省深圳市南山区海天二路33号腾讯滨海大厦
联系电话:0755-86013388
QQ群:893379574
Copyright © 2018 - 2025 Tencent. All Rights Reserved.
隐私政策
Copyright © 2018 - 2025 Tencent. All Rights Reserved.
Address: Tencent Binhai Building, No. 33 Haitian Second Road, Nanshan District, Shenzhen, Guangdong Province, China.
TEL: 0755-86013388
QQ Group: 893379574
Privacy Policy
Copyright © 2018 - 2025 Tencent. All Rights Reserved.
公司地址:广东省深圳市南山区海天二路33号腾讯滨海大厦
联系电话:0755-86013388
QQ群:893379574
隐私政策