Simple ffmpeg audio decoder
This project was successfully completed by luchenggang for $140 USD in 3 days.Get free quotes for a project like this
Project Budget$30 - $250 USD
Completed In3 days
I need a simple method which takes an input stream with video or audio in any format supported by ffmpeg or libav and converts it to an output stream with decoded audio in 11 KHz, 16 bit, mono (PCM, raw audio).
public class Converter
public void Execute(Stream inputStream, Stream ouputStream)
// code here
- For specification purposes only: the command line parameters for ffmpeg for this operation are the following:
[url removed, login to view] -i [url removed, login to view] -ar 11025 -ac 1 -f s16le -acodec pcm_s16le [url removed, login to view]
- The code should be implemented using p/invoke to ffmpeg DLLs ([url removed, login to view], etc.) and not by using [url removed, login to view] executable.
- The code should be C# (alternatively, purely managed C++/CLI is also acceptable)
- It should be possible to instantiate multiple instances of above classes and use them at the same time.
- The stream may be a perpetual stream from the network, so it is important not to attempt to read all data into memory.
- Preferably the code should be as minimalistic as possible without unused p/invoke definitions.
- Code should work with the latest version of the ffmpeg/libav library.
- Target system is 64-bit only.
Delivery should include complete sln, csproj and all needed cs files.
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online