[Ffmpeg-devel] [PATCH] Sending more than one RTP streams
Tue Apr 17 21:50:04 CEST 2007
On Mon, Apr 16, 2007 at 01:21:08PM +0530, Kite Flyer wrote:
> On 4/12/07, Luca Abeni <lucabe72 at email.it> wrote:
> >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
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
Size: 189 bytes
Desc: not available
More information about the ffmpeg-devel