Page 1 of 1

how to multiplex audio from oss device /dev/sdp and video?

Posted: 17 Mar 2008 13:42
by mb508
I have MJPEG video stream from IP network camera and analog microphone connected to computer (/dev/dsp in linux)

How can I multiplex MJPEG video stream and analog audio into mpeg2 file and stream it in SPTS?
I know that ffmpeg can do that, but it can't stream the output file and encoding speed varies depending on MJPEG fps (fps is not stable from network camera, and ffmpeg doesn't drop frames like vlc)

May be it possible to do with libVLC?

Re: how to multiplex audio from oss device /dev/sdp and video?

Posted: 17 Mar 2008 17:42
by Jean-Baptiste Kempf
have you tried to read each other independently in VLC ?

Re: how to multiplex audio from oss device /dev/sdp and video?

Posted: 17 Mar 2008 19:15
by mb508
yes, I can capture audio from microphone like this: v4l-adev="/dev/dsp"
and I can recieve mjpeg stream simply by using this url as input stream: http://192.168.0.177/mjpg/video.mjpg

how can I transcode and multiplex these into one mpeg2 stream?

Re: how to multiplex audio from oss device /dev/sdp and video?

Posted: 17 Mar 2008 22:15
by Jean-Baptiste Kempf
do it using --input-slave.

Re: how to multiplex audio from oss device /dev/sdp and video?

Posted: 18 Mar 2008 09:11
by mb508
Thanks, I've just experiment with this option, but I can't make it to work fine.
I've read obout this problem here:
viewtopic.php?f=4&t=41608&p=129944

And I have the same qustion: how this option work? what formats of audio and video can be multiplexed?