WAV Files have no Preview

206 views
Skip to first unread message

Justin

unread,
May 27, 2011, 12:51:39 PM5/27/11
to ResourceSpace
I have setup a new installation of ResourceSpace and audio previews
are not appearing for WAV files even though they are listed on the
compatibility page. I can download the file and play it normally and
even much larger mp3 files have previews. Is there a setting i need to
enable.

On a possibly related not I can't get the flash uploader to upload
files. They appear to upload, taking time and sending data, and after
the upload bar completes it says 'Done' and the file disappears into
the aether.

-Thank you for looking.

Justin

unread,
Jun 10, 2011, 10:54:54 AM6/10/11
to ResourceSpace
$MPEG_audio_extensions = array(
'wav',
'ogg',
'aiff',
'au',
'cdda',
'm4a',
'wma',
'mp2',
'aac',
'ra',
'rm',
'gsm'
);

I moved this line from config.default.php to config.php and restart
httpd. But the problem remains, no WAV previews. The ffmpeg binary is
located in /usr/bin which is also the path given in the config file.
My application is running on a Bitnami LAMP stack (Ubuntu).


On May 27, 12:51 pm, Justin <jusw.robe...@gmail.com> wrote:
> I have setup a new installation of ResourceSpace and audio previews
> are not appearing forWAVfiles even though they are listed on the

mrpatulski

unread,
Jun 14, 2011, 6:27:54 AM6/14/11
to resour...@googlegroups.com
Justin: are you running local or in the cloud?

Justin

unread,
Jun 14, 2011, 4:17:24 PM6/14/11
to ResourceSpace
This is a cloudy site. Currently hosted on Amazon Web Services.

Søren Grønning Iversen

unread,
Jun 14, 2011, 6:33:48 PM6/14/11
to resour...@googlegroups.com
Hi,

In my case, the array is called $ffmpeg_audio_extensions and not merely
$mpeg_audio_extensions ...

I just tested my own setup, based on r2735 and it works nicely.

Cheers,

S�ren

Justin

unread,
Jun 15, 2011, 9:16:28 AM6/15/11
to ResourceSpace
I don't know what happened when i posted that. I should have written
"$ffmpeg" instead of "$MPEG".

On Jun 14, 6:33 pm, Søren Grønning Iversen <s.groen...@gmail.com>
wrote:

Justin

unread,
Jun 15, 2011, 9:35:55 AM6/15/11
to ResourceSpace
Alright so I had some suspicions that ffmpeg might not be setup
correctly, although i currently only had wav's and mp3's to upload.
The wav's have no previews as the thread title mentions, but the mp3's
do. However, the mp3 previews are not compressed to 64 kbps. So ran
this command:

ffmpeg -acodec libmp3lame -ab 64k -ac 1 RS68_snip.wav

Which is the default parameter for RS and I received this error:

"Unknown encoder 'libmp3lame'"

Shouldn't this be installed with ffmpeg? I had followed these
instructions; http://wiki.resourcespace.org/index.php/Installing_on_Ubuntu_Linux

Anyone know how to set it up? A search for "libmp3lame" with apt-cache
doesn't return anything.

Tom Gleason

unread,
Jun 15, 2011, 9:41:27 AM6/15/11
to resour...@googlegroups.com
try to search for libavcodec packages, rather than libmp3lame

> --
> You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
>
>

--
Tom Gleason, PHP Developer

ResourceSpace Support Services
https://www.buildadam.com

Exploring ResourceSpace at:
http://resourcespace.blogspot.com

Søren Grønning Iversen

unread,
Jun 15, 2011, 9:43:52 AM6/15/11
to resour...@googlegroups.com
you'll need to have either libavcodec-52 or libavcodec-extra-52 installed ...

Run either of these two commands:
sudo apt-get install libavcodec-52

or:

sudo apt-get install libavcodec-extra-52

-Søren

Justin

unread,
Jun 15, 2011, 10:06:41 AM6/15/11
to ResourceSpace
Ah yes I saw this on your mp4 thread. Unfortunately when I tried to
install libavcodec apt informed me that it was already installed and
up to date.

Thank you for the response though. I was so close I could taste it.

On Jun 15, 9:43 am, Søren Grønning Iversen <s.groen...@gmail.com>
wrote:
> you'll need to have either libavcodec-52 or libavcodec-extra-52
> installed ...
>
> Run either of these two commands:
>
> sudo apt-get install libavcodec-52
>
> or:
>
> sudo apt-get install libavcodec-extra-52
>
> -S�ren
>
> On 15/06/11 15.35, Justin wrote:
>
>
>
>
>
>
>
> > Alright so I had some suspicions that ffmpeg might not be setup
> > correctly, although i currently only had wav's and mp3's to upload.
> > The wav's have no previews as the thread title mentions, but the mp3's
> > do. However, the mp3 previews are not compressed to 64 kbps. So ran
> > this command:
>
> > ffmpeg -acodec libmp3lame -ab 64k -ac 1 RS68_snip.wav
>
> > Which is the default parameter for RS and I received this error:
>
> > "Unknown encoder 'libmp3lame'"
>
> > Shouldn't this be installed with ffmpeg? I had followed these
> > instructions;http://wiki.resourcespace.org/index.php/Installing_on_Ubuntu_Linux
>
> > Anyone know how to set it up? A search for "libmp3lame" with apt-cache
> > doesn't return anything.
>
> > On Jun 15, 9:16 am, Justin<jusw.robe...@gmail.com>  wrote:
> >> I don't know what happened when i posted that. I should have written
> >> "$ffmpeg" instead of "$MPEG".
>
> >> On Jun 14, 6:33 pm, S�ren Gr�nning Iversen<s.groen...@gmail.com>

Justin

unread,
Jun 15, 2011, 4:11:53 PM6/15/11
to ResourceSpace
Well the fix turns out to be pretty minor. I had to add the multiverse
repositories to my source list (Unbuntu Lucid 10.04). It might be
worth mentioning in the wiki ubuntu installation guide that multiverse
is a requirement.

Thanks all,
Justin
Reply all
Reply to author
Forward
0 new messages