GithubHelp home page GithubHelp logo

ffpmeg-gl's Introduction

Ffmpeg with built in GL transitions

Based on these two projects:

Examples

# Concate 3 source files using fancy GLX tranitions
# between each one.  Intro and Outr have no sound.
#
docker run --rm \
  --volume "$PWD":/video \
  --workdir /video \
  soodesune/ffmpeg:gl \
    -i intro.mp4 -i main.mp4 -i outro.mp4 \
    -filter_complex " \
      [0:v]split[v000][v010]; \
      [1:v]split[v100][v110]; \
      [2:v]split[v200][v210]; \
      [v000]trim=0:2[v001]; \
      [v010]trim=2:3[v011t]; \
      [v011t]setpts=PTS-STARTPTS[v011]; \
      [v100]trim=0:123[v101]; \
      [v110]trim=123:124[v111t]; \
      [v111t]setpts=PTS-STARTPTS[v111]; \
      [v200]trim=0:4[v201]; \
      [v210]trim=4:5[v211t]; \
      [v211t]setpts=PTS-STARTPTS[v211]; \
      [v011][v101]gltransition=duration=1:source=/filters/crosswarp.glsl[vt0]; \
      [v111][v201]gltransition=duration=1[vt1]; \
      [v001][vt0][vt1][v211]concat=n=4[outv]; \
      [outv]subtitles=subtitle.srt[outs]; \
      [0:a]atrim=duration=2[a0]; \
      [a0][1:a][2:a]concat=n=3:v=0:a=1[outa]" \
    -map "[outs]" -map "[outa]" \
    -pix_fmt yuv420p \
    -y -f mpegts out.mp4

SPLIT: https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs TRIM: https://ffmpeg.org/ffmpeg-filters.html#trim SETPTS: https://ffmpeg.org/ffmpeg-filters.html#setpts_002c-asetpts

Available transitions

  • crosswarp

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.