[Ffmpeg-devel] [PATCH] Sending more than one RTP streams
Wed Apr 18 10:53:30 CEST 2007
On 4/18/07, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Mon, Apr 16, 2007 at 01:21:08PM +0530, Kite Flyer wrote:
> > Hi
> > On 4/12/07, Luca Abeni <lucabe72 at email.it> wrote:
> > >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
> > >
> > Great! "-re" option makes ffmpeg take entire audio/ video duration to
> > stream it. I need this.
> > >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.
> > I'm doing the same in the attached patch. It should save time for new
> > people wanting to do the same.
> iam fine with the patch as long as it doesnt break anything
let me know if you wish a few regression tests to be run to check it.
I can find some time to do it.
More information about the ffmpeg-devel