Issue 77 in echo-nest-remix: vreverse.py example fails

18 views
Skip to first unread message

echo-ne...@googlecode.com

unread,
Oct 6, 2011, 1:05:58 AM10/6/11
to remi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 77 by jacobmo...@jacobmoore.co.cc: vreverse.py example fails
http://code.google.com/p/echo-nest-remix/issues/detail?id=77

What steps will reproduce the problem?
1. cd to location where both vreverse.py and the video to reverse are
located.
2. type python vreverse.py beats infilehere.mp4 outfilehere.mp4

What is the expected output? What do you see instead?
It should work, producing a video file that is reversed. However, I get an
error about unsupported operand types (full output in the additional info
section below).

What version of the product are you using? On what operating system?
I have the latest echo-nest-remix installed (The Echo Nest Remix
API-1.4-py2.6-macosx10.6.mpkg.zip), with python 2.7.1. I am using OSX Lion
(10.7.1).

Please provide any additional information below.
Other scripts like the swinger.py and summary.py scripts work fine.

Full Error output:

*********************************************************************************************************
Jacob-Moores-MacBook-Pro:Siberia Jacob$ python vreverse.py beats Toes\
video.mp4 Rev_Toes.mp4
en-ffmpeg -y -i "Toes video.mp4"
/var/folders/1p/ngp30_994wq320p5n0hd99m40000gn/T/tmpfRbrjK.mp3
en-ffmpeg
-i "/var/folders/1p/ngp30_994wq320p5n0hd99m40000gn/T/tmpfRbrjK.mp3"
en-ffmpeg -y
-i "/var/folders/1p/ngp30_994wq320p5n0hd99m40000gn/T/tmpfRbrjK.mp3" -ac 2
-ar 44100 "/var/folders/1p/ngp30_994wq320p5n0hd99m40000gn/T/tmpzBMwaL.wav"
Computed MD5 of file is a4d626fdad78251993133dbb9a760eb7
Probing for existing analysis
Analysis not found. Uploading...
en-ffmpeg -i Toes video.mp4 -an -sameq
/var/folders/1p/ngp30_994wq320p5n0hd99m40000gn/T/tmpwCQYx_/frame-%06d.jpeg
Traceback (most recent call last):
File "vreverse.py", line 48, in <module>
main(toReverse, inputFilename, outputFilename)
File "vreverse.py", line 34, in main
out = video.getpieces(av, chunks)
File "/Library/Python/2.7/site-packages/echonest/video.py", line 257, in
getpieces
newv += video.video[s]
File "/Library/Python/2.7/site-packages/echonest/video.py", line 47, in
__getitem__
return self.getslice(index)
File "/Library/Python/2.7/site-packages/echonest/video.py", line 54, in
getslice
index = slice(int(index.start*self.settings.fps),
int(index.stop*self.settings.fps), index.step)
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'
******************************************************************************************************


Reply all
Reply to author
Forward
0 new messages