[Ffmpeg-devel] [PATCH] Sending more than one RTP streams

Michael Niedermayer michaelni
Tue Apr 17 21:50:04 CEST 2007


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


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070417/b7c4fffe/attachment.pgp>

More information about the ffmpeg-devel mailing list