| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

Slideshow Sync

Page history last edited by Ned Resnikoff 10 years, 1 month ago

Slideshow Synchronization

 

Ned Resnikoff

 

Description

synchronize a slideshow to a soundtrack, using EchoNest API to find beats.

 

Example

 

video: my excellent day in Provincetown (0:48)

 

The number of slides is the same as the number of beats, so it's a check-up on the EchoNest beat finder.  Near the end is pretty good.  Not their fault; this is a homemade recording.

 

Procedure:

 

1. Run slideshow.pl (a perl program, code & sample output below) to upload audio to EchoNest.

2. Run slideshow.pl (again, with same args) to download beat data.

3. Launch QuickTime7; File>Read Image Sequence @ 24/sec; add soundtrack & save

 

Tools, Platforms and APIs Used

Perl

The Echo Nest API

QuickTime 7

 

Sample Output

 

Sample output of terminal session.  The first run uploads an audio file to EchoNest.  When their analysis is ready, the next run will download the data and prepare the frames for the slideshow/movie.  

 

If the EchoNest analysis has been previously downloaded, the program will use the local copy.

 

>bin/slideshow.pl

----------------------------------------------------------

USAGE:

 slideshow.pl <pixdir> <audiofile> <framedir = ~/Movies/_frames/>

 

Arranges slideshow timed to soundtrack, using EchoNet API to find

beats. An image sequence is prepared to be read in as movie.

 

----------------------------------------------------------

 

 

>bin/slideshow.pl mhd/images/ mhd/soundtrack.mp3 

 

Uploading file..

..md5 hash written to /Users/ned/mhd/soundtrack.md5

 

otter:~>bin/slideshow.pl mhd/images/ mhd/soundtrack.mp3  

Analysis not ready at ./slideshow.pl line 144.

 

>

>

>

>bin/slideshow.pl mhd/images/ mhd/soundtrack.mp3  

Found 56 image files.

L(7); L(13); L(17,18); L(24,25); 

Finished; read frames in at FRAMERATE=24/sec

 

 

Code

 

slideshow.pl


   

Comments (0)

You don't have permission to comment on this page.