Skip to content

Instantly share code, notes, and snippets.

@jcable
Created February 24, 2017 14:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcable/31afe705542532b5dcfdfe4eeeaaf198 to your computer and use it in GitHub Desktop.
Save jcable/31afe705542532b5dcfdfe4eeeaaf198 to your computer and use it in GitHub Desktop.
Gstreamer showing caps
export GST_DEBUG=GST_CAPS:5
gst-launch-1.0 filesrc location=src/test/resources/test.wav ! wavparse ! wavenc ! filesink location=test.wav
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.004597758
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
cablej01@wsralh07:~/wsinteg/trunk/camel-gstreamer$ !exp
export GST_DEBUG=GST_CAPS:5
cablej01@wsralh07:~/wsinteg/trunk/camel-gstreamer$ gst-launch-1.0 filesrc location=src/test/resources/test.wav ! wavparse ! wavenc ! filesink location=test.wav
0:00:00.025177744 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<filesrc0:src> get pad caps with filter (NULL)
0:00:00.033298207 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<filesrc0:src> query returned ANY
0:00:00.033391453 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavparse0:sink> get pad caps with filter (NULL)
0:00:00.033480033 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2889:gst_pad_query_caps_default:<wavparse0:sink> query caps caps query: 0x130ad40, GstQueryCaps, filter=(GstCaps)NULL, caps=(GstCaps)NULL;
0:00:00.033578355 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2912:gst_pad_query_caps_default:<wavparse0:sink> trying pad template caps
0:00:00.033657946 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2942:gst_pad_query_caps_default:<wavparse0:sink> using caps 0x130a9e0 audio/x-wav
0:00:00.033729323 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<wavparse0:sink> query returned audio/x-wav
0:00:00.033825868 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<filesrc0:src> get pad caps with filter (NULL)
0:00:00.033894869 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<filesrc0:src> query returned ANY
0:00:00.033958998 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavparse0:sink> get pad caps with filter (NULL)
0:00:00.034026308 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2889:gst_pad_query_caps_default:<wavparse0:sink> query caps caps query: 0x130ade0, GstQueryCaps, filter=(GstCaps)NULL, caps=(GstCaps)NULL;
0:00:00.034096374 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2912:gst_pad_query_caps_default:<wavparse0:sink> trying pad template caps
0:00:00.034156878 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2942:gst_pad_query_caps_default:<wavparse0:sink> using caps 0x130a9e0 audio/x-wav
0:00:00.034222757 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<wavparse0:sink> query returned audio/x-wav
0:00:00.034287081 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2020:gst_pad_link_check_compatible_unlocked:<filesrc0:src> src caps ANY
0:00:00.034350600 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2022:gst_pad_link_check_compatible_unlocked:<wavparse0:sink> sink caps audio/x-wav
0:00:00.034412343 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2040:gst_pad_link_check_compatible_unlocked: caps are compatible
0:00:00.034501603 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavparse0:src> get pad caps with filter (NULL)
0:00:00.034570448 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavenc0:sink> get pad caps with filter (NULL)
0:00:00.034636775 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2889:gst_pad_query_caps_default:<wavenc0:sink> query caps caps query: 0x130ad90, GstQueryCaps, filter=(GstCaps)NULL, caps=(GstCaps)NULL;
0:00:00.034706543 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2906:gst_pad_query_caps_default:<wavenc0:sink> fixed pad caps: trying pad caps
0:00:00.034769093 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2912:gst_pad_query_caps_default:<wavenc0:sink> trying pad template caps
0:00:00.034828875 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2942:gst_pad_query_caps_default:<wavenc0:sink> using caps 0x130ac00 audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)1, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-alaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]; audio/x-mulaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]
0:00:00.034934768 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<wavenc0:sink> query returned audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)1, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-alaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]; audio/x-mulaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]
0:00:00.035035469 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavparse0:src> get pad caps with filter (NULL)
0:00:00.035103859 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavenc0:sink> get pad caps with filter (NULL)
0:00:00.037231485 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2889:gst_pad_query_caps_default:<wavenc0:sink> query caps caps query: 0x130ab20, GstQueryCaps, filter=(GstCaps)NULL, caps=(GstCaps)NULL;
0:00:00.037327323 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2906:gst_pad_query_caps_default:<wavenc0:sink> fixed pad caps: trying pad caps
0:00:00.037389515 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2912:gst_pad_query_caps_default:<wavenc0:sink> trying pad template caps
0:00:00.037451607 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2942:gst_pad_query_caps_default:<wavenc0:sink> using caps 0x130ac00 audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)1, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-alaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]; audio/x-mulaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]
0:00:00.037553030 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<wavenc0:sink> query returned audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)1, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-alaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]; audio/x-mulaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]
0:00:00.037643178 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2020:gst_pad_link_check_compatible_unlocked:<wavparse0:src> src caps ANY
0:00:00.037697068 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2022:gst_pad_link_check_compatible_unlocked:<wavenc0:sink> sink caps audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)1, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-alaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]; audio/x-mulaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]
0:00:00.037777119 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2040:gst_pad_link_check_compatible_unlocked: caps are compatible
0:00:00.037856578 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavenc0:src> get pad caps with filter (NULL)
0:00:00.037914550 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2889:gst_pad_query_caps_default:<wavenc0:src> query caps caps query: 0x130aad0, GstQueryCaps, filter=(GstCaps)NULL, caps=(GstCaps)NULL;
0:00:00.037974194 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2906:gst_pad_query_caps_default:<wavenc0:src> fixed pad caps: trying pad caps
0:00:00.038025216 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2912:gst_pad_query_caps_default:<wavenc0:src> trying pad template caps
0:00:00.038075732 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2942:gst_pad_query_caps_default:<wavenc0:src> using caps 0x130ab70 audio/x-wav
0:00:00.038132552 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<wavenc0:src> query returned audio/x-wav
0:00:00.038187399 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<filesink0:sink> get pad caps with filter (NULL)
0:00:00.038253690 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<filesink0:sink> query returned ANY
0:00:00.038317295 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavenc0:src> get pad caps with filter (NULL)
0:00:00.038373342 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2889:gst_pad_query_caps_default:<wavenc0:src> query caps caps query: 0x130aa80, GstQueryCaps, filter=(GstCaps)NULL, caps=(GstCaps)NULL;
0:00:00.038432716 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2906:gst_pad_query_caps_default:<wavenc0:src> fixed pad caps: trying pad caps
0:00:00.038508277 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2912:gst_pad_query_caps_default:<wavenc0:src> trying pad template caps
0:00:00.038559442 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2942:gst_pad_query_caps_default:<wavenc0:src> using caps 0x130ab70 audio/x-wav
0:00:00.038615763 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<wavenc0:src> query returned audio/x-wav
0:00:00.038670249 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<filesink0:sink> get pad caps with filter (NULL)
0:00:00.038727773 8387 0x132dc30 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<filesink0:sink> query returned ANY
0:00:00.038781787 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2020:gst_pad_link_check_compatible_unlocked:<wavenc0:src> src caps audio/x-wav
0:00:00.038834842 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2022:gst_pad_link_check_compatible_unlocked:<filesink0:sink> sink caps ANY
0:00:00.038886077 8387 0x132dc30 DEBUG GST_CAPS gstpad.c:2040:gst_pad_link_check_compatible_unlocked: caps are compatible
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.044303408 8387 0x130ab20 DEBUG GST_CAPS gstutils.c:2844:gst_pad_query_accept_caps:<wavenc0:sink> accept caps of audio/x-raw, format=(string)S16LE, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)48000
0:00:00.056518051 8387 0x130ab20 DEBUG GST_CAPS gstutils.c:2761:gst_pad_query_caps:<wavenc0:sink> get pad caps with filter audio/x-raw, format=(string)S16LE, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)48000
0:00:00.056607537 8387 0x130ab20 DEBUG GST_CAPS gstpad.c:2889:gst_pad_query_caps_default:<wavenc0:sink> query caps caps query: 0x7f43cc021850, GstQueryCaps, filter=(GstCaps)audio/x-raw, format=(string)S16LE, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)48000, caps=(GstCaps)NULL;
0:00:00.056693889 8387 0x130ab20 DEBUG GST_CAPS gstpad.c:2906:gst_pad_query_caps_default:<wavenc0:sink> fixed pad caps: trying pad caps
0:00:00.056756757 8387 0x130ab20 DEBUG GST_CAPS gstpad.c:2912:gst_pad_query_caps_default:<wavenc0:sink> trying pad template caps
0:00:00.056821421 8387 0x130ab20 DEBUG GST_CAPS gstpad.c:2936:gst_pad_query_caps_default:<wavenc0:sink> using caps 0x130ac00 audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)1, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-raw, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003, format=(string){ S32LE, S24LE, S16LE, U8, F32LE, F64LE }, layout=(string)interleaved; audio/x-alaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ]; audio/x-mulaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 2 ] with filter 0x130aed0 audio/x-raw, format=(string)S16LE, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)48000
0:00:00.056957757 8387 0x130ab20 DEBUG GST_CAPS gstpad.c:2939:gst_pad_query_caps_default:<wavenc0:sink> result 0x7f43cc0218a0 audio/x-raw, format=(string)S16LE, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)48000
0:00:00.057029351 8387 0x130ab20 DEBUG GST_CAPS gstutils.c:2768:gst_pad_query_caps:<wavenc0:sink> query returned audio/x-raw, format=(string)S16LE, layout=(string)interleaved, channels=(int)2, channel-mask=(bitmask)0x0000000000000003, rate=(int)48000
0:00:00.057105694 8387 0x130ab20 DEBUG GST_CAPS gstpad.c:2465:gst_pad_get_current_caps:<wavenc0:sink> get current pad caps (NULL)
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.007171866
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment