Playbin2.Video is not displayed. Only grey screen is shown.

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

Playbin2.Video is not displayed. Only grey screen is shown.

Farrel
Hi.
I'm trying to receive a video stream, which is sent over udp. To do this, I'm using Playbin2 (I've also tried playbin, but the difference was only in sound quality). The problem is that video is not displayed. Application detects the stream and starts to work, but the only thing it displays is just gray screen with some artifacts moving on it.

Here is the code wrote.

loop = g_main_loop_new(NULL, false);
playbin = gst_element_factory_make("playbin2", "play");  
g_object_set(G_OBJECT(playbin), "uri", uri.c_str(), NULL);
bus = gst_pipeline_get_bus(GST_PIPELINE(playbin));
gst_bus_add_signal_watch(bus);
g_signal_connect(bus, "message::buffering", G_CALLBACK(&set_playbin_state), playbin);
gst_object_unref(bus);
gst_element_set_state(GST_ELEMENT(playbin), GST_STATE_PLAYING);
g_main_loop_run(loop);

Of cause that's the most simple variant. I've tried to alter sink elements in playbin, and enabling buffering, and changing buffer size but the result was practically the same. Maybe somebody could help me with it?
Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Playbin2.Video is not displayed. Only grey screen is shown.

Federico Zamperini
Hi,
        first of all try with gst-launch (or gst-launch-0.10 or whatever
version of gstreamer you have):

gst-launch playbin2 uri=<uri>

to make sure it's not matter of coding errors.
Then try to stream from the same machine to avoid narrow bandwith or
routers/firewall issues.
I had a similar problem when the resolution of the image was too high (I
missed a lot of frames, so the decoder could not reconstruct the frame
image -- I guess the artifacts you are talking about are the
"difference" between frames), so check if you can low it down; I had
successful tests with 320x240, 6 frames/s with h264 encoding on a 512kbs
connection (actually the used bandwith was around 300kbs).
Hope it helps
Cheers

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

Re: Playbin2.Video is not displayed. Only grey screen is shown.

Farrel
Thanks a lot, Federico! This was really helpful.
 
Reply | Threaded
Open this post in threaded view
|

Re: Playbin2.Video is not displayed. Only grey screen is shown.

Farrel
2012/4/29 Farrel [via GStreamer-devel]
<[hidden email]>:

> Thanks a lot, Federico! This was really helpful.
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://gstreamer-devel.966125.n4.nabble.com/Playbin2-Video-is-not-displayed-Only-grey-screen-is-shown-tp4584712p4595469.html
> To unsubscribe from Playbin2.Video is not displayed. Only grey screen is
> shown., click here.
> NAML