GithubHelp home page GithubHelp logo

3to1's Introduction

3to1

How to merge 3 kinds of sources (*.swf, *.grf, *.xml) to 1 video

Python Version

  • 3.6.9

Supported and Tested Platforms

  • macOS(Original Development Environment)

  • Windows

Preview

  • original

original.jpg

  • running

doc/running.jpg

doc/demo.png

  • processed

doc/processed.jpg

Usage

  • Help
python bin/cli.py
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  addannotation  Add annotation to mp4 file
  chat2mp4       Convert chat xml file to mp4 file
  final          3to1, merge 3 mp4 files to one mp4 file
  grf2mp4        Covert grf to mp4
  mergemp4s      Merge mp4 files to ONE mp4 file
  png2mp4        Convert png to mp4
  pngs2mp4s      Convert pngs to mp4s
  record2mp4s    Convert grfs in record.xml to mp4s
  record2pngs    Convert swfs in record.xml to pngs
  swf2png        Convert swf to png
  • Demo
python bin/cli.py record2pngs -r src/data/xml/record.xml -s src/data/live/
python bin/cli.py pngs2mp4s -r src/data/xml/record.xml -p src/data/live/
python bin/cli.py record2mp4s -r src/data/xml/record.xml -g src/data/live/
python bin/cli.py chat2mp4 -c src/data/xml/chat.xml
python bin/cli.py mergemp4s -r src/data/xml/record.xml -m src/data/live/ -o src/data/live/swf.mp4 --source swf
python bin/cli.py mergemp4s -r src/data/xml/record.xml -m src/data/live/ -o src/data/live/grf.mp4 --source grf
python bin/cli.py addannotation -m src/data/live/swf.mp4 -a src/data/xml/anno.xml --resize
python bin/cli.py final -s src/data/live/swf_anno.mp4 -g src/data/live/grf.mp4 -c src/data/xml/chat.mp4 -o src/data/live/final.mp4

Design

doc/design.jpg

Routine map

  • swf2png

selenium

  • grf2mp4

ffmpeg

  • png2mp4

ffmpeg

  • chat2mp4

moviepy

FFMPEG_VideoWriter

Tips

  • ffmpeg location on macOS

~/Library/Application Support/imageio/ffmpeg/ffmpeg-osx-v3.2.4

  • http.server root path

src/

Download URLs

version 4.2.1

  • macOS

https://evermeet.cx/ffmpeg/

  • windows

https://ffmpeg.zeranoe.com/builds/

QA

  • Data

Sorry, I can not publicize it.

If needed, you can touch me by email, [email protected].

3to1's People

Contributors

luffy-yu avatar

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.