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

About encoding, codec settings, muxers and filter usage
mb508
Blank Cone
Blank Cone
Posts: 13
Joined: 14 Sep 2007 17:00

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

Postby mb508 » 17 Mar 2008 13:42

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 17 Mar 2008 17:42

have you tried to read each other independently in VLC ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mb508
Blank Cone
Blank Cone
Posts: 13
Joined: 14 Sep 2007 17:00

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

Postby mb508 » 17 Mar 2008 19:15

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 17 Mar 2008 22:15

do it using --input-slave.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mb508
Blank Cone
Blank Cone
Posts: 13
Joined: 14 Sep 2007 17:00

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

Postby mb508 » 18 Mar 2008 09:11

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?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests