[Ffmpeg-devel] Sending more than one RTP streams

Luca Abeni lucabe72
Thu Apr 12 10:06:52 CEST 2007


Hi

Kite Flyer wrote:
> Hi,
> 
> I'm trying to stream *both* audio and video from an mpeg file to RTP
> destination urls. This is what I'm doing:
> -----
> $ ./ffmpeg -f mpeg -i ../test/video/sample.mpeg -vcodec mpeg1video -b 
> 400kb -ac
> odec mp2 -ab 56kb -f rtp rtp://192.168.50.7:6970

You have to specify two RTP destinations (with different port numbers, 
for example).
Try something like
./ffmpeg -re -i /tmp/test.mpg -vcodec copy -an \
-f rtp rtp://127.0.0.1:10000 -i /tmp/test.mpg -vn \
-acodec copy -f rtp rtp://127.0.0.1:20000

If I remember well, for this to work you would have to fix the "-an" and 
"-vn" options handling (the "video only" and "audio only" state is 
currently not reset at the new input file). I should have a patch for 
this; I'll send it later.


Obviously, you will have to generate the SDP file by hand...


				Luca




More information about the ffmpeg-devel mailing list