MPEG4 Aspect Ratio and Colour

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MPEG4 Aspect Ratio and Colour

Daniel Punch
Hi all,

I'm using GStreamer to convert a sequence of JPEG images into an MPEG4 video, using ffenc_mpeg4. The original images are 768x435, which is not quite 16:9.

The resultant video looks fine in other media players (MPlayer, Windows Media, etc.), but if I try and play it back using GStreamer's playbin then the colours are wrong (a green tint over the image, with a particularly pronounced green rectangle covering the centre third of the image).

If I use a videoscale element to force the video into a more standard aspect ratio when I'm encoding it then everything looks fine in playback.

Is this likely to be a bug in GStreamer or something I've done wrong? I'd prefer not to have to worry about the dimensions of the images that my application is receiving.

I'm using the latest version of the Windows SDK from http://gstreamer.com

Thank you,
Daniel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MPEG4 Aspect Ratio and Colour

Tim-Philipp Müller-2
On Fri, 2012-09-14 at 11:29 +1000, Daniel Punch wrote:

Hi,

> I'm using GStreamer to convert a sequence of JPEG images into an MPEG4
> video, using ffenc_mpeg4. The original images are 768x435, which is
> not quite 16:9.
>
> The resultant video looks fine in other media players (MPlayer,
> Windows Media, etc.), but if I try and play it back using GStreamer's
> playbin then the colours are wrong (a green tint over the image, with
> a particularly pronounced green rectangle covering the centre third of
> the image).
>
> If I use a videoscale element to force the video into a more standard
> aspect ratio when I'm encoding it then everything looks fine in
> playback.
>
> Is this likely to be a bug in GStreamer or something I've done wrong?
> I'd prefer not to have to worry about the dimensions of the images
> that my application is receiving.

Chances are that it's a bug in some GStreamer element. Could you file a
bug please, and attach a small sample file (or a script to create one) ?

Cheers
-Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel