![]() ![]() If JACK can do the job I would have it running only when I intend to do the mixing with the two inputs and transcode via VLC. I don't see a need to have JACK take over my sound system though things mix fine automatically for output through speakers/headphones. It seems like it's easy to find information about using VLC to output its sound to JACK but not vice versa. ![]() I had looked over qjackctl lately it seems like it might be able to solve my problem, though I'm not really sure how VLC will react. The audio's sample rate is 44100Hz and is compressed to MPEG-4 I believe. Right now VLC would be streaming a transcode to h.264. Will you mix live or do you expect mixing files ? What are the wished characteristics of your resulting audio stream ? What are the characteristics of your two audio sources you want to mix ? (sample format, sampling rate (min / max)) Should I look into creating a device via JACK or investigate this new aforementioned plugin provided by the kernel? I know VLC can be compiled with JACK support but, since it's something I've never worked with, I don't know what exactly it will enable VLC to be able to do. I personally gave up connecting consumer-audio apps (no disrespect) to Jack.Īre sync issues going to be a problem no matter what approach is used? I don't have a problem with a slight delay due to buffering and/or processing. In any case : Do expect a significant latency => Difficulties in syncing because of the extra buffers / processing times all this mess will add. (If last version is even capable of any resampling, I am not sure) =>Ī/ Either sampling rate does not matter as all your sources get identical sample characteristics so you can fix Jack's server sampling rate to this one.ī/ Or you get different samples characteristics depending on your sources then you will need to either :ġ/ Fiddle a new alsa device that will convert / resampleĢ/ Direct your sources from VLC to Jack through PulseAudio. You should keep in mind that if VLC is actually Jack-aware, VLC is *not* so much a jack-friendly client because it is no longer capable of any honest resampling. However, thanks to the snd_aloop driver, (available in-kernel since 2.6.37) one can fiddle an Alsa pseudo device which captures the hw output of dmix and can serve as an input device for any software.Ī couple of months ago, I would have seconded you on this but. It surely should also be possible using pulseaudio, but I have never tried that out.ĭmix will not work as it only accepts hw devices as output. Never tried it asyncronous though, maybe you'll see some sync issues here as well. Then connect the mix of all your inputs to vlc and it should work. try jack-audio-connection-kit and qjackctl for a start. Even if you did somehow redirect both inputs into dmix it would most probably result in sync issues. Last edited by kitsunenokenja on Sun 5:46 pm edited 3 times in totalĭmix will not work as it only accepts hw devices as output. Let's Encrypt - Free SSL cert organisation ProtonMail - Free encrypted e-mail from Switzerland It's not an option to record the two separately and mix them together later afterwards. I'm not sure it's able to do that.Īny ideas how to solve this? It needs to be on the fly. Even though I still haven't tried to do this or figured out how to setup a virtual output device that is a mix of hw:0,0 and hw:2,0, I wouldn't know how to tell VLC to use the new device. The closest thing to an answer I've found so far is using dmix from alsa. I was hoping VLC has a way to mix the audio sources by itself but I can't find any documentation that suggests it even can do this. ![]() I already tried adding another input-slave option for the VLC encode (and even increasing the number of channels) but it seems that VLC simply honors only the most recent parameter specified instead of mixing the two that were specified. What I'm using is an external v4l2 device that provides audio on alsa device hw:2,0 and VLC uses this device to stream either to file or RTP (depends what I'm doing with the feed.) I'd like to mix in the alsa device which is my microphone for voiceovers/dubbing. I've been searching for a method to solve this problem and still can't come up with anything. Posted: Wed 7:41 pm Post subject: VLC streaming and ALSA mixing Gentoo Forums :: View topic - VLC streaming and ALSA mixing
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |