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
Solved! Go to Solution.
Is it possible to do the same test through the command line? Can you try mfw_v4lsink?
Leo
Post the pipeline, please. Which wandboard? Q, D or Solo?
Leo
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, ¤t_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;
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
Hi David,
Using mfw_v4lsink solved the problem for me.
Marlon
Is it possible to do the same test through the command line? Can you try mfw_v4lsink?
Leo