Color banding in video using mfw_isink with GStreamer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Color banding in video using mfw_isink with GStreamer

Jump to solution
1,520 Views
marlonsmith
Contributor IV

Hi everyone,

I have an h.264 elementary stream video that contains a blue gradient background with moving text on top.  When I play this video on my desktop computer with mplayer, the gradient looks smooth.  When I play the same video using GStreamer and mfw_isink on my Wandboard, there is obvious color banding.

Can anyone tell me why this is happening and what I can do to fix it?

Thanks!

Marlon

Labels (1)
Tags (2)
1 Solution
915 Views
LeonardoSandova
Specialist I

Is it possible to do the same test through the command line? Can you try mfw_v4lsink?

Leo

View solution in original post

5 Replies
915 Views
LeonardoSandova
Specialist I

Post the pipeline, please. Which wandboard? Q, D or Solo?

Leo

0 Kudos
915 Views
marlonsmith
Contributor IV

Here's the code I'm using (it's part of a large class) on my Wandboard Solo:

gst_init(NULL, NULL);

sink = gst_element_factory_make("mfw_isink", NULL);

playbin2 = gst_element_factory_make("playbin2", "playbin2");

g_object_set(playbin2, "video-sink", sink, NULL);

GstState current_state;

GstClockTime timeout = 5000000000;

gst_element_get_state(playbin2, &current_state, NULL, timeout);

if(current_state == GST_STATE_PLAYING)

{

    qDebug() << "already playing" << flush;

    return;

}

WId xwinid = zones[zone]->winId();

QApplication::syncX();

gst_x_overlay_set_window_handle(GST_X_OVERLAY(sink), xwinid);

g_object_set (playbin2, "uri", "path_to_video_file", NULL);

gst_element_set_state (playbin2, GST_STATE_PLAYING);

qDebug() << "start video playback" << flush;

0 Kudos
915 Views
david_kosir
Contributor II

Marlon, do you have any updates on this issue?

I have same effect here, color banding is really obvious.

BTW, pipeline you used is visible from code, its basic "gst-launch playbin2 uri=<path_to_file>".

David

0 Kudos
915 Views
marlonsmith
Contributor IV

Hi David,

Using mfw_v4lsink solved the problem for me.

Marlon

0 Kudos
916 Views
LeonardoSandova
Specialist I

Is it possible to do the same test through the command line? Can you try mfw_v4lsink?

Leo