<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">Hello, All</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">I am a software engineer from NXElec and working
in a project with bitstream in MS bitmap format.</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">Our target board receives a bitmap bitstream from
USB port and we want to use gstreamer/decodebin3 to decode it. The problem/issue we currently facing is that decodebin3 hang when the bitstream sent from the USB Host, and the log messages:</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">----------------------------------------------------------------------------------------------------</span><span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:21.624243669 1105 0x73301c90 DEBUG decodebin3 gstdecodebin3.c:1421:multiqueue_src_probe:<multiqueue0:src_0> Got event 0x733026b0 stream-start</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:21.624541002 1105 0x73301c90 DEBUG decodebin3 gstdecodebin3.c:1435:multiqueue_src_probe:<multiqueue0:src_0> Stream Start 'ce2a59a63435545d216d8dd3bf664d90b820d2e142b9991a4302ac38f839713f'</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:21.629673335 1105 0x73301c90 DEBUG decodebin3 gstdecodebin3.c:1421:multiqueue_src_probe:<multiqueue0:src_0> Got event 0x7f0ee8 segment</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:21.630191002 1105 0x73301c90 DEBUG decodebin3 gstdecodebin3.c:1421:multiqueue_src_probe:<multiqueue0:src_0> Got event 0x733025d8 stream-collection</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:21.630709002 1105 0x73301c90 DEBUG decodebin3 gstdecodebin3.c:1758:keyframe_waiter_probe:<multiqueue0:src_0> Buffer is keyframe or header, letting through and removing probe</div>
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">0:00:21.646895335 1105 0x9508f0 DEBUG
decodebin3 gstdecodebin3-parse.c:285:parse_chain_output_probe:<parsebin0:src_0> Seeing query allocation</span></span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">-----------------------------------------------------------------------------------------------------</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
To compare with a similar situation, we save an unique still image to a<span style="background-color: rgb(255, 255, 255); border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; display: inline; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
bitmap </span>file and use gstreamer filesrc to decode it. </div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
T<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">his time, decode success. The log messages as below:</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">-----------------------------------------------------------------------------------------------------</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"></span><span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"></span><span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">42334
963 0x1e728f0 DEBUG decodebin3 gstdecodebin3-parse.c:206:parse_chain_output_probe:<parsebin0:src_0> Got event segment<br>
</span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:00.995926000 963 0x1e728f0 DEBUG decodebin3 gstdecodebin3-parse.c:206:parse_chain_output_probe:<parsebin0:src_0> Got event stream-collection</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:00.996847334 963 0x1e728f0 DEBUG decodebin3 gstdecodebin3-parse.c:285:parse_chain_output_probe:<parsebin0:src_0> Seeing query allocation</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:00.663242333 963 0x73201c90 DEBUG decodebin3 gstdecodebin3.c:1215:gst_decodebin3_handle_message:<decodebin3-0> Got Message stream-status</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:00.998781334 963 0x73201c90 DEBUG decodebin3 gstdecodebin3.c:1421:multiqueue_src_probe:<multiqueue0:src_0> Got event 0x73202620 stream-start</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:00.999220000 963 0x73201c90 DEBUG decodebin3 gstdecodebin3.c:1435:multiqueue_src_probe:<multiqueue0:src_0> Stream Start 'ce2a59a63435545d216d8dd3bf664d90b820d2e142b9991a4302ac38f839713f'</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:00.999591667 963 0x73201c90 DEBUG decodebin3 gstdecodebin3.c:1421:multiqueue_src_probe:<multiqueue0:src_0> Got event 0x732026b0 stream-start</div>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
0:00:00.999895667 963 0x73201c90 DEBUG decodebin3 gstdecodebin3.c:1435:multiqueue_src_probe:<multiqueue0:src_0> Stream Start 'ce2a59a63435545d216d8dd3bf664d90b820d2e142b9991a4302ac38f839713f'</div>
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">0:00:01.000341334 963 0x73201c90 DEBUG
decodebin3 gstdecodebin3.c:1421:multiqueue_src_probe:<multiqueue0:src_0> Got event 0x1d12f30 caps</span><span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"></span><span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"></span><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">---------------------------------------------------------------------------------------------------- </span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">I noticed the difference between 2 scenarios is that
decodebin3 detects an EOS signal when it read from a bitmap file. And in USB device mode, there is no EOS signal detecting and this leads decodebin3 hang...</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">So the question is how can we use decodebin3 to decode
a bitmap bitstream? </span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">Bitmap bitstream here means a bitstream that contents
consequent still images in MS Bitmap format. Currently we send this bitmap stream from Windows Host, I guess add some tags/delimiters among images in bitstream will let decodebin3 recognize and decode it properly. But I do not know how.</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">Thanks in advance if any suggestions/clues come.
<span style="background-color: rgb(255, 255, 255); border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; display: inline; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
The current gstreamer/decodebin3 version we are using is 1.10.4.</span></span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px"><br>
</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">Regards</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">Weidong</span></div>
<span style="display: inline !important; background-color: rgb(255, 255, 255); font-size-adjust: none"></span>
<div style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-family: Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size: 12pt; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">
<span style="border-bottom-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-top-color: currentColor; font-size-adjust: none; margin-bottom: 0px; margin-top: 0px">www.nxelec.com</span></div>
<br>
</span></div>
</body>
</html>