Color banding in video using mfw_isink with GStreamer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Color banding in video using mfw_isink with GStreamer

ソリューションへジャンプ
1,983件の閲覧回数
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,378件の閲覧回数
LeonardoSandova
Specialist I

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

Leo

元の投稿で解決策を見る

5 返答(返信)
1,378件の閲覧回数
LeonardoSandova
Specialist I

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

Leo

0 件の賞賛
返信
1,378件の閲覧回数
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,378件の閲覧回数
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,378件の閲覧回数
marlonsmith
Contributor IV

Hi David,

Using mfw_v4lsink solved the problem for me.

Marlon

0 件の賞賛
返信
1,379件の閲覧回数
LeonardoSandova
Specialist I

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

Leo