PC File Conversion
Part 4 Multimedia Files - Brian Pickard
In this part I will try and point the way in dealing with multimedia files types when importing and exporting between RISC OS and PC Windows platforms. These types of files are not easy to deal with and certain types cannot be used on RISC OS machines. Let's first break them down into audio and video files.
PC Audio file formats
The actual type is usually recognised by the first few bytes of the file. The Windows PCM starts with RIFF. Even though this complicates matters I have found Mark Scholes PlaySound and Rick Hudsons SoundCon do recognise these variations.
RISC OS CDBurn understands the Motorola standard. But the filetype has to be set to DATA. CDBurn also understands the wave format but since there are so many variations I tend to stick with PCM files.
There are other variations that use just 8 bit values with added compression. These include 8 bit mu-law compressed and 8 bit A-law compressed. I wouldn't advise their use, unless disc space is at a premium. To give an example of this file use. I use a PC to capture sounds (archiving my vinyl) and save the tracks as PCM Motorola standard files. Then port them over to my RiscPC change their filetype to DATA and then use CDBurn to produce the CD.
Why don't I transfer my CD writable drive to my PC? Well I have come across PC owners whose lightening fast all bells and whistles burners produce some very strange sounding CDs! My RiscPC CDBurn and old Ricoh writable drive has NEVER produced a bad CD copy! (You can't produce Audio CDs at high speed, if you do things can go wrong, when burning an audio CD on a PC go down to 8 speed - ED).
RISC OS Audio File formats
Using Music Software
The only common music software for both PC and RISC OS I have come across is Sibelius.
This is a music writing application which takes its input from a Midi keyboard and produces music manuscripts ready for printout. It is expensive but if you are a serious musician it is the one to go for.
The Problem with MP3
If you wish to send music files to PC users then use either wav format or mp3 (over the web since it compresses sound files by a factor of 8 to 10). There is one snag with the mp3 format when using RISC OS. There is no easy way of converting wav etc. to mp3. I have found three applications called cmpa, lame and blade that will convert wav or pcm files to mp3 but these are all command line apps. Justin Fletcher did produce a multitasking front end for cmpa but at the moment he has taken his apps off his website.
I have produced a wimp multitasking application which uses Lame. I chose Lame because it has two versions, one for StrongArm and the other for ARM7500FP cpu. It is on the CD and is called !MakeMpeg.
The help file contains the user guide. Don't expect the conversions to be quick (unless you have one of the latest RISC OS computers). I would like to know how quick so I have included a wav sound file called testtrk. It is a track from a friends own made CD of his own songs. It is approximately five and a half minutes long. On my StrongArm RiscPC it takes about 25 minutes to convert it to an mpeg. I think it should be quicker using an XScale or the ARM7500FP (the latter may be a surprise but it is due to the built in floating point co processor). Lame will also convert MPEGS to WAV or PCM too. (A much quicker process!).
If you wish to port a sound file over the net then use mp3. If you wish to let a friend have a track then using a CDR or CDR/W use the WAV format.
The Problem with Video Files
This is not so straight forward. The PC world uses several different file formats.
Lets deal with the ones RISC OS does not recognise.
REAL (extension .rm)
Now for the good news the following formats can be viewed using RISCOS computers.
Apple QuickTime (file extension .MOV)
Warm Silence Software do several plugins for different file formats that allow the !ARPlayer to view PC video formats. These include PC files that have file extensions .FLI .FLC .AVI .WAV. Note the last two are Windows filetypes and dont be confused with .WAV. This extension is used for both video and audio files.
The main problem is that there is no cheap and easy way of producing video files on the RISCOS platform (unless you know different!).(Well there is one free video editor, it's called CineWorks, and I have put a copy in the software directory - ED)
Most PC video editing software will allow animated GIFs to be loaded and therefore converted into .WAV etc video files. I have used this method when requiring an animated diagram for a video.
As you can see video format is one area where the RISC OS world needs to 'catch up'.
One note though, the BBC use an editing suit based round a RiscPC! It is called OPTIMA and I believe the RiscPC podule is being sold (second hand) by CJEMicros! So if you are an enthusiast then perhaps this is worth investigating.
Thats it for this part, next time I will try and delve into Desktop Publishing.