I am having problems streaming live from a direct show device to rtp. It works fine if I mux the streams to a ts stream, but I cannot get it to work to send audio on one port and video on another port. Streaming a file the same way works great. I use the following commands.
This code does not work, it just streams the audio and with a packet capture I see packets received only on port 40004.
Code: Select all
vlc -vvv -I rc dshow:// :dshow-vdev="Decklink Video Capture" :dshow-adev="Decklink Audio Capture"
:dshow-caching=2000 :dshow-chroma=UYVY :dshow-fps=25 --sout #duplicate{dst=display},
dst={transcode{width=320,venc=x264{keyint=50,level=3.0,profile=baseline,nocabac,me=umh,merange=26,
subme=10,vbv-maxrate=180,vbv-bufsize=1000,vbv-init=0.9,qpstep=2}vcodec=x264,vb=150,scale=1,acodec=mp4a,
ab=56,channels=2,samplerate=32000,audio-sync}:rtp{port-video=40002,port-audio=40004,dst=192.168.0.104,sdp=file://c:\share\live-min.sdp}}}
Code: Select all
vlc -vvv -I rc "c:\share\down.mp4" --sout #transcode{width=320,
venc=x264{keyint=50,level=3.0,profile=baseline,nocabac,me=umh,merange=26,subme=10,
vbv-maxrate=180,vbv-bufsize=1000,vbv-init=0.9,qpstep=2}vcodec
=x264,vb=150,scale=1,acodec=mp4a,ab=56,channels=2,samplerate=32000}
:rtp{port-video=40002,port-audio=40004,dst=192.168.0.104,sdp=file://c:\share\live-min.sdp}
Code: Select all
vlc -vvv -I rc dshow:// :dshow-vdev="Decklink Video Capture"
:dshow-adev="Decklink Audio Capture" :dshow-caching=2000 :dshow-chroma=UYVY :dshow-fps=25
--sout #duplicate{dst=display},dst={transcode{width=320,venc=x264{keyint=50,level=3.0,profile=baseline,
nocabac,me=umh,merange=26,subme=10,vbv-maxrate=180,vbv-bufsize=1000,vbv-init=0.9,qpstep=2}vcodec=x264,vb=150,scale=1,acodec=mp4a,
ab=56,channels=2,samplerate=32000,audio-sync}:rtp{mux=ts,port=40000,dst=192.168.0.104,sdp=file://c:\share\live-min.sdp}}}
Thank you!
edit: I am using VLC 1.0.5 btw.