Color banding in video using mfw_isink with GStreamer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Color banding in video using mfw_isink with GStreamer

跳至解决方案
1,981 次查看
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

标签 (1)
标记 (2)
1 解答
1,376 次查看
LeonardoSandova
Specialist I

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

Leo

在原帖中查看解决方案

5 回复数
1,376 次查看
LeonardoSandova
Specialist I

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

Leo

0 项奖励
回复
1,376 次查看
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 项奖励
回复
1,376 次查看
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 项奖励
回复
1,376 次查看
marlonsmith
Contributor IV

Hi David,

Using mfw_v4lsink solved the problem for me.

Marlon

0 项奖励
回复
1,377 次查看
LeonardoSandova
Specialist I

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

Leo