[Live-devel] Mpeg1 and Mpeg2 streaming

Ross Finlayson finlayson at live.com
Thu Nov 18 00:42:10 PST 2004


>I want to use liveMedia rtsp server for streaming mpeg1 and mpeg2
>files. I used testOnDemandRTSPSever sample.

Note that the "testOnDemandRTSPServer" demo program *already* streams 
MPEG-1 or 2 files (Elementary Stream, Program Stream, or Transport 
Stream).  You don't need to modify any of the code for this to work.

Note the file names that this demo program uses.  (You can change these in 
the code if you wish):
- If you're streaming a MPEG-1 or 2 Program Stream file, it is named 
"test.mpg".
- If you're streaming a MPEG-1 or 2 Video Elementary Stream file, it is 
named "testv.mpg".
- If you're streaming a MPEG-1 or 2 Audio Elementary Stream file, it is 
named "test.mp3".  (The actual file doesn't need to be MPEG layer III; 
layer I or II will work also.)
- If you're streaming a MPEG-1 or 2 Transport Stream file, it is named 
"test.ts".

If your file has the correct name, but still doesn't stream, then perhaps 
it's not well formed?  Does VLC correctly play the file (i.e., locally, not 
as a stream)?  If not, then the file is not well formed.

>my files have not any audio track
>and i created them with ffmpeg (libavcodec) library in an avi file.

That may be your problem.  The input files must be proper MPEG files - not 
in 'avi' format.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list