Hi Andy, Check this link. GStreamer Transcoding and Scaling.
Leonardo Sandoval Gonzalez 撰写:
Hi Andy, Check this link. GStreamer Transcoding and Scaling.
Thank you Leo,
I tried to follow command:
mx6q send:
modprobe ov5642_camera
modprobe mxc_v4l2_capture
gst-launch -v --gst-debug=vpuenc:4 mfw_v4lsrc capture-mode=1 \
! video/x-raw-yuv,framerate=25/1 \
! vpuenc codec=6 \
! udpsink host=192.168.3.113 port=2011
PC ubuntu:
gst-launch -vvv --gst-debug=3 udpsrc port=2011 \
caps ="video/x-h264, width=(int)320, height=(int)240, framerate=(fraction)25/1, framed=(boolean)true" \
! ffdec_h264 \
! ffmpegcolorspace \
! videoscale \
! xvimagesink sync=false
On PC ubuntu the video receiving is right.
when I tried follow command:
mx6q send:
modprobe ov5642_camera
modprobe mxc_v4l2_capture
gst-launch -v --gst-debug=vpuenc:4 mfw_v4lsrc capture-mode=3 \
! video/x-raw-yuv,framerate=25/1 \
! vpuenc codec=6 \
! udpsink host=192.168.3.113 port=2011
PC ubuntu:
gst-launch -vvv --gst-debug=3 udpsrc port=2011 \
caps ="video/x-h264, width=(int)720, height=(int)576, framerate=(fraction)25/1, framed=(boolean)true" \
! ffdec_h264 \
! ffmpegcolorspace \
! videoscale \
! xvimagesink sync=false
On PC ubuntu the video not display.
the debug info:
imx6q send:
MFW_GST_V4LSRC_PLUGIN 3.0.5 build on Mar 30 2013 10:25:33.
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX6Q/D/S
vpuenc versions :smileyhappy:
plugin: 3.0.5
wrapper: 1.0.28(VPUWRAPPER_ARM_LINUX Build on Mar 30 2013 10:20:17)
vpulib: 5.4.10
firmware: 2.1.8.34588
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001
/GstPipeline:pipeline0/MFWGstV4LSrc:mfwgstv4lsrc0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:01.640698001 3128 0x9dae8 WARN vpuenc vpuenc.c:1350:gst_vpuenc_sink_event: Unsupport newsegment format 2
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1
0:00:01.642531002 3128 0x9dae8 INFO vpuenc vpuenc.c:835:gst_vpuenc_setcaps: Get upstream caps video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1
0:00:01.642801335 3128 0x9dae8 INFO vpuenc vpuenc.c:845:gst_vpuenc_setcaps: Set Width 720
0:00:01.642906669 3128 0x9dae8 INFO vpuenc vpuenc.c:849:gst_vpuenc_setcaps: Set Height 576
0:00:01.643041002 3128 0x9dae8 INFO vpuenc vpuenc.c:924:gst_vpuenc_setcaps: Setframerate 25/1
/GstPipeline:pipeline0/GstVpuEnc:vpuenc0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1
[INFO] chromaInterleave 0, mapType 0, linear2TiledEnable 0
0:00:01.648578001 3128 0x9dae8 INFO vpuenc vpuenc.c:1130:gst_vpuenc_chain: get vpuenc require 4 frames.
0:00:01.691893668 3128 0x9dae8 INFO vpuenc vpuenc.c:1209:gst_vpuenc_chain: got codec data 22 bytes 0xab680
/GstPipeline:pipeline0/GstVpuEnc:vpuenc0.GstPad:src: caps = video/x-h264, width=(int)720, height=(int)576, framerate=(fraction)25/1, framed=(boolean)true
0:00:01.705506668 3128 0x9dae8 INFO vpuenc vpuenc.c:1012:gst_vpuenc_push_buffer: set downstream caps video/x-h264, width=(int)720, height=(int)576, framerate=(fraction)25/1, framed=(boolean)true
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = video/x-h264, width=(int)720, height=(int)576, framerate=(fraction)25/1, framed=(boolean)true
WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Internal data flow problem.
Additional debug info:
gstbasesink.c(3626): gst_base_sink_chain_unlocked (): /GstPipeline:pipeline0/GstUDPSink:udpsink0:
Received buffer without a new-segment. Assuming timestamps start from 0.
.......
0:00:11.587155667 3072 0xb8d90 LOG vpuenc vpuenc.c:1163:gst_vpuenc_chain: chain in with inbuffer size = 115200 ts 0:00:10.056351000
0:00:11.588897334 3072 0xb8d90 LOG vpuenc vpuenc.c:1199:gst_vpuenc_chain: vpuenc output return 0x9
0:00:11.589012667 3072 0xb8d90 LOG vpuenc vpuenc.c:1216:gst_vpuenc_chain: got compressed frame 21527 bytes
0:00:11.621064667 3072 0xb8d90 LOG vpuenc vpuenc.c:1163:gst_vpuenc_chain: chain in with inbuffer size = 115200 ts 0:00:10.090289000
0:00:11.622676334 3072 0xb8d90 LOG vpuenc vpuenc.c:1199:gst_vpuenc_chain: vpuenc output return 0x9
0:00:11.622735334 3072 0xb8d90 LOG vpuenc vpuenc.c:1216:gst_vpuenc_chain: got compressed frame 21955 bytes
0:00:11.655028334 3072 0xb8d90 LOG vpuenc vpuenc.c:1163:gst_vpuenc_chain: chain in with inbuffer size = 115200 ts 0:00:10.124253667
0:00:11.656657667 3072 0xb8d90 LOG vpuenc vpuenc.c:1199:gst_vpuenc_chain: vpuenc output return 0x9
0:00:11.656716001 3072 0xb8d90 LOG vpuenc vpuenc.c:1216:gst_vpuenc_chain: got compressed frame 21986 bytes
0:00:11.688992001 3072 0xb8d90 LOG vpuenc vpuenc.c:1163:gst_vpuenc_chain: chain in with inbuffer size = 115200 ts 0:00:10.158216334
0:00:11.690600001 3072 0xb8d90 LOG vpuenc vpuenc.c:1199:gst_vpuenc_chain: vpuenc output return 0x9
0:00:11.690660001 3072 0xb8d90 LOG vpuenc vpuenc.c:1216:gst_vpuenc_chain: got compressed frame 21855 bytes
0:00:11.722953001 3072 0xb8d90 LOG vpuenc vpuenc.c:1163:gst_vpuenc_chain: chain in with inbuffer size = 115200 ts 0:00:10.192179000
0:00:11.724581334 3072 0xb8d90 LOG vpuenc vpuenc.c:1199:gst_vpuenc_chain: vpuenc output return 0x9
.......
on the PC ubuntu:
> caps ="video/x-h264, width=(int)720, height=(int)576, framerate=(fraction)25/1, framed=(boolean)true" \
> ! ffdec_h264 \
> ! ffmpegcolorspace \
> ! videoscale \
> ! xvimagesink sync=false
0:00:00.003428247 2089 0x9645050 INFO GST_INIT gstquery.c:105:_gst_query_initialize: init queries
0:00:00.004909603 2089 0x9645050 INFO GST_INIT gstmessage.c:73:_gst_message_initialize: init messages
0:00:00.013616677 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:336:_gst_plugin_initialize: registering 0 static plugins
0:00:00.013812833 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:252:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.013829428 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:254:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.014477786 2089 0x9645050 INFO GST_REGISTRY gstregistry.c:1555:ensure_current_registry: reading registry cache: /home/andy/.gstreamer-0.10/registry.i486.bin
0:00:00.052413249 2089 0x9645050 INFO GST_REGISTRY gstregistrybinary.c:587:gst_registry_binary_read_cache: loaded /home/andy/.gstreamer-0.10/registry.i486.bin in 0.037904 seconds
0:00:00.052518100 2089 0x9645050 INFO GST_REGISTRY gstregistry.c:1415:scan_and_update_registry: Validating plugins from registry cache: /home/andy/.gstreamer-0.10/registry.i486.bin
0:00:00.093123582 2089 0x9645050 INFO GST_REGISTRY gstregistry.c:1517:scan_and_update_registry: Registry cache has not changed
0:00:00.093169239 2089 0x9645050 INFO GST_REGISTRY gstregistry.c:1584:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.093183832 2089 0x9645050 INFO GST_INIT gst.c:795:init_post: GLib runtime version: 2.24.1
0:00:00.093198451 2089 0x9645050 INFO GST_INIT gst.c:797:init_post: GLib headers version: 2.23.4
0:00:00.093235754 2089 0x9645050 INFO GST_PIPELINE gstparse.c:291:gst_parse_launch_full: parsing pipeline description 'udpsrc port=2011 caps =video/x-h264,\ width=(int)720,\ height=(int)576,\ framerate=(fraction)25/1,\ framed=(boolean)true ! ffdec_h264 ! ffmpegcolorspace ! videoscale ! xvimagesink sync=false '
0:00:00.102756478 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:660:gst_plugin_load_file: plugin "/usr/lib/gstreamer-0.10/libgstudp.so" loaded
0:00:00.102786860 2089 0x9645050 INFO GST_ELEMENT_FACTORY gstelementfactory.c:403:gst_element_factory_create: creating element "udpsrc"
0:00:00.102971390 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<GstBaseSrc@0x97720d8> adding pad 'src'
0:00:00.347090693 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_apc
0:00:00.347190059 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_avs
0:00:00.347218152 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_bethsoftvid
0:00:00.347241722 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_bfi
0:00:00.347264025 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_c93
0:00:00.347287197 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_daud
0:00:00.347309817 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_dsicin
0:00:00.347336379 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_dxa
0:00:00.347359256 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_ea
0:00:00.347381351 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_ea_cdata
0:00:00.347403531 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_ffm
0:00:00.347426136 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_flic
0:00:00.347451336 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_4xm
0:00:00.347473842 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_gxf
0:00:00.347495925 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_idcin
0:00:00.347518133 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_IFF
0:00:00.347540370 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_ipmovie
0:00:00.347562515 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_ISS
0:00:00.347593499 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_lmlm4
0:00:00.347619843 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_mm
0:00:00.347642098 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_mmf
0:00:00.347688154 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_msnwctcp
0:00:00.347710845 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_MTV
0:00:00.347732283 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_mvi
0:00:00.347758220 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_nc
0:00:00.347779431 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_nsv
0:00:00.347808837 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_nut
0:00:00.347839987 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_oma
0:00:00.347866709 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_pva
0:00:00.347897285 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_r3d
0:00:00.347930670 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_rl2
0:00:00.348284415 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_RoQ
0:00:00.348313302 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_rpl
0:00:00.348337775 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_film_cpk
0:00:00.348360971 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_siff
0:00:00.348383096 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_smk
0:00:00.348403906 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_sol
0:00:00.348426377 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_psxstr
0:00:00.348451400 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_thp
0:00:00.348472947 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_tiertexseq
0:00:00.348498012 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_txd
0:00:00.348522513 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_vmd
0:00:00.348562477 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_wc3movie
0:00:00.348586814 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_wsaud
0:00:00.348608251 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_wsvqa
0:00:00.348629913 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_xa
0:00:00.348652326 2089 0x9645050 INFO GST_TYPEFIND gsttypefind.c:82:gst_type_find_register: registering typefind function for fftype_yuv4mpegpipe
0:00:00.348930313 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:660:gst_plugin_load_file: plugin "/usr/lib/gstreamer-0.10/libgstffmpeg.so" loaded
0:00:00.348944809 2089 0x9645050 INFO GST_ELEMENT_FACTORY gstelementfactory.c:403:gst_element_factory_create: creating element "ffdec_h264"
0:00:00.349071449 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<ffdec_h264@0x9793680> adding pad 'sink'
0:00:00.349103227 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<ffdec_h264@0x9793680> adding pad 'src'
0:00:00.356525616 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:660:gst_plugin_load_file: plugin "/usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so" loaded
0:00:00.356550367 2089 0x9645050 INFO GST_ELEMENT_FACTORY gstelementfactory.c:403:gst_element_factory_create: creating element "ffmpegcolorspace"
0:00:00.356620514 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<GstBaseTransform@0x979e090> adding pad 'sink'
0:00:00.356645314 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<GstBaseTransform@0x979e090> adding pad 'src'
0:00:00.410549292 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:660:gst_plugin_load_file: plugin "/usr/lib/gstreamer-0.10/libgstvideoscale.so" loaded
0:00:00.410593156 2089 0x9645050 INFO GST_ELEMENT_FACTORY gstelementfactory.c:403:gst_element_factory_create: creating element "videoscale"
0:00:00.410969281 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<GstBaseTransform@0x97a6000> adding pad 'sink'
0:00:00.410996487 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<GstBaseTransform@0x97a6000> adding pad 'src'
0:00:00.420839864 2089 0x9645050 INFO GST_PLUGIN_LOADING gstplugin.c:660:gst_plugin_load_file: plugin "/usr/lib/gstreamer-0.10/libgstxvimagesink.so" loaded
0:00:00.420875578 2089 0x9645050 INFO GST_ELEMENT_FACTORY gstelementfactory.c:403:gst_element_factory_create: creating element "xvimagesink"
0:00:00.421090731 2089 0x9645050 INFO GST_ELEMENT_PADS gstelement.c:727:gst_element_add_pad:<GstBaseSink@0x97ac0f8> adding pad 'sink'
0:00:00.421147374 2089 0x9645050 INFO GST_ELEMENT_FACTORY gstelementfactory.c:403:gst_element_factory_create: creating element "pipeline"
0:00:00.421221481 2089 0x9645050 INFO GST_PIPELINE ./grammar.y:511:gst_parse_perform_link: linking udpsrc0:(any) to ffdec_h2640:(any) (0/0) with caps "(NULL)"
0:00:00.421252686 2089 0x9645050 INFO GST_ELEMENT_PADS gstutils.c:1585:gst_element_link_pads: trying to link element udpsrc0:(any) to element ffdec_h2640:(any)
0:00:00.421265441 2089 0x9645050 INFO GST_PADS gstutils.c:1046:gst_pad_check_link: trying to link udpsrc0:src and ffdec_h2640:src
0:00:00.421275447 2089 0x9645050 INFO GST_PADS gstutils.c:1066:gst_pad_check_link: Sink pad ffdec_h2640:src is not sink pad, failed
0:00:00.421284986 2089 0x9645050 INFO GST_PADS gstutils.c:1046:gst_pad_check_link: trying to link udpsrc0:src and ffdec_h2640:sink
0:00:00.421312657 2089 0x9645050 INFO GST_PADS gstutils.c:1493:prepare_link_maybe_ghosting: udpsrc0 and ffdec_h2640 in same bin, no need for ghost pads
0:00:00.421355397 2089 0x9645050 INFO GST_PADS gstpad.c:1880:gst_pad_link_prepare: trying to link udpsrc0:src and ffdec_h2640:sink
0:00:00.421374278 2089 0x9645050 INFO GST_PADS gstpad.c:2053:gst_pad_link: linked udpsrc0:src and ffdec_h2640:sink, successful
0:00:00.421393142 2089 0x9645050 INFO GST_PIPELINE ./grammar.y:511:gst_parse_perform_link: linking ffdec_h2640:(any) to ffmpegcsp0:(any) (0/0) with caps "(NULL)"
0:00:00.421405538 2089 0x9645050 INFO GST_ELEMENT_PADS gstutils.c:1585:gst_element_link_pads: trying to link element ffdec_h2640:(any) to element ffmpegcsp0:(any)
0:00:00.421416369 2089 0x9645050 INFO GST_PADS gstutils.c:1046:gst_pad_check_link: trying to link ffdec_h2640:src and ffmpegcsp0:src
0:00:00.421425822 2089 0x9645050 INFO GST_PADS gstutils.c:1066:gst_pad_check_link: Sink pad ffmpegcsp0:src is not sink pad, failed
0:00:00.421435249 2089 0x9645050 INFO GST_PADS gstutils.c:1046:gst_pad_check_link: trying to link ffdec_h2640:src and ffmpegcsp0:sink
0:00:00.422727950 2089 0x9645050 INFO GST_PADS gstutils.c:1493:prepare_link_maybe_ghosting: ffdec_h2640 and ffmpegcsp0 in same bin, no need for ghost pads
0:00:00.422745904 2089 0x9645050 INFO GST_PADS gstpad.c:1880:gst_pad_link_prepare: trying to link ffdec_h2640:src and ffmpegcsp0:sink
0:00:00.428562174 2089 0x9645050 INFO GST_PADS gstpad.c:2053:gst_pad_link: linked ffdec_h2640:src and ffmpegcsp0:sink, successful
0:00:00.428603789 2089 0x9645050 INFO GST_PIPELINE ./grammar.y:511:gst_parse_perform_link: linking ffmpegcsp0:(any) to videoscale0:(any) (0/0) with caps "(NULL)"
0:00:00.428619755 2089 0x9645050 INFO GST_ELEMENT_PADS gstutils.c:1585:gst_element_link_pads: trying to link element ffmpegcsp0:(any) to element videoscale0:(any)
0:00:00.428632319 2089 0x9645050 INFO GST_PADS gstutils.c:1046:gst_pad_check_link: trying to link ffmpegcsp0:src and videoscale0:src
0:00:00.428642071 2089 0x9645050 INFO GST_PADS gstutils.c:1066:gst_pad_check_link: Sink pad videoscale0:src is not sink pad, failed
0:00:00.428651673 2089 0x9645050 INFO GST_PADS gstutils.c:1046:gst_pad_check_link: trying to link ffmpegcsp0:src and videoscale0:sink
0:00:00.464536011 2089 0x9645050 INFO GST_PADS gstutils.c:1493:prepare_link_maybe_ghosting: ffmpegcsp0 and videoscale0 in same bin, no need for ghost pads
0:00:00.464587099 2089 0x9645050 INFO GST_PADS gstpad.c:1880:gst_pad_link_prepare: trying to link ffmpegcsp0:src and videoscale0:sink
0:00:00.493551320 2089 0x9645050 INFO GST_PADS gstpad.c:2053:gst_pad_link: linked ffmpegcsp0:src and videoscale0:sink, successful
0:00:00.493600258 2089 0x9645050 INFO GST_PIPELINE ./grammar.y:511:gst_parse_perform_link: linking videoscale0:(any) to xvimagesink0:(any) (0/0) with caps "(NULL)"
0:00:00.493617432 2089 0x9645050 INFO GST_ELEMENT_PADS gstutils.c:1585:gst_element_link_pads: trying to link element videoscale0:(any) to element xvimagesink0:(any)
0:00:00.493630555 2089 0x9645050 INFO GST_PADS gstutils.c:1046:gst_pad_check_link: trying to link videoscale0:src and xvimagesink0:sink
0:00:00.544734199 2089 0x9645050 INFO GST_PADS gstutils.c:1493:prepare_link_maybe_ghosting: videoscale0 and xvimagesink0 in same bin, no need for ghost pads
0:00:00.544811669 2089 0x9645050 INFO GST_PADS gstpad.c:1880:gst_pad_link_prepare: trying to link videoscale0:src and xvimagesink0:sink
0:00:00.587837465 2089 0x9645050 INFO GST_PADS gstpad.c:2053:gst_pad_link: linked videoscale0:src and xvimagesink0:sink, successful
设置暂停管道 ...
0:00:00.685378182 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<xvimagesink0> completed state change to READY
0:00:00.685420277 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<xvimagesink0> posting state-changed NULL to READY
0:00:00.685465314 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'xvimagesink0' changed state to 2(READY) successfully
0:00:00.685485418 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<videoscale0> completed state change to READY
0:00:00.685495689 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<videoscale0> posting state-changed NULL to READY
0:00:00.685508768 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'videoscale0' changed state to 2(READY) successfully
0:00:00.685521245 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<ffmpegcsp0> completed state change to READY
0:00:00.685530765 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<ffmpegcsp0> posting state-changed NULL to READY
0:00:00.685543083 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'ffmpegcsp0' changed state to 2(READY) successfully
0:00:00.685555752 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<ffdec_h2640> completed state change to READY
0:00:00.685565312 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<ffdec_h2640> posting state-changed NULL to READY
0:00:00.685577441 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'ffdec_h2640' changed state to 2(READY) successfully
0:00:00.685588787 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<udpsrc0> completed state change to READY
0:00:00.685598134 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<udpsrc0> posting state-changed NULL to READY
0:00:00.685610014 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'udpsrc0' changed state to 2(READY) successfully
0:00:00.685624399 2089 0x9645050 INFO GST_STATES gstelement.c:2211:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:00.685637027 2089 0x9645050 INFO GST_STATES gstelement.c:2220:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
0:00:00.685664703 2089 0x9645050 INFO GST_STATES gstbin.c:2431:gst_bin_change_state_func:<pipeline0> child 'xvimagesink0' is changing state asynchronously to PAUSED
0:00:00.685685916 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<videoscale0> completed state change to PAUSED
0:00:00.685696833 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<videoscale0> posting state-changed READY to PAUSED
0:00:00.685709791 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'videoscale0' changed state to 3(PAUSED) successfully
0:00:00.685723872 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<ffmpegcsp0> completed state change to PAUSED
0:00:00.685733500 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<ffmpegcsp0> posting state-changed READY to PAUSED
0:00:00.685745445 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'ffmpegcsp0' changed state to 3(PAUSED) successfully
0:00:00.685758790 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<ffdec_h2640> completed state change to PAUSED
0:00:00.685768373 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<ffdec_h2640> posting state-changed READY to PAUSED
0:00:00.685780287 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'ffdec_h2640' changed state to 3(PAUSED) successfully
0:00:00.686233810 2089 0x9645050 INFO GST_EVENT gstevent.c:597:gst_event_new_new_segment_full: creating newsegment update 0, rate 1.000000, format GST_FORMAT_TIME, start 0:00:00.000000000, stop 99:99:99.999999999, position 0:00:00.000000000
0:00:00.686410978 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<udpsrc0> completed state change to PAUSED
0:00:00.686435555 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<udpsrc0> posting state-changed READY to PAUSED
0:00:00.686459736 2089 0x9645050 INFO GST_STATES gstbin.c:2464:gst_bin_change_state_func:<pipeline0> child 'udpsrc0' changed state to 3(PAUSED) successfully without preroll
0:00:00.688063974 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<pipeline0> completed state change to PAUSED
0:00:00.688085065 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<pipeline0> posting state-changed READY to PAUSED
The pipeline is in use and do not need PREROLL ...
Set the playback pipeline ...
0:00:00.688413568 2089 0x9645050 INFO GST_EVENT gstevent.c:1065:gst_event_new_latency: creating latency event 0:00:00.000000000
0:00:00.688439333 2089 0x9645050 INFO bin gstbin.c:2301:gst_bin_do_latency_func:<pipeline0> configured latency of 0:00:00.000000000
0:00:00.688460465 2089 0x9645050 INFO GST_STATES gstbin.c:2431:gst_bin_change_state_func:<pipeline0> child 'xvimagesink0' is changing state asynchronously to PLAYING
0:00:00.688473486 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<videoscale0> completed state change to PLAYING
0:00:00.688483347 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<videoscale0> posting state-changed PAUSED to PLAYING
0:00:00.688496367 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'videoscale0' changed state to 4(PLAYING) successfully
0:00:00.688508339 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<ffmpegcsp0> completed state change to PLAYING
0:00:00.688517672 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<ffmpegcsp0> posting state-changed PAUSED to PLAYING
0:00:00.688529570 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'ffmpegcsp0' changed state to 4(PLAYING) successfully
0:00:00.688541917 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<ffdec_h2640> completed state change to PLAYING
0:00:00.688551518 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<ffdec_h2640> posting state-changed PAUSED to PLAYING
0:00:00.688563504 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'ffdec_h2640' changed state to 4(PLAYING) successfully
0:00:00.688580408 2089 0x9645050 INFO GST_STATES gstelement.c:2238:gst_element_continue_state:<udpsrc0> completed state change to PLAYING
0:00:00.688590574 2089 0x9645050 INFO GST_STATES gstelement.c:2251:gst_element_continue_state:<udpsrc0> posting state-changed PAUSED to PLAYING
0:00:00.688602816 2089 0x9645050 INFO GST_STATES gstbin.c:2425:gst_bin_change_state_func:<pipeline0> child 'udpsrc0' changed state to 4(PLAYING) successfully
New clock: GstSystemClock
....
stop here!!
In general, the normal flow of TS packet size to 188 bytes or so, but I use the command generated packet length more than 6k.