Posts tagged: MP3

Moodle FLV Player module update

In February 2009, I released the first beta version of the FLV Player plugin activity module for Moodle. It leverages the ubiquitous JW FLV Player and has been very popular among teachers and course content developers working with Moodle. I’m working on a substantial update for the module and in this article I’m going to write about some of the improvements and new features in it.

What has changed?

The most significant changes in the module will be:

  • Support for alternative HD video streams.
  • Support for audio descriptions.
  • Uses simpler SWFObject 2.2 embed method.

Alternative HD video streams

The current FLV Player module can play any video format supported by Flash Player, which includes FLV, F4V, MOV,  MP4 and Youtube.com videos as well as MP3 and AAC audio files, and JPEG, PNG and GIF images (animation is not supported) and Flash animation files. See here for a full list of supported formats.

The new version of the player now supports an alternative HD video stream. This means that users can switch between normal and high definition video at the click of a mouse. All you need to do is provide two video files, one normal and one HD for the player to switch between. This is particularly useful for providing an alternative low definition stream to users with slow or intermittent internet connections.

Audio descriptions

This one’s still a bit buggy and doesn’t allow full control over the audio file. An audio description is a second, separate MP3 audio file that can be deployed alongside a video. It is synchronised with the video so that if you seek through it to a new point in time, the audio file plays at that point respectively. Users can switch the extra audio on and off as they like.

Audio descriptions are typically used for accessibility support for the visually impaired but can also be used for multi-language support, optional narrator’s voice overs, director’s commentaries, etc. I’m sure instructional designers, teachers and course content developers can come up with some creative applications for this feature.

SWFObject 2.2 embedding

Previous versions of the FLV Player module were a little “inconsistent” across different browsers and some suffered from bugs when it was necessary to perform Flash Player upgrades for users who don’t have Flash Player 9.0.115 or later installed. I’ve upgraded the module to SWFObject 2.2 and used a static embed method so that even with Javascript disabled, the video player will work, as well as detecting users’ Flash Player versions and informing them if they need to perform a Flash Player upgrade in order to view the video content, instead of automatically deploying Express Install, giving users more control. The new embed method has been successfully tested on Internet Explorer, Firefox, Safari and Google Chrome.

Prompt to upgrade the Flash Player version

A prompt to upgrade to the required Flash Player version.

Other features still supported

As well as these new features, the new version of the FLV Player will continue to support:

  • HTML notes under the video playback window so you can put lecture notes, diagrams, graphs, tables, photos, links to files or pages, etc. on the same page.
  • TimedText, RealText, ASX, ATOM, RSS and XSPF video caption formats (Users can now switch captions on and off).
  • XML Playlists.
  • Skins to change the visual appearance of the player (also includes support for XML based skins).
  • Definable player control colours.
  • Video poster images before playback commences.
  • A variety of other JW FLV Player plugins (as a CSV list).
  • Player configuration via an externally loaded XML file so that course-wide player policies can be established.

When will the new version be ready?

Many thanks to the brilliant developers at LongtailVideo.com for all their ideas and hard work. I’m still testing and trying to “iron out” the bugs in the FLV Player module but this should be finished in the next week or so. Unfortunately, there’s a bug in the Audio Description plugin, which is beyond my control and I’m waiting for the respective developer to resolve the issue. Hopefully, this will be soon.

Update…

After spending some time going over the various requirements for supporting the new plugins, the changes to the module code and the database table structure, I’ve realised that a number of the changes would “break” older instances on Moodle courses and lead to a lot of extra work for teachers and course content developers. With this in mind, I’ve decided to leave the FLV Player as it is for people who don’t need a feature-rich media player.

I’m now developing a very feature-rich “Media Player” module that will support most of the plugins currently available for the JW FLV Player as well as playlists and all the other features that we expect of a good web video application for e-learning. The module editing page will also be better organised to make it easier to use. The JW FLV Player plugins that I’m experimenting with at the moment are as follows:

