Page 1 of 1

imem video + audio streaming

Posted: 28 Jan 2012 18:55
by mirswith
I have an application that is rendered in openGl and I am using imem to capture the frames and stream it using rtsp. This is working pretty well however I do not have audio. Is there a way to capture all audio from this app and stream it as well? Short of that within my app is another instance of vlc that is playing a video, is there a way to route its audio to my imem streams audio? Any examples and/or pointers regarding this would be great. Thanks.

Re: imem video + audio streaming

Posted: 29 Jan 2012 20:15
by Jean-Baptiste Kempf
imem is taking the input in memory, right? The input should have audio and video then.

Re: imem video + audio streaming

Posted: 02 Feb 2012 03:24
by mirswith
It is correct, what confuses me though is that --imem-cat seems to take an integer with these as options:
--imem-cat={0 (Unknown), 1 (Audio), 2 (Video), 3 (Subtitle), 4 (Data)}
How would I tell it to set audio and video. I was thinking at first it was a flag until audio or'd with video would give us a subtitle. Then to further complicate things, even if I can set audio and video does that mean the get is requesting a buffer with audio and video in it and if so then are there any details on the layout? It seems imem was really only meant for one or the other but I really hope I am wrong here.

Thanks again.