[MPlayer-dev-eng] MPlayer and MEncoder in single binary (was: [RFC] Advertising Slave mode)

Oded Shimon ods15 at ods15.dyndns.org
Thu Aug 25 07:35:58 CEST 2005


On Thu, Aug 25, 2005 at 04:30:05AM +0200, Ivo wrote:
> On Wednesday 24 August 2005 19:31, Oded Shimon wrote:
> > The only way to make it "really" good is by changing the encoders - the
> > encoders DO know the picture WITH the artifacts, it's not even overhead,
> > because they need it to calculate the next frame.. This would ofcourse be
> > totally ungeneric, and near impossible because there's a clear seperation
> > between the encoders (ffmpeg) and mplayer...
> 
> Is this true for all encoders? I can imagine some encoders don't have a full 
> image with decoding artifacts present. IIRC for example I and P frames are 
> saved (with artifacts) because they are referenced, but B-frames are not. 
> They aren't even created.

Yeah, you're probably right about B frames not being kept, but the rest 
most likely are (maybe the last P before a I isn't?..), and I think even if 
this can't be called for EVERY frame, it would be worth it.. if such a 
thing ever was implemented, I'd want the function only to output once like 
every 25 times it's called...

> > Maybe a neat new feature for ffmpeg would be the ability to give it a
> > function pointer to call for each frame with the artifacted frame.. for
> > encoders which support it...
> > It's doable, and sane. I think. Should I try that?...
> 
> I don't know enough about ffmpeg to really comment on that, but I suppose it 
> could be done if it's sure beforehand that all artifacted frames are really 
> available to the encoder. Or maybe it can generate the artifacted frame if 
> it's asked for by this function call and it wasn't available inside anyway. 
> I think you better ask the ffmpeg guys :-)

I think you got confused by what I meant, I didn't mean to make a function 
in ffmpeg to CALL, I meant you give ffmpeg a function pointer, and ffmpeg 
will be the CALLER, whenever it can.

I'm gonna put this on TODO list.. it sound interesting... Even if it's only 
supported lavc mpeg4 and partially, it would still be worth it, there's 
nothing better than seeing the output of your encode while encoding...

- ods15




More information about the MPlayer-dev-eng mailing list