Pipeline syntax for decoding h264 video from pcap containing RTP/UDP

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

Pipeline syntax for decoding h264 video from pcap containing RTP/UDP

user1890246781234
I'm looking to get a sanity check on my pipeline syntax for extracting a video file from a wireshark pcap containing rtp/udp for the video.

Here is the command I'm using and the error I'm receiving.


$ gst-launch filesrc location=udponly.pcap ! pcapparse ! application/x-rtp,media=video,clock-rate=90000,payload=123,encoding-name=H264 ! rtph264depay ! decodebin ! autovideosink      Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
..\..\..\Source\gstreamer\libs\gst\base\gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Reply | Threaded
Open this post in threaded view
|

Re: Pipeline syntax for decoding h264 video from pcap containing RTP/UDP

huzefa siyamwala
I think you are missing parser element before decode bin .Just add h264parser before decode bin and it should get linked and work out.

On Wed, Jan 18, 2012 at 2:13 AM, user1890246781234 <[hidden email]> wrote:
I'm looking to get a sanity check on my pipeline syntax for extracting a
video file from a wireshark pcap containing rtp/udp for the video.

Here is the command I'm using and the error I'm receiving.


$ gst-launch filesrc location=udponly.pcap ! pcapparse !
application/x-rtp,media=video,clock-rate=90000,payload=123,encoding-name=H264
! rtph264depay ! decodebin ! autovideosink      Setting pipeline to PAUSED
...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
data flow error.
Additional debug info:
..\..\..\Source\gstreamer\libs\gst\base\gstbasesrc.c(2507):
gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pipeline-syntax-for-decoding-h264-video-from-pcap-containing-RTP-UDP-tp4304658p4304658.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: Pipeline syntax for decoding h264 video from pcap containing RTP/UDP

user1890246781234
gstreamer is still giving me the same error after implementing your fix.  

$ gst-launch filesrc location=udponly.pcap ! pcapparse ! application/x-rtp,media=video,clock-rate=90000,payload=123,encoding-name=H264 ! rtph264depay ! h264parse ! decodebin ! autovideosink

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
..\..\..\Source\gstreamer\libs\gst\base\gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline syntax for decoding h264 video from pcap containing RTP/UDP

user1890246781234
Also I think there's an issue well before that.  Shouldn't I be able to at least get through pcapparse?


$ gst-launch filesrc location=udponly.pcap ! pcapparse
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
..\..\..\Source\gstreamer\libs\gst\base\gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...