Re: VDR - xine - CoreAVC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Morfsta schrieb:

> The coreavc patch for xine has this code in it: -
> 
> +        if(!img) {
> +        img = this->stream->video_out->get_frame (this->stream->video_out,
> +              this->bih->biWidth,
> +              this->bih->biHeight,
> +              this->ratio,
> +              IMGFMT_YUY2,
> +              field);
> +        }
> 
> with      this->ratio = (double)this->bih->biWidth/(double)this->bih->biHeight;

Looks not bad, but ratio is wrong. For your sample 1440 x 1080 it
will yield 1.3333 and not 1.8181 (or 1.7778). Therefore you get
those black bars left and right to the image.

In case the decoder doesn't provide the image aspect ratio (and
it looks like that as you had to provide the image size too),
you'll have to extract it from the H.264 data yourself (as you
did already for the image size).

Bye.
-- 
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl@xxxxxx

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux