Setup option for sound input with VLM
Posted: 04 Jan 2011 17:02
Hello, Im having troubles to capture sound using this configuration.
new cn3 broadcast enabled
#Video device
setup cn3 input v4l2:///dev/video0
#Video device input
setup cn3 option v4l2-input=1
#Audio device
setup cn3 option oss-audio-device=/dev/oss/oss_hdaudio0/pcmin1
#Transcoding options
setup cn3 output #transcode:rtp
setup cn3 option sout-transcode-vcodec=h264
setup cn3 option sout-transcode-vb=1500
setup cn3 option sout-transcode-scale=1
setup cn3 option sout-transcode-deinterlace
setup cn3 option sout-transcode-fps=25
#Audio transcoding options
setup cn3 option sout-transcode-acodec=mp3
setup cn3 option sout-transcode-ab=128
setup cn3 option sout-transcode-channels=2
#Streaming method
setup cn3 option sout-rtp-dst=200.50.160.187
setup cn3 option sout-rtp-port=5554
setup cn3 option sout-rtp-sdp=rtsp://200.50.160.187:5554/canal3.sdp
With this setup video works great with no sound. Using vlc to connect, and no Audio is received
root@videoserver:/home/sop# fuser -vu /dev/video0
USER PID ACCESS COMMAND
/dev/video0: root 2909 F...m (root)vlc
root@videoserver:/home/sop# fuser -vu /dev/oss/oss_hdaudio0/pcmin1
The sound device is not used as the video device.
Watching the vlc logs, no error related to oss or the device is found
Maybe this line is wrong about the vlm parameter for oss audio device: setup cn3 option oss-audio-device=/dev/oss/oss_hdaudio0/pcmin1 (also tryed with pcmin0)
It would be nice if someone can help me with this.
best regards
new cn3 broadcast enabled
#Video device
setup cn3 input v4l2:///dev/video0
#Video device input
setup cn3 option v4l2-input=1
#Audio device
setup cn3 option oss-audio-device=/dev/oss/oss_hdaudio0/pcmin1
#Transcoding options
setup cn3 output #transcode:rtp
setup cn3 option sout-transcode-vcodec=h264
setup cn3 option sout-transcode-vb=1500
setup cn3 option sout-transcode-scale=1
setup cn3 option sout-transcode-deinterlace
setup cn3 option sout-transcode-fps=25
#Audio transcoding options
setup cn3 option sout-transcode-acodec=mp3
setup cn3 option sout-transcode-ab=128
setup cn3 option sout-transcode-channels=2
#Streaming method
setup cn3 option sout-rtp-dst=200.50.160.187
setup cn3 option sout-rtp-port=5554
setup cn3 option sout-rtp-sdp=rtsp://200.50.160.187:5554/canal3.sdp
With this setup video works great with no sound. Using vlc to connect, and no Audio is received
root@videoserver:/home/sop# fuser -vu /dev/video0
USER PID ACCESS COMMAND
/dev/video0: root 2909 F...m (root)vlc
root@videoserver:/home/sop# fuser -vu /dev/oss/oss_hdaudio0/pcmin1
The sound device is not used as the video device.
Watching the vlc logs, no error related to oss or the device is found
Maybe this line is wrong about the vlm parameter for oss audio device: setup cn3 option oss-audio-device=/dev/oss/oss_hdaudio0/pcmin1 (also tryed with pcmin0)
It would be nice if someone can help me with this.
best regards