AW: AW: AW: Serial port interface on frame grabber

Thornton, Keith keith.thornton at zeiss.com
Tue Jun 26 13:53:18 UTC 2018


Hi,
I'm not sure what the error message no codec_data and no stream format means in this context. Where I work, we exchange codec_data and stream format using an out of band channel (rtsp / rtp) so that the receiver knows what sort of data it is receiving but I don't know what a serial to serial communication woud expect. Previously I recommended inserting an identity element into the pipeline not to setting the sink to silent=false.
That would be 
gst-launch-1.0 -v filesrc location=/dev/ttyUSB1 ! $CAPS ! identity silent=false ! h264parse ! avdec_h264 ! autovideosink sync=false
This won't help further in this case though.

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von vk_gst
Gesendet: Dienstag, 26. Juni 2018 13:28
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: AW: AW: Serial port interface on frame grabber

Hi Keith,

Here is a little more debug info for the command:

0:00:00.115241515  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2504:gst_bin_element_set_state:<filesrc0> current NULL pending VOID_PENDING, desired next READY
0:00:00.115251856  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2676:gst_element_continue_state:<filesrc0> completed state change to READY
0:00:00.115261444  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2579:_priv_gst_element_state_changed:<filesrc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.115274913  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2952:gst_bin_change_state_func:<pipeline0> child 'filesrc0' changed state to 2(READY) successfully
0:00:00.115288368  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2651:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:00.115299121  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2579:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PAUSED pending)
0:00:00.115321866  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2658:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
0:00:00.115340443  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2504:gst_bin_element_set_state:<autovideosink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.115356984  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2504:gst_bin_element_set_state:<autovideosink0-actual-sink-xvimage>
current READY pending VOID_PENDING, desired next PAUSED
0:00:00.115377702  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2958:gst_bin_change_state_func:<autovideosink0> child 'autovideosink0-actual-sink-xvimage' is changing state asynchronously to PAUSED
0:00:00.115394251  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2958:gst_bin_change_state_func:<pipeline0> child 'autovideosink0'
is changing state asynchronously to PAUSED
0:00:00.115406879  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2504:gst_bin_element_set_state:<avdec_h264-0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.115478955  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2676:gst_element_continue_state:<avdec_h264-0> completed state change to PAUSED
0:00:00.115488874  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2579:_priv_gst_element_state_changed:<avdec_h264-0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.115503618  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2952:gst_bin_change_state_func:<pipeline0> child 'avdec_h264-0'
changed state to 3(PAUSED) successfully
0:00:00.115516898  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2504:gst_bin_element_set_state:<h264parse0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.115580248  8581 0x563087d8f200 INFO                 filesrc
gstfilesrc.c:468:gst_file_src_start:<filesrc0> opening file /dev/ttyUSB0
0:00:00.119904565  8581 0x563087d8f200 WARN                 basesrc
gstbasesrc.c:3583:gst_base_src_start_complete:<filesrc0> pad not activated yet
0:00:00.120137836  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2676:gst_element_continue_state:<h264parse0> completed state change to PAUSED
0:00:00.120157032  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2579:_priv_gst_element_state_changed:<h264parse0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.120185395  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2952:gst_bin_change_state_func:<pipeline0> child 'h264parse0'
changed state to 3(PAUSED) successfully
0:00:00.120205986  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2504:gst_bin_element_set_state:<capsfilter0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.120226662  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2676:gst_element_continue_state:<capsfilter0> completed state change to PAUSED
0:00:00.120237123  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2579:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.120251129  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2952:gst_bin_change_state_func:<pipeline0> child 'capsfilter0'
changed state to 3(PAUSED) successfully
0:00:00.120269258  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2504:gst_bin_element_set_state:<filesrc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.120285094  8581 0x563087d8f200 INFO                 filesrc
gstfilesrc.c:468:gst_file_src_start:<filesrc0> opening file /dev/ttyUSB0
0:00:00.121527616  8581 0x563087d8f200 INFO                 basesrc
gstbasesrc.c:1358:gst_base_src_do_seek:<filesrc0> seeking: bytes segment start=0, offset=0, stop=-1, rate=1,000000, applied_rate=1,000000, flags=0x00, time=0, base=0, position 0, duration -1
0:00:00.121566441  8581 0x563087d8f200 INFO                    task
gsttask.c:457:gst_task_set_lock: setting stream lock 0x563087fc2230 on task
0x563087fc74d0
0:00:00.121574640  8581 0x563087d8f200 INFO                GST_PADS
gstpad.c:6131:gst_pad_start_task:<filesrc0:src> created task 0x563087fc74d0
0:00:00.121653818  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2676:gst_element_continue_state:<filesrc0> completed state change to PAUSED
0:00:00.121664466  8581 0x563087d8f200 INFO              GST_STATES
gstelement.c:2579:_priv_gst_element_state_changed:<filesrc0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.121678017  8581 0x563087d8f200 INFO              GST_STATES
gstbin.c:2952:gst_bin_change_state_func:<pipeline0> child 'filesrc0' changed state to 3(PAUSED) successfully
0:00:00.121717805  8581 0x56308806cd40 INFO        GST_ELEMENT_PADS
gstelement.c:917:gst_element_get_static_pad: no such pad 'sink' in element "filesrc0"
0:00:02.657744831  8581 0x56308806cd40 INFO               GST_EVENT
gstevent.c:895:gst_event_new_segment: creating segment event bytes segment start=0, offset=0, stop=-1, rate=1,000000, applied_rate=1,000000, flags=0x00, time=0, base=0, position 0, duration -1
0:00:02.657817130  8581 0x56308806cd40 INFO                 basesrc
gstbasesrc.c:2945:gst_base_src_loop:<filesrc0> marking pending DISCONT
0:00:02.658027126  8581 0x56308806cd40 INFO               GST_EVENT
gstevent.c:814:gst_event_new_caps: creating caps event video/x-h264, width=(int)100, height=(int)50, framerate=(fraction)10/1
0:00:02.658116708  8581 0x56308806cd40 ERROR              h264parse
gsth264parse.c:2588:gst_h264_parse_set_caps: video/x-h264 caps without codec_data or stream-format



And the most important are these lines: 

root at linux-GP60-2PE:/home/linux# GST_DEBUG=2 gst-launch-1.0 -v filesrc
location=/dev/ttyUSB0 ! $CAPS  ! h264parse  ! avdec_h264 ! autovideosink > /home/linux/file1.txt
0:00:00.065300808  8529 0x562f49a33920 WARN                 basesrc
gstbasesrc.c:3583:gst_base_src_start_complete:<filesrc0> pad not activated yet
0:00:02.470276383  8529 0x562f49a00140 ERROR              h264parse
gsth264parse.c:2588:gst_h264_parse_set_caps: video/x-h264 caps without codec_data or stream-format


It says that the caps are without the codec_data or stream-format. Does this mean that the encoded data which is written on the imx6 board to the serial port gets converted to some other format and hence at PC, the gstreamer is unable to decode it back to a video data.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list