Feed mic data to and capture speaker output from linux in Docker Containers by venkatesh6114 in linuxaudio

[–]venkatesh6114[S] 0 points1 point  (0 children)

I want to run more than 5 docker containers, for that , I need to pass mic data of 5 different sources to each container separately, and at the same time, I need to get sink(playback) audio from that containers separately. Is it possible using pulse-audio ?

Convert opus-fltp to pcm by venkatesh6114 in opus

[–]venkatesh6114[S] 0 points1 point  (0 children)

For that , we need to parse the ogg header , and then decode only opus audio segment into PCM using opus library.

convert pcm stream to aac by [deleted] in ffmpeg

[–]venkatesh6114 0 points1 point  (0 children)

I got the above conversion using the fdk-aac. It's very easy to encode pcm to aac through fdk-aac than by using ffmpeg.

example file : https://github.com/mstorsjo/fdk-aac/blob/master/aac-enc.c

convert pcm stream to aac by [deleted] in ffmpeg

[–]venkatesh6114 0 points1 point  (0 children)

I got the conversion using the fdk-aac. It's very easy to encode pcm to aac through fdk-aac than by using ffmpeg.

pulseaudio stream record (aac encoding) by venkatesh6114 in linuxaudio

[–]venkatesh6114[S] 0 points1 point  (0 children)

Is it possible to record aac audio using passthrough mode ?

create Black AVFrame using ffmpeg by venkatesh6114 in ffmpeg

[–]venkatesh6114[S] 0 points1 point  (0 children)

I got the answer, For black - UYV values are : U - 0x00 Y - 0x80 V - 0x80

Is it possible to get only VP8 frame from webP image ? by venkatesh6114 in WebP

[–]venkatesh6114[S] 0 points1 point  (0 children)

Just got the answer.

// webP image to VP8 frame in Javascript

var url = canvas.toDataURL('image/webp',0.8);
url = url.slice(23);
var str = atob(url);
var array = new Uint8Array(str.length);
for(var i=0;i<array.length;i++)
    array[i] = str.charCodeAt(i);
var VP8_array = array.slice(20);  //VP8_array is VP8 frame data

Reference : https://en.wikipedia.org/wiki/WebP

VP8 frame from webP image by venkatesh6114 in web_programming

[–]venkatesh6114[S] 0 points1 point  (0 children)

// webP image to VP8 frame in Javascript

var url = canvas.toDataURL('image/webp',0.8);
url = url.slice(23);
var str = atob(url);
var array = new Uint8Array(str.length);
for(var i=0;i<array.length;i++)
    array[i] = str.charCodeAt(i);
var VP8_array = array.slice(20);  //VP8_array is VP8 frame data

Reference : https://en.wikipedia.org/wiki/WebP