[vdr] Xine-plugin: crop mode / rescaling or similar?

Niko Mikkila nm at phnet.fi
Wed Dec 14 16:17:10 CET 2005


On Wed, 14 Dec 2005 14:00:28 +0100
Harald Milz <hm at seneca.muc.de> wrote:

> Hi,
> 
> as I wrote in an earlier mail, I am using softdevice (with a G550 card)
> quite successfully. One of the real advantages of softdevice is its
> crop mode that allows you to crop a 14:9 or 16:9 rectangle from a 4:3
> broadcasting and rescale it to full screen on a 16:9 capable TV set
> (1280x720). Really nice. The downside is that my current living room
> machine is just not living room compatible (looks and noise). I would
> like to build a new VDR with a mini-ITX board (CLE266 or CN400) and use
> the xine libs and plugin.
> 
> The question is, does xine provide something similar? I suspect that the
> answer is no because the rescaling needs to be done _after_ the MPEG2
> decoding, which in case of the VIA chip is done in hardware. Is that
> right or is there hope?

AFAIK there are no crop filters in Xine even for software decoding. A crop
mode would not be hard to code, but you should request it on the Xine
mailing list unless you are willing to do it yourself. As for an MPEG-2
stream, cropping it without fully re-encoding would be quite possible, but
much harder to do. What we lack is an open source MPEG-2 compressed domain
editing library. That would be a very useful piece of software for many
other purposes too. There is always hope as long as you fight for it
yourself ;)


> And - will xine rescale the picture to 1280x720 if it is encoded
> anamorphous? Softdevice does that automatically if you tell it the screen
> is 16:9. Really nice. :-) 

Sure, Xine recognizes anamorphic picture and changes the scaling on the fly.
Xine also detects the screen aspect ratio automatically from X configuration,
but it can be changed manually if necessary.

--
Niko Mikkilä



More information about the vdr mailing list