- Jun 6, 2020
- 11,559
- 4,422
Using FFMPeg Command Line and jShell, it is possible to convert most file formats to and from a wav file that jAudioRecord2 writes and a jAudioTrack2 plays.
The conversion is done very quickly, and has many options (see the FFMPeg documentation)
This CodeModule just performs a basic conversion without changing any parameters. The two demo apps are just for completeness. I have included mp3, flac and ogg as that is what I will use most, but I am sure there are more codec that FFMpeg supports you may find useful.
The jAudiorecord2-FFMpeg demo uses Mediaplayer to play the files, although it only supports Mp3's. you are given an option to play on the system default player for the file type if you have one for those not supported, or you can run the jAudiotrack2-FFMpeg demo and play them using that.
This is the source for the code module, it's probably easier to copy it into a new code module than download it, but it's there if you want it. I haven't created a b4xlib for it as...
The conversion is done very quickly, and has many options (see the FFMPeg documentation)
This CodeModule just performs a basic conversion without changing any parameters. The two demo apps are just for completeness. I have included mp3, flac and ogg as that is what I will use most, but I am sure there are more codec that FFMpeg supports you may find useful.
The jAudiorecord2-FFMpeg demo uses Mediaplayer to play the files, although it only supports Mp3's. you are given an option to play on the system default player for the file type if you have one for those not supported, or you can run the jAudiotrack2-FFMpeg demo and play them using that.
This is the source for the code module, it's probably easier to copy it into a new code module than download it, but it's there if you want it. I haven't created a b4xlib for it as...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید