gstreamer-vaapi and RTSP

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

gstreamer-vaapi and RTSP

lonkaji
Hello,

I would like to know if gstreamer-vaapi could work for streaming H264 using RTSP?

Indeed I have no problem to play h264 files locally but gstreamer is not able to read  RTSP stream since I installed gstreamer-vaapi (or even with playbin or decodebin it does not work).
For now I try with this string of launch: gst-launch rtspsrc location = rtsp://ipofthecamera ! rtph264depay ! vaapidecode ! vaapisink

Do you think this is correct?
I compiled myself the latest versions of gstreamer-base, good, bad, ugly and ffmpeg so to get the latest versions of software.

New clock: GstSystemClock
(gst-launch-0.10:1006): GStreamer-CRITICAL **: gst_structure_set_value: assertion `G_IS_VALUE (value)' failed
(gst-launch-0.10:1006): GStreamer-CRITICAL **: gst_structure_set_value: assertion `G_IS_VALUE (value)' failed
(gst-launch-0.10:1006): GStreamer-CRITICAL **: gst_pad_set_caps: assertion `caps == NULL || gst_caps_is_fixed (caps)' failed
(gst-launch-0.10:1006): GStreamer-CRITICAL **: gst_structure_set_value: assertion `G_IS_VALUE (value)' failed
(gst-launch-0.10:1006): GStreamer-CRITICAL **: gst_structure_set_value: assertion `G_IS_VALUE (value)' failed
(gst-launch-0.10:1006): GStreamer-CRITICAL **: gst_pad_set_caps: assertion `caps == NULL || gst_caps_is_fixed (caps)' failed
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2550): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 33045057 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

I must say that it's work fine with mplayer.

I can send you more verbose logs if you wish.
You can try by yourself you with this address: rtsp: / / 193.253.235.221/axis-media/media.amp is an IP camera that I let you provided.

Sincerely,

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer-vaapi and RTSP

derekdai
I traced the vaapidecode and found that this element extract width, height, framerate, par from caps, so, you must ensure the demux's video src pad have these information, or it will refuse to work.

For instance, I try to play my sample.m2ts, it is in video/mpegts format. If I demux it with mpegtsdemux, in gst_vaapidecode_set_caps(), only "video/mpegts, systemstream=(boolean)true, packetsize=(int)192" are brought in. If I replace mpegtsdemux with ffdemux_mpegts, all the conditions can be fulfilled, and, finally, vaapidecode and vaapisink worked!