Audio is recorded and saved as a wav file. Is it possible to either record directly to mp3 or support the Audio Converter module to convert the audio to mp3?

Comments

Anonymous’s picture

Looks like audio converter module does provide an api:

"It is possible to extend AudioConverter support to other audio-centric CCK modules. You can do so by implementing hook_audioconverter_allowed_fields(), which returns the name of CCK widget."

Thoughts? It would be ideal to be able to convert the uploaded wav files to various formats as needed, certainly mp3.

kenianbei’s picture

I don't have time to add this feature, but I'm willing to review and test any submitted patches...

The FFMPEG Wrapper module would be another alternative...

Anonymous’s picture

This is a a key feature as getting Internet Explorer to play wav files is almost impossible.

The wav format limitation effectively means that none of the Drupal supported audio players can be used to display media recorder content. When using the Media Recorder module, the only audio player that can be used is the default wordpress audio player. jplayer, jwplayer, mediaelement, etc. all fail to play wav files in IE.

kenianbei’s picture

I'm in total agreement here. I won't be able to do any more work on this project until at least May, but I'm willing to review patches.

Anonymous’s picture

Content recorded with media recorder cannot be played on Samsung Android devices as they do not seem to support wav format. Not sure about iOS?

Anonymous’s picture

Anonymous’s picture

looks like work has been done to path audio converter to support media recorder:

https://drupal.org/node/2250199

btopro’s picture

From planet recently -- this is working via patches: https://drupal.psu.edu/content/html5-audio-recording-drupal

btopro’s picture

Anonymous’s picture

I now have this working with btpro's excellent patch. The only problem is that I can't get the media recorder field to recognize Audio converter cron job conversions of wav files to mp3 files. If I select "convert on input" for audio converter, media recorder fields are converted and recognized.

This is not a major issue for me as I do not have very many saved media recorder wav files, but if there is a solution it should be implemented for full compatibility.

kenianbei’s picture

Hi all, wanted to drop a note to say I'm working on this project again part-time for work, so there should be some new features coming. I'm looking into requiring the PHP FFmpeg module, and using the RecordRTC project, which will allow a bunch of new features. These would possibly include:

Addition of video for firefox and chrome, saved to your choice of formats supported by ffmpeg.
Automatic conversion or cron conversion of wav to mp3.
Chunking of files to server which are assembled server side. (No upload delay on long files)

This would add more overhead for installation... if you have any feedback on this let me know.

btopro’s picture

So long as I could still use adconv or whatever it's called / define where FFMPEG is on the file system then that sounds great to me!

Anonymous’s picture

hi kenianbei

great to hear u have time to work on the module. I am extremely pleased with it, especially now that mp3 support is possible with btopro's patch of audio converter. I agree it would be better to include this functionality if possible as audio converter module is in maintenance updates only.

Anonymous’s picture

Should mention that the cron jobs are working fine. Problem was a config error on my part regarding the path plus application name for starting FFmpeg as outlined at other discussion link: https://drupal.org/node/2250199

Right now everything is working well for recording audio (in wav) then having Audio converter module do its magic and convert the wav to mp3, thus allowing audio to display using mediaelements and play in any browser/OS!

kenianbei’s picture

I'm working on this again, just curious if any of you have experience on performance issues with converting on cron versus converting on save?

btopro’s picture

I haven't used this in production, we're going to start (potentially) doing it this summer. Our testing is on demand in our setup.

kenianbei’s picture

FYI I have a working version using php_ffmpeg. It's a separate module included with media_recorder... it's really basic so I'm hesitant to put a patch up or commit, if people want it for testing I'll put the it up, but I probably be working on it over the next 2-3 months as we move it into our production sites, so you may want to wait for that.

kenianbei’s picture

Status: Active » Fixed

I've added the module I'm using as a sandbox. It requires composer and php-ffmpeg to run. Sorry no readme for setup yet.
https://www.drupal.org/sandbox/kenianbei/2497385

Closing the issue since there are a couple options for this now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.