Re: Issue 22 in echo-nest-remix: EOFError on LocalAudioFile

84 views
Skip to first unread message

echo-ne...@googlecode.com

unread,
Mar 6, 2010, 3:03:08 PM3/6/10
to remi...@googlegroups.com

Comment #16 on issue 22 by robertwalker62: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

I have the same problem as listed here, and i'm running ubuntu linux.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

echo-ne...@googlecode.com

unread,
Mar 11, 2010, 1:33:00 PM3/11/10
to remi...@googlegroups.com

Comment #17 on issue 22 by benlacker: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

Weird that it's happening on linux.

Setting an environment variable looks like the best solution, and the one
recommended by the python temp file
handler. TMPDIR, TEMP or TMP all work; set it to something without spaces.

It's also possible to specify a dir when creating the tempfiles, something
like: tempfile.mkstemp('.wav',
dir='/Users/blacker/bltemp/'). But I'm wary of having Remix maintain its
own temp directory by default.
robertwalker, does the env var fix work for you?

echo-ne...@googlecode.com

unread,
Mar 14, 2010, 2:16:29 PM3/14/10
to remi...@googlegroups.com

Comment #18 on issue 22 by nick.pentreath: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

Hi, I am also running Ubuntu Karmic and have exactly the same issue
(getting EOFError).

When I run in terminal just this command:
ffmpeg -y -i "~/Music/8mile.mp3" -ac 2 -ar 44100 ~/temp/tmpfile.wav

then it does create a file (i.e without the "en-ffmpeg" command,
just "ffmpeg") that
is not zero bytes (so that seems to be working).

I am using "one.py" as an example script and the part up to checking the
analysis
works, it seems to be these calls to en-ffmpeg that are causing the error?

I already changed my TMPDIR to one in my home directory (I originally
thought it was
file permission issues but this doesn't seem to be the case - I still get
the same
error when running sudo).

echo-ne...@googlecode.com

unread,
Mar 22, 2010, 2:34:26 PM3/22/10
to remi...@googlegroups.com

Comment #19 on issue 22 by nick.pentreath: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

Hi for robertwalker62, I previously posted that I was having the same issue
on Ubuntu
Karmic. I fixed the EOF issue but have another.

I found that the error is being raised because ffmpeg was not actually
being called
properly (I previously posted about this), but I then realised I had
skipped this
step on install of the Remix SDK:

sudo ln -s `which ffmpeg` /usr/local/bin/en-ffmpeg

this adds en-ffmpeg to local/bin and now the code in "audio.py" which calls
the
command "en-ffmpeg" works.

I now get a proper temp .wav file when doing one.py (from the examples
directory) on
an .mp3 file.

BUT now my issue is the output.mp3 file is 0 bytes. I am not sure whether
this is an
ffmpeg encoding issue (most likely) or something in the python code? (I
changed
TMPDIR env variable to be in my home directory so there should be no funny
permission
stuff I think). Please could someone point me in the right direction?

(I also tried another script reverse.py but same issue). Thanks in advance!

--------
python one.py 8mile.mp3 output.mp3
Computed MD5 of file is a9ffb774afdbf7bf48ac0b866191a025
Probing for existing analysis
Analysis found. No upload needed.
en-ffmpeg -i "8mile.mp3"
en-ffmpeg -y -i "8mile.mp3" -ac 2 -ar 44100 ~/temp/tmp9W8e9L.wav
en-ffmpeg -y -i "~/temp/tmpDLrXoW.wav" -ab 128k 8mile1.mp3
Deleting: ~/temp/tmpDLrXoW.wav
-----------

echo-ne...@googlecode.com

unread,
Mar 22, 2010, 4:03:09 PM3/22/10
to remi...@googlegroups.com

Comment #20 on issue 22 by nick.pentreath: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

Update:
I tried this with .wav output file and it works. So it is ffmepg mp3
encoding.
Running ffmpeg directly on the output.wav file that I created results in:

------------
en-ffmpeg -y -i "output.wav" -ab 128k output.mp3

<<<skipping some stuff>>>

libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 13 2009 22:35:00, gcc: 4.4.1
Input #0, wav, from 'output.wav':
Duration: 00:01:28.63, bitrate: 1411 kb/s
Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Output #0, mp3, to 'output.mp3':
Stream #0.0: Audio: 0x0000, 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec for output stream #0.0
-------------

not sure if you can help me (is this a problem with my ffmpeg?) and sorry
if this has
become a bit off the original topic but any assistance would be
appreciated !

echo-ne...@googlecode.com

unread,
Mar 22, 2010, 4:46:08 PM3/22/10
to remi...@googlegroups.com

Comment #21 on issue 22 by nick.pentreath: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

Final Update (hope this helps anyone else who had the same problems as me):

I finally fixed this issue by installing an addition for ffmpeg under
Ubuntu Karmic
(from Synaptic package manager but you could use apt-get command too):

libavcodec-extra-52

(as opposed to libavcodec52 which was installed when i just installed
ffmpeg from
Synaptic).

Everything works perfectly now.

echo-ne...@googlecode.com

unread,
Jun 23, 2010, 5:02:16 PM6/23/10
to remi...@googlegroups.com

Comment #22 on issue 22 by monokrome: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

From what I can tell, this issue means that you are using a format that
isn't supported properly for the operation being done in FFMPEG. I had this
issue when trying to analyze an OggVorbis file, and got FEOFError. I used
ffmpeg to manually convert it to wav and the issue was resolved by
analyzing the wav instead.

The annoying part regarding all of this is that the remix script uploaded
the file prior to me finding out it wasn't supported.

echo-ne...@googlecode.com

unread,
Apr 7, 2012, 5:45:26 PM4/7/12
to remi...@googlegroups.com

Comment #23 on issue 22 by neeraj.v...@gmail.com: EOFError on LocalAudioFile
http://code.google.com/p/echo-nest-remix/issues/detail?id=22

Hello, I'm using Windows 7, and I am getting this error too, with mp3
files. When I manually convert them to wav, it works fine, but with mp3 it
gives me the EOFError. Anyone found any solutions?

Reply all
Reply to author
Forward
0 new messages