Skip to content

MadisonAster/VideoShuffle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Shuffle

This is an automatic video clip player that plays through videos provided to it in an array. The main purpose is for demo reels, keep it funky fresh by simply adding new clips to a designated folder.

View demo

Transitions

The starting point for this code, and the video transition behavior is all from the code this library is originally forked from here

Get started in 5 steps:

  1. Prepare your media, all video files should be mp4 format, and have a jpg thumbnail with the same name. All audio files should be mp3. Place them in ./_Assets/VSVideo and ./_Assets/VSAudio

  2. Run DemoReelIngest.py (dependent on ffmpeg) or create your own backend script to load filenames and durations. (Javascript can't get video durations until after videos load, we need the durations ahead of time for buffering)

  3. simply add the following lines from the example files:

    <script type='text/javascript' src='./_js/Seriously.js/seriously.js'></script> <script type='text/javascript' src='./_js/Seriously.js/effects/seriously.directionblur.js'></script> <script type='text/javascript' src='./_js/Seriously.js/effects/seriously.blend.js'></script> <script type='text/javascript' src='./_js/Seriously.js/effects/seriously.tvglitch.js'></script> <script type='text/javascript' src='./_js/Seriously.js/effects/seriously.linear-transfer.js'></script> <script type='text/javascript' src='./_js/Seriously.js/effects/seriously.blur.js'></script> <script type='text/javascript' src='./_js/Seriously.js/effects/seriously.exposure.js'></script> <script type='text/javascript' src='./_js/VideoShuffle.js'></script> <script type='text/javascript' src='./_js/VSAudio.js'></script> <script type='text/javascript' src='./_js/VSVideo.js'></script>
  4. Create a div with 'VideoShuffleWrapper' as the id:

  5. Initialize the library in your html, or in your onload functions

    <script> ShufflePlayer(vSources, aSources, vSourceDurations, aSourceDurations, false, true, false); </script>

Bonus points: Set up a cron job for the python script, periodically add clips to it, and enjoy never having to edit a demo reel again!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.6%
  • Python 8.7%
  • CSS 2.5%
  • HTML 1.2%