[Ffmpeg-devel] Sending more than one RTP streams

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


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://

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:// -i /tmp/test.mpg -vn \
-acodec copy -f rtp rtp://

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...


More information about the ffmpeg-devel mailing list