AVBlocks™

How to configure output socket for MP3 encoding in .NET

Here is a quick snippet for configuring the output socket of a Transcoder for MP3 encoding using C#.

Diagram

flowchart TB
    is("<b>MediaSocket</b>\nFile: input.wav")
    os("<b>MediaSocket</b>\nType: MpegAudio\nSubtype: MpegAudioLayer3\nFile: output.mp3")
    tr("<b>Transcoder Block</b>\nopen\nrun\nclose")
    out["output.mp3"]

    in["input.wav"]
    out["output.mp3"]

    is --> |"add input"| tr 
    os --> |"add output"| tr
    
    in  --> |"read"| tr --> |"write"| out
read more

How to configure output socket for AAC / ADTS encoding in C++

Here is a quick snippet for configuring the output socket of a Transcoder for Advanced Audio Coding (AAC) / Audio Data Transport Stream (ADTS) encoding using C++.

Diagram

flowchart TB
    is("<b>MediaSocket</b>\nFile: input.wav")
    os("<b>MediaSocket</b>\nType: AAC\nSubtype: AAC_ADTS\nFile: output.aac")
    tr("<b>Transcoder Block</b>\nopen\nrun\nclose")

    in["input.wav"]
    out["output.aac"]

    is --> |"add input"| tr 
    os --> |"add output"| tr
    
    in  --> |"read"| tr --> |"write"| out
read more

How to configure output socket for MP3 encoding in C++

Here is a quick snippet for configuring the output socket of a Transcoder for MP3 encoding using C++.

Diagram

flowchart TB
    is("<b>MediaSocket</b>\nFile: input.wav")
    os("<b>MediaSocket</b>\nType: MPEG_Audio\nSubtype: MPEG_Audio_Layer3\nFile: output.mp3")
    tr("<b>Transcoder Block</b>\nopen\nrun\nclose")

    in["input.wav"]
    out["output.mp3"]

    is --> |"add input"| tr 
    os --> |"add output"| tr
    
    in  --> |"read"| tr --> |"write"| out
read more

AVBlocks v3 - What’s New

API

read more

AVBlocks v2 - What’s New

API

Samples

read more

Controling H.264 decoding latency

There is a new parameter in AVBlocks 1.8 called MaxDecFrameBuffering (corresponding to max_dec_frame_buffering from the AVC / H.264 standard). It controls the decoded picture buffer size of the decoder and indirectly affects the decoding latency.

read more

AVBlocks will not load if Wmvcore.dll is not present on user's system

Update: This issue has been fixed as of version 1.6.

Wmvcore.dll is standard on all editions of Windows Vista and Windows 7 with the exception of the “N” editions. The “N” editions are distributed in Europe and do not include Windows Media Player and its related technologies.

read more

How to set license string in AVBlocks

This post assumes that you are using AVBlocks for .NET and you have purchased a license from the License Management site.

When you license a Primo Software product you usually get a license file in the email. The license file is basically a signed XML string that describes the products and features you have licensed. Then you have to provide the license to AVBlocks with the Library.SetLicense method.

read more
tips-and-tricks encoder audio video news mp3 wmv windows license h.264 demo decoder c++ avc adts aac .net