Simple ffmpeg audio decoder

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.

Existing c# ffmpeg/libav wrappers can be used if the final delivery meets description (must work with latest binaries in 64-bit, see below) and the wrapper should be available with sources, however clean/green field solution is slightly preferred.

Here are the ffmpeg DLLs:

More details and clarifications:
- Streams are standard .net stream (System.IO.Stream)
- input format may not be 11 KHz, mono (resampling by ffmpeg, see command line specs above)

Beceriler: .NET, Ses Servisleri, C# Programlama, C++ Programlama, Video Yükleme

Daha fazlasını gör: ffmpeg avcodec, ffmpeg decoder, audio decoder, bit operation, ffmpeg.exe, sln-, net ar, CLI , use ffmpeg, network stream video, ffmpeg audio output, void input data, net dll mono, system specification net, simple library, stream video network, net audio library, video stream decoder, ffmpeg output, bit use bit dll, code ffmpeg, video delivery system, using ffmpeg code, converter net, audio class

İşveren Hakkında:
( 1 değerlendirme ) XX, Switzerland

Proje NO: #4400282



Hello, I am strong player in audio and video processing with tens of years.

%selectedBids___i_period_sub_7% gün içinde 140%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(5 Değerlendirme)

Bu iş için 5 freelancer ortalamada $115 teklif veriyor


Dear typro. Let me do it. I am very familiar with ffmpeg. Please kindly check my previous work with ffmpeg. Regards.

in %bids___i_period_sub_35% gün içinde148%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(7 Değerlendirme)

hi can i use c# ffmpeg wrapper?

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(14 Değerlendirme)

I can do it.

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(8 Değerlendirme)

Please read the private message box.

in %bids___i_period_sub_35% gün içinde90%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

Hello, sir. I'm interested with your project. I'll do it for you. Reference to [login to view URL], NVR. NVR is solution using ffmpeg 32bit/64bit. Regards.

in %bids___i_period_sub_35% gün içinde145%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)