Code Monkey home page Code Monkey logo

product_svg2video's Introduction

方案

SVG2IMG

win2d

  • 方案
    • 解析 SVG 的 XML 结构
    • 调用 API 进行渲染
    • 动画支持,实现很帧动画的渲染、截屏
  • 结果
    • 官方示例 无法跑通
  • 可能性
    • 仅支持 Windows,转服务较难
    • 完全解析 SVG 并进行可能的层级解析,需要较大学习成本

htmlunit+ batik

  • 方案
    • 尝试使用浏览器进行 SVG 播放,减少渲染实现成本
  • 结果
    • 最新 2.31 版本 无法正常解析 网页
  • 可能性
    • SVG及其动画的支持适配上,Chrome 上可以的 SVG 在 Safari 上无法正常播放、运动
    • Htmlunit 需要及时赶上浏览器的更新进度,可能性不大

IMG2Video

  • ffmpeg
    • 方案
      • 合并图片(以数值序列递增)、音频为视频
    • 结果
      以每秒25帧的频率展示图片,以将0到3秒区间音频,合并成为视频
      ffmpeg \
          [-framerate 6] -i <imgs|img/%d.png> \ 
          [-ss 0 -t 3] -i <audio> \
          -y <video>
      
    • 预期问题
      • 可能针对特定的图片、音频格式,需要进行相关编码指定

参考

HtmlUnit

Win2D

SVG

UWP

FFMPEG

官网

参考

补充

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.