How can I get to know whether a element get my data or not

Ugly Face xuchangxue365812 at 126.com
Tue Mar 4 07:48:33 PST 2014


My mp4 file and the pipeline works well.

After add "gst_debug_set_threshold_for_name("h264parse", 4);" to my c code,
I get something interesting.

0:00:00.039132669  3911      0x23afa40 DEBUG              h264parse
gsth264parse.c:230:gst_h264_parse_start:<parser> start
0:00:00.039216362  3911      0x23afa40 DEBUG              h264parse
gsth264parse.c:177:gst_h264_parse_reset_frame:<parser> reset frame
0:00:00.040135097  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:294:gst_h264_parse_format_from_caps: parsing caps:
video/x-h264,
codec_data=(buffer)01428029ffe1000c274280298d9500f0044fca8001000428de0988,
stream-format=(string)avc, alignment=(string)au, level=(string)4.1,
framerate=(fraction)90000/5999, width=(int)1920, height=(int)1080,
pixel-aspect-ratio=(fraction)1/1, profile=(string)baseline
0:00:00.040258603  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:1589:gst_h264_parse_set_caps:<parser> have packetized h264
0:00:00.040277747  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:1610:gst_h264_parse_set_caps:<parser> profile 428029
0:00:00.040293753  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:1617:gst_h264_parse_set_caps:<parser> nal length size 4
0:00:00.040315225  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:461:gst_h264_parse_process_nal:<parser> processing nal of
type 7, size 12
0:00:00.040346095  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:467:gst_h264_parse_process_nal:<parser> triggering src caps
check
0:00:00.040360879  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:414:gst_h264_parser_store_nal:<parser> storing sps 0
0:00:00.040386828  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:461:gst_h264_parse_process_nal:<parser> processing nal of
type 8, size 4
0:00:00.040408433  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:484:gst_h264_parse_process_nal:<parser> triggering src caps
check
0:00:00.040423821  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:418:gst_h264_parser_store_nal:<parser> storing pps 0
0:00:00.040472812  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:337:gst_h264_parse_negotiate:<parser> allowed caps:
video/x-h264, parsed=(boolean)true, stream-format=(string){ avc, byte-stream
}, alignment=(string){ au, nal }, width=(int)[ 16, 4096 ], height=(int)[ 16,
4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.040515459  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:345:gst_h264_parse_negotiate:<parser> negotiating with caps:
video/x-h264, parsed=(boolean)true, stream-format=(string){ avc, byte-stream
}, alignment=(string){ au, nal }, width=(int)[ 16, 4096 ], height=(int)[ 16,
4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.040554290  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:350:gst_h264_parse_negotiate:<parser> downstream accepts
upstream caps
0:00:00.040568696  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:294:gst_h264_parse_format_from_caps: parsing caps:
video/x-h264, parsed=(boolean)true, stream-format=(string)avc,
alignment=(string)au
0:00:00.040595083  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:372:gst_h264_parse_negotiate:<parser> selected format avc,
alignment au
0:00:00.040613033  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:1032:gst_h264_parse_update_src_caps:<parser> sps:
0x7f95eb69c010
0:00:00.040629584  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:875:gst_h264_parse_make_codec_data:<parser> constructing
codec_data: num_sps=1, num_pps=1
0:00:00.040665736  3911      0x239de80 INFO               h264parse
gsth264parse.c:1122:gst_h264_parse_update_src_caps:<parser> PAR 1/1
0:00:00.040700916  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:1936:gst_h264_parse_chain:<parser> parsing packet failed
0:00:00.040753695  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:177:gst_h264_parse_reset_frame:<parser> reset frame
0:00:00.041422521  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:1936:gst_h264_parse_chain:<parser> parsing packet failed
0:00:00.041444367  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:177:gst_h264_parse_reset_frame:<parser> reset frame
0:00:00.041469384  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:1936:gst_h264_parse_chain:<parser> parsing packet failed
0:00:00.041484541  3911      0x239de80 DEBUG              h264parse
gsth264parse.c:177:gst_h264_parse_reset_frame:<parser> reset frame


the h264parse seems dose not work properly as it fails to finish its task. I
do not know if info above will be help to give me some other advice . 

I do not think any words can be helpful to show my appreciation for your
help . 

Gorge Y.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-can-I-get-to-know-whether-a-element-get-my-data-or-not-tp4665599p4665732.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list