No sound when play video stream in HTML5 -


i using vlc player transcode multicast stream , showing using html5 video tag. video playing there unable sound.

vlc command:

vlc udp://@192.168.1.1 --sout=#transcode{vcodec=theo,vb=1024,channels=1,ab=128,samplerate=44100,width=320}:http{dst=:8080/webcam.ogg} 

here html:

<video autoplay="autoplay" width="500px" preload="metadata" controls>  <source src="http://127.0.0.1:8080/webcam.ogg"/><source src="http://127.0.0.1:8080/webcam.ogg"/></video> 

however same stream (http://127.0.0.1:8080/webcam.ogg) playing proper sound in vlc player. can suggest me problem.

you not specifying audio codec in transcoding string, here examples (originally taken demo code in vlc sources):

#transcode{vcodec=h264,venc=x264{cfr=16},scale=1,acodec=mp4a,ab=160,channels=2,samplerate=44100} #transcode{vcodec=h264,venc=x264{cfr=40},scale=1,acodec=mp4a,ab=96,channels=2,samplerate=44100} #transcode{vcodec=theo,venc=theora{quality=9},scale=1,acodec=vorb,ab=160,channels=2,samplerate=44100} #transcode{vcodec=theo,venc=theora{quality=4},scale=1,acodec=vorb,ab=96,channels=2,samplerate=44100} #transcode{vcodec=vp80,vb=2000,scale=1,acodec=vorb,ab=160,channels=2,samplerate=44100} #transcode{vcodec=vp80,vb=1000,scale=1,acodec=vorb,ab=96,channels=2,samplerate=44100} 

which particular 1 need , requirements.


Comments