[MPlayer-dev-eng] [PATCH] dvdnav part 3 - emptyframe

Ötvös Attila oattila at chello.hu
Wed Aug 1 23:57:26 CEST 2007


2007. július 30. 19.01 dátummal Michael Niedermayer ezt írta:
> Hi
>
> On Mon, Jul 30, 2007 at 06:35:29PM +0200, Ötvös Attila wrote:
> > 2007. július 30. 15.03 dátummal Nico Sabbi ezt írta:
> > > Ötvös Attila wrote:
> > > >--- mplayer.c	 (revision 23928)
> > > >+++ mplayer.c	 (working copy)
> > > >@@ -95,6 +95,32 @@
> > > > #include "libmpcodecs/img_format.h"
> > > > #include "libmpcodecs/mp_image.h"
> > > > #include "libvo/fastmemcpy.h"
> > > >+
> > > >+unsigned char emptyframe[371] = {
> > > >+
> > > > 0x00,0x00,0x01,0x00,0x03,0x17,0xff,0xfb,0x80,0x00,0x00,0x01,0xb5,0x81
> > > >,0x1 f,0xf3,
> > >
> > > this patch is horrid beyond description, maybe the ugliest I've seen in
> > > the last 5 years
> >
> > I know. :(
> >
> > Since I work the dvdnav ever since I try to persuade the libmpeg2 to
> > decode still frame always.
> > I should be very glad if somebody should know a better solution.
> > I asked for help several times and this was born in my despond...
>
> i cant help you with libmpeg2 as i dont know the code but if you have
> any problem with ffmpeg12 i surely can help if you explain exactly what
> you want ffmpeg12 to do and what it does and all other details ...
>
> [...]
Hi Michael Niedermayer!

I don't know that it help to the solving. I have two watching:

1, use dvdnav with libmpeg2:
If last status code of frame is STATE_SLICE then decode still frame OK
If last status code of frame is STATE_END then libmpeg2 can't decode

2, play test mpeg file:
mplayer -fps 1 -vc mpeg12 frames.mpg
V: 1.0 1/1 ... show: don't draw
V: 0.1 2/2 ... show: don't draw
V: 0.5 3/3 ... show: frames "01"
V: 0.6 4/4 ... show: frames "02"
...
V: 0.8 9/9 ... show: frames "06"

mplayer -fps 1 -vc ffmpeg12 frames.mpg
V: 1.0 1/1 ... show: don't draw
V: 0.1 2/2 ... show: frames "01"
V: 0.5 3/3 ... show: frames "02"
...
V: 0.8 9/9 ... show: frames "07"

http://onebithq.com/pub/frames.mpg
(50 Kbtye)

Best regards.
Attila



More information about the MPlayer-dev-eng mailing list