Please note that the Live Stream and Snapshot plugins require a server-side script and will not be enabled as standard for security reasons. The search Seach Bar plugin can use custom search scripts but only YouTube.com search will be enabled by default.

Here’s the Google Code project home page: http://code.google.com/p/moodle-mplayer/

VN:F [1.8.3_1051]
Rating: 9.8/10 (4 votes cast)
  • Share/Bookmark

Flash MP3 player for tests

GNU GPL Open Source ProjectEver wanted to control the number of times a learner can listen to a recording in a listening test? Well, I’ve seen this request a number of times on Moodle.org’s forums recently and not so recently. So I’ve decided to develop and share this Flash MP3 player for tests.

What does it do?

It streams (progressive download) and plays a single MP3 (or AAC) audio file once. It has no play back controls whatsoever so there is no way for a learner to listen to the recording again except by refreshing the web page in the browser. There is an optional parameter that sets the number of times the MP3 file plays.

What is it for?

It’s for deploying in listening tests or activities where it’s necessary or desirable to limit the number of times a learner can listen to an audio recording. For example, Cambridge ESOL (English for Speakers of Other Languages) listening tests require that the learner only listen to each recording twice so it’s particularly useful in practice exercises for learners who are preparing to take one of these exams.

How can I use it?

Detailed instructions are included in the download package as well as some example embed code. Unfortunately, I can’t provide any easy to use plugins or modules for LMSs (Learning Management Systems) – It’s too complicated to explain here and now. For now, this Flash application can only be deployed by manually inserting the necessary embed code and editing some of the parameters. I’ve included some code examples and explanations for how to embed it in Moodle from the course files directory (moodledata).  This should present no problems at all for an experienced web designer or web developer and an IT savvy teacher or course content designer could probably deploy it successfully by copying and editing the embed code examples provided.

Do I need to buy a licence to use it?

No, this project is open source and completely free. You can copy it, change it and redistribute it in any way you like. The only condition is that you must leave my name and copyright on it and distribute a copy of the GPL open source licence with it. The Flash CS4 FLA and ActionScript 3.0 source files and full details are included in the download package.

How secure is it?

It’s worth noting that this MP3 player for tests is not secure. An IT savvy learner could easily look at the source code for the web page and see the URL of the MP3 file being played and download it directly. The very popular Firefox web browser also has a number of plugins that makes it very easy to download media files from virtually any source no matter how well they are protected, even streams from media servers that are supposed to be very secure. The easiest way to make it more difficult to cheat is to put a time limit on the listening test itself. That way, there isn’t enough time to listen more than once.

Update:

I’ve moved the MP3 Player for Tests to Google Code to make it more accessible to developers and easier to find and download. You can find the [http://code.google.com/p/moodle-mp3-player-for-tests/ project page here].

VN:F [1.8.3_1051]
Rating: 10.0/10 (2 votes cast)
  • Share/Bookmark

Good quality audio

What’s the best way to record audio and achieve professional sounding results? It’s not as expensive or as difficult as you might think. For the average Podcaster or for dialogues and presentations, it’s relatively easy to get set up and start producing high quality audio material like a radio station. Let me explain some of the basic principles…

What you start with determines what you’ll end up with

The quality of your unprocessed, uncompressed audio recordings will determine the quality of the end results. Getting the best possible recordings in the first place should be your top priority. This comes down to two things: the equipment and the techniques you use to record it.

Choosing the right microphone

A cardioid pattern mic records sounds in front of it

A cardioid pattern mic records sounds in front of it

The starting point is a good quality microphone but also the right type for the job you have in mind. Luckily, with the growth of Podcasting and computer based audio recording in general, there is a wide selection of microphones available and they’ve come down in price quite dramatically in the last few years. Choosing the right kind of microphone is just as important as the quality. There are basically two types: unidirectional, also known as cardioid or hyper-cardioid microphones, and omnidirectional, also known as border microphones. What’s the difference? Unidirectional mics only record sounds that are directly in front of them, whereas omnidirectional mics record sounds coming from all directions.

Which type should I use?

A shotgun mic cuts out unwanted background noise

A shotgun mic cuts out unwanted background noise

In most cases, it’s best to use unidirectional mics. This is for general studio recording and out on location for things like interviews or news reports. Use an omnidirectional microphone to make mono recordings of two or more people in a quiet room. Omnidirectional mics are sometimes used as “border mics” that pic up additional background noise or ambient noise and recorded as a separate track that is mixed in later. In situations where you expect a lot of background noise such as in town centres, shopping centres, schools, universities or cafes, it’s advisable to use a “shotgun” mic. These are extremely directional and do a pretty good job off cutting out any sound that isn’t directly in front of them. Professional quality camcorders often come equipped with a shotgun mic.

Get the right connections

An important thing to bear in mind is how you intend to connect it to your recording device. If it’s a DAT, Mini-disc or your computer, check that the mic can be easily plugged in. Some mics require phantom power (48v) which can only be provided through a good quality mixing desk, although many good quality condenser mics include a battery compartment so that phantom power is not necessary and you can plug them directly into your recording device. Cheaper consumer condenser mics often require what is known as “plug in power” or have a battery compartment built in. Most modern digital recorders, such as MiniDiscs and dictaphones, include plug in power so the battery compartment is unnecessary. Computer plug in power is different to digital recorders and you may experience compatibility problems with some microphones. If in doubt, test microphones before purchasing or you can always buy good quality purpose made USB microphones that are typically sold as Podcasting mics.

How can I make a stereo recording?

A coincident pair of mics to make stereo recordings

A coincident pair of mics to make stereo recordings

The easiest way to make a stereo recording is to use what’s known as a coincident pair. It’s basically two microphones crossed together pointed at either side of the source(s) of the sound. There are specially designed “stereo mics” that have two mics inside a single unit. While they’re quicker to set up and more convenient, you’ll definitely get better results with seperate mics, plus you’ll also have the option to use them for interview style studio or location recording.

Beware of the term binaural recording. This is not stereo recording as we all understand it, is intended exclusively for use with headphones and attempts to reproduce a “live” listening experience. There’s a sample binaural recording on the Wikipedia.org page on the link above. Try listening to it with headphones and through your speakers to hear the difference.

Microphone technique and placing

Having good quality microphones is only half the story however. It’s quite possible to make terrible recordings with top quality mics. The position of the mic(s) relative to the speaker(s) and other sources of sound will also determine the quality of your recordings. Here’s some basic advice:

Correct distancing

If you’re talking into a mic, you want it to be about 20cm away (or the distance between the tip of your thumb to the tip of your little finger when they’re outstretched) from your mouth and not directly in front of it. Having the mic directly in front of your mouth results in “popping” where consonant sounds such as “p”s and “b”s send a wave of air directly into the mic and distort the recording. Most people hold the mic slightly lower than their mouth but positioning it to the side usually gives better results. By the way, most headset mics are positioned way too close to your mouth and usually use poor quality mic capsules with low sound sensitivity to compensate.

Avoiding handling noise

If you’re making stereo recordings or using a fixed position mic (i.e. not hand-held), use a mic stand on the floor whenever possible. Putting stands on a table increases “handling noise”. This is when the mic pics up vibrations through the mic stand or from your hands when you’re holding it, touching the table, etc. Be conscious of this because it can ruin a perfectly good recording!

Beware of background noise

Also be aware of all other sources of sound in the area where you’re recording. Human ears naturally filter out background noise but mics are not so smart. For example, you might not notice the sound of the fan on your computer but you’ll certainly notice it when you listen back to the recording.

Recording directly onto PCs and laptops

Most computers come equipped with fairly good quality sound cards so you can just plug in a mic and press record on your favourite recording software. If you’re lucky, you won’t have a problem with hum and hiss when recording with microphones directly onto a PC or laptop. Unfortunately, this seems to be a very common problem and it usually has nothing to do with your microphones, mixers, gain levels, etc. as you might read on some on-line forums. The most common cause of hum and hiss is from the sound card in your PC or laptop picking up noise from the hard disc drive, CPU, cooling fan, etc. inside. You can check if this is the problem by unplugging your microphone and recording a few seconds of no input. If you still hear hum and hiss on the recording, then it’s most probably the sound card. Fortunately, you can buy external sound cards that will remedy the situation. Professional quality ones start at around £100 (16 bit, 96 KHz) and budget ones at around £30 (16 bit, 48 KHz).

Monitoring

Listening to what you’re recording in real time is a big advantage, especially in improvised or experimental situations. It’s also incredibly useful for learning about how best to position mics. In a recording studio, you have the luxury of a sound proofed mixing room but in real life and out on the road, this isn’t always possible. Headphones that isolate your ears from the outside world are an excellent option, in fact, I’ve found that a simple, relatively inexpensive pair of Sony ear-plug style ear-buds allow me to monitor mic recordings in almost any situtation.

Choosing the correct recording formats

I always record in an uncompressed format because digital compression such as MP3 and AAC is “lossy”. Lossy means that you lose a lot of detail and resolution in the sound and as you edit and process it, the quality of the sound diminishes. Just as it’s important to edit and process digital photos with the highest pixel resolution possible, it’s equally important to edit and process audio recordings with the highest bitrate and sample frequency possible. If you can, record directly to 16 bit WAV (Windows) or AIFF (Mac) files with a sample frequency of 96 KHz (96,000 Hz). However, this professional quality recording isn’t always possible so 8 bit WAV/AIFF files with a sample rate of 44.1 KHz (44,100 Hz) are perfectly adequate. Good audio recording software will have these options available. When you have edited and processed your recordings and you’re happy with the results, then it’s time to convert them to MP3 or AAC for distribution over the Internet.

Which output format should I choose MP3 or AAC?

It depends on what you want. MP3 is the most widely accepted and compatible format. While Flash Player, the de facto multimedia platform on the web, supports both, some MP3 players do not support AAC so bear this in mind when choosing a format. The main advantage of AAC over MP3 is that it preserves better audio quality at very high compression rates (smaller file sizes) and the main advantage of MP3 over AAC is that it is much better audio quality at low compression rates (larger file sizes). Both formats support DRM (digital rights management) but both can be easily defeated with readily available 3rd party software.

Which software package should I use?

In my opinion, the easiest software package for non-professionals to use that produces the best results is Adobe Soundbooth. It isn’t cheap and if you’re on a budget, I’d recommed using Audacity which is free. There’s a list of digital audio editors here. Whichever software package you decide to use, make sure you can do the following easily:

  • Set the overall volume (gain) of the audio tracks.
  • Fade tracks in and out.
  • Cut, splice, paste, move and delete sections of a track.
  • Add audio effects and processing such as compression, reverb, EQ, noise reduction, de-esser and aural exciter (Ideally have a selection of optimised presets for things like “radio leveller” or “female voice”).
  • Set the sample frequency* when recording and converting to MP3 (e.g. 44.1 KHz).
  • Set the digital compression bitrate when converting to MP3 (e.g. 56 Kbps).

* Flash Player only supports sample frequencies of 11, 22 and 44.1 KHz and compression bitrates under 128Kbps. It does not support variable bitrates.

A final word

There’s a lot to learn about making good, high quality audio recordings but understanding a few basic concepts will help enormously. Of course, the best thing to do is get set up and experiment, try different things out, push things to the extreme and see what results you get. Above all, do lots of it and have fun while you learn. Good luck and happy recording! :)

VN:F [1.8.3_1051]
Rating: 0.0/10 (0 votes cast)
  • Share/Bookmark

Video & Audio Comments are proudly powered by Riffly