Howto combine IP video stream and V4l2 audio together?
Posted: 17 Dec 2008 09:35
Hi *,
I'd like to create stream (audio + video), but I've got video from IP camera and audio from Sound card.
The question is how to combine it together into one stream.
Platform: OpenSuse 11.1 RC1, VLC 0.9.8.a, IP camera: Axis 211, Sound device: std. PC sound card.
Video IP stream from camera could be obtained in following command and packed into udp/ts.
vlc -vvv rtsp://root:admin@192.168.123.123:554/mpeg4/media.amp --sout '#transcode{vcodec=mp4v,vb=3000}:std{access=udp,mux=ts,dst=localhost:1235}'
Audio stream could be obtained by using vl42 package also and following command.
vlc -vvv v4l2:// :v4l2-dev=/dev/null :v4l2-adev=/dev/dsp :v4l2-stereo :v4l2-samplerate=48000 :sout='#transcode{vcodec=h264,vb=500,scale=1,acodec=mp3,ab=64,channels=2,audio-sync}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=localhost:1234}}'
Thank you for advice.
I'd like to create stream (audio + video), but I've got video from IP camera and audio from Sound card.
The question is how to combine it together into one stream.
Platform: OpenSuse 11.1 RC1, VLC 0.9.8.a, IP camera: Axis 211, Sound device: std. PC sound card.
Video IP stream from camera could be obtained in following command and packed into udp/ts.
vlc -vvv rtsp://root:admin@192.168.123.123:554/mpeg4/media.amp --sout '#transcode{vcodec=mp4v,vb=3000}:std{access=udp,mux=ts,dst=localhost:1235}'
Audio stream could be obtained by using vl42 package also and following command.
vlc -vvv v4l2:// :v4l2-dev=/dev/null :v4l2-adev=/dev/dsp :v4l2-stereo :v4l2-samplerate=48000 :sout='#transcode{vcodec=h264,vb=500,scale=1,acodec=mp3,ab=64,channels=2,audio-sync}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=localhost:1234}}'
Thank you for advice.