Problem identifying wav files ?

57 views
Skip to first unread message

salsa man

unread,
Sep 16, 2016, 1:04:11 PM9/16/16
to echoprint
Hi, I built the echoprint-codegen code (release 4.12).

If I run it with an mp3 file, it works great, e.g:

./echoprint-codegen ~/Downloads/rinse.mp3 0 10
[{"metadata":{"artist":"Riton", "release":"Back To Bass - Ministry of Sound", "title":"Rinse & Repeat (Radio Edit) (feat. Kah-lo)", "genre":"Dance/Electronic", "bitrate":320,"sample_rate":44100, "duration":151, "filename":"/home/rcb/Downloads/rinse.mp3", "samples_decoded":110250, "given_duration":10, "start_offset":0, "version":4.12, "codegen_time":0.031562, "decode_time":0.088547}, "code_count":300, "code":"eJzNllsOAzcIRbdkwOaxH...


However if I then decode the mp3 file to wav using mplayer:

mplayer -ao pcm:file="xxx.wav"

then run the same code with the generated wav file:

./echoprint-codegen ./xxx.wav 0 10


the data comes back blank:

{"metadata":{"artist":"", "release":"", "title":"", "genre":"", "bitrate":1411,"sample_rate":44100, "duration":151, "filename":"./xxx.wav", "samples_decoded":110250, "given_duration":10, "start_offset":0, "version":4.12, "codegen_time":0.019872, "decode_time":0.049119}, "code_count":300, "code":"eJzNllsOAzcIRbdkwOaxH....


even though the codes are the same ! So why is it working with mp3 file but not wav ?


Regards,
Gabriel.

Reply all
Reply to author
Forward
0 new messages