[Ffmpeg-devel] MPEG4 streaming over RTP

Michael Niedermayer michaelni
Wed Jul 27 15:02:47 CEST 2005


On Wednesday 27 July 2005 14:05, Luca Abeni wrote:
> Hello Michael,
> On Tue, 2005-07-26 at 12:45 +0200, Michael Niedermayer wrote:
> [...]
> > > If someone is interested, here is the patch: it sets the MPEG
> > > Video-Specific headers so that vlc is happy with mpeg1 video streamed
> > > by ffmpeg. I also tested qt player, and it can correctly receave the
> > > stream.
> >
> > rejected, this is wrong, a frame can and in case of mpeg2 will always
> > contain more then 1 slice
> Yes, I know my patch is not fully correct... But I have not the time to
> develope a fully correct one (I do not know how to split a frame in
> slices, and so on).

spliting is trivial just split at occurances of 0x00 0x00 0x01 (0x01-0xAF)
this will work with mpeg1 & 2

> I just wrote the "minimal patch" needed to make vlc happy: the current
> code never sets the E (End-of-slice) bit, and the live.com library has
> problems with this. I just set the E bit at the end of each frame (I
> think the end of a frame is also the end of a slice, right?), and




More information about the ffmpeg-devel mailing list