Postby bartfartagain » 23 Oct 2011 07:29
I've been fighting with this as well. I've tried two methods:
:sout=#rtp{sdp=rtsp://:8554/800}:duplicate{dst=transcode{vcodec=h264,vb=300,fps=12,scale=0.5,acodec=mp4a,ab=64,channels=2,samplerate=22050}:rtp{sdp=rtsp://:8554/300}}
With this method I get the first rtsp stream just fine but the message output shows:
stream_out_duplicate debug: creating 'duplicate'
stream_out_duplicate debug: * adding `transcode{vcodec=h264,vb=300,fps=12,scale=0.5,acodec=mp4a,ab=64,channels=2,samplerate=22050}'
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
stream_out_transcode error: cannot create chain
main debug: no sout stream module matching "transcode" could be loaded
main debug: TIMER module_need() : 0.381 ms - Total 0.381 ms / 1 intvls (Avg 0.381 ms)
main debug: destroying chain... (name=(null))
main debug: destroying chain done
stream_out_duplicate error: * ignore unknown option `rtp'
stream_out_duplicate error: no destination given
main debug: no sout stream module matching "duplicate" could be loaded
:sout=#duplicate{dst=rtp{sdp=rtsp://:8554/800},dst=transcode{vcodec=h264,vb=300,fps=12,scale=0.5,acodec=mp4a,ab=64,channels=2,samplerate=22050}:rtp{sdp=rtsp://:8554/300}}
With this method the first rtsp stream is duplicated and streamed just fine but there is no message output at all about the other destination. Any idea what I'm doing wrong?
It seems that the transcode module doesn't work when called as a destination of the duplicate module. I can successfully duplicate to multiple rtp destinations but I need to transcode the second, third and so on to lower resolution, fps and data rate before streaming. The documentation indicates this is possible and even provides examples, but none of them work for 1.1.5, 1.1.9, 1.1.10, 1.1.11 or even the nightly builds. Seems broke to me based on the other comments.