xuggle-frames-to-video (xftv) - turn a stream of frame+timestamp into a video - useful for webrtc
Clojure Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_scripts
bin
src/xuggle_frames_to_video
.gitignore
README.md
project.clj

README.md

File        : README.md
Maintainer  : Felix C. Stegerman <flx@obfusk.net>
Date        : 2013-04-21

Copyright   : Copyright (C) 2013  Felix C. Stegerman
Version     : 0.0.2-SNAPSHOT

TODO

  • look at use of reflection?!

Description

xuggle-frames-to-video (xftv) - turn a stream of frame+timestamp into a video - useful for webrtc

xftv takes output-file, width, height, and fps arguments on the command line; then it reads pairs of file names and timestamps from STDIN and uses these to create a video.

NB: timestamps are relative to the beginning of the video and in nanoseconds; the output file's extension is used to determine the appropriate video codec.

See http://www.xuggle.com.

Usage

Build

$ lein uberjar
$ export XFTVJ=/path/to/xftv-standalone.jar

Run

$ java -jar "$XFTVJ" <out-file> <width> <height> <fps>
/path/to/first/image
<first-image-timestamp>
/path/to/second/image
<second-image-timestamp>
...
^D

License

GPLv3 [1].

References

[1] GNU General Public License, version 3 --- http://www.opensource.org/licenses/GPL-3.0