[Live-devel] Receiving MPEG4 stream from a video server and transport they out

Ross Finlayson finlayson at live555.com
Thu Oct 16 16:15:22 PDT 2008

>   1. When I try to use the command as follow:openRTSP -s 0 -v 
> rtsp://admin:12345678@ | testOnDemandRTSPServer
>      I can saw the video using VLC at other computer. But the video 
> quality is so bad enough(lots of mosaic, lose lots of frame, delay etc.).
>      How should I improve the problem?

First, are you sure that you should be adding "-s 0"?  (If the RTP 
payload format includes a special header, then this option will 
(incorrectly) include it in the output.)

Second, I assume that you modified the "testOnDemandRTSPServer" code 
as described in http://www.live555.com/liveMedia/faq.html#liveInput-unicast

I suggest that you first try breaking your command into separate steps:
         openRTSP -v ... > testFile
and then
         testOnDemandRTSPServer < testFile

If this doesn't work either, then you may need to increase your OS's 
socket buffering in "openRTSP"; see 

If, however, the separate steps work, but piping doesn't, then you 
probably need to (somehow) increase the buffer size that your OS uses 
for pipes.

>   2. I try to modified testMPEG4VideoStreamer and merge it into openRTSP.

I don't recommend this.  Remember that once you make major 
modifications like this to the existing code, you can't expect much 
support (especially with a "@gmail.com" email address).

	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)

More information about the live-devel mailing list