Tool/software:
Hi,
I installed using ti-processor-sdk-linux-am69-sk-10_01_08_01-Linux-x86-Install.bin and flashed tisdk-default-image-am69-sk.rootfs.wic to the SD card.
I would like to use gst-launch-1.0 + RTSP + v4l2h264dec, but I ran into some issues. Below are the command and logs:
GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://192.168.109.242/live_st1 latency=50 ! rtph264depay ! h264parse ! v4l2h264dec ! videoconvert ! waylandsink
weston@am69-sk:/tmp$ GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://192.168.109.242/live_st1 latency=50 ! rtph264depay ! h264parse ! v4l2h264dec ! videoconvert ! wayl
andsink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://192.168.109.242/live_st1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
0:00:00.098474086 1857 0xffff90000b70 WARN udpsrc gstudpsrc.c:1638:gst_udpsrc_open:<udpsrc0> warning: Could not create a buffer of requested 524288 byte
s (Operation not permitted). Need net.admin privilege?
0:00:00.098565213 1857 0xffff90000b70 WARN udpsrc gstudpsrc.c:1648:gst_udpsrc_open:<udpsrc0> have udp buffer of 212992 bytes while 524288 were requested
0:00:00.099317033 1857 0xffff90000b70 WARN udpsrc gstudpsrc.c:1638:gst_udpsrc_open:<udpsrc1> warning: Could not create a buffer of requested 524288 byte
s (Operation not permitted). Need net.admin privilege?
0:00:00.099359189 1857 0xffff90000b70 WARN udpsrc gstudpsrc.c:1648:gst_udpsrc_open:<udpsrc1> have udp buffer of 212992 bytes while 524288 were requested
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Redistribute latency...
Progress: (request) Sending PLAY request
0:00:00.109526662 1857 0xffff90000d20 FIXME default gstutils.c:4036:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider i
mplementing a deterministic way of creating a stream-id
Redistribute latency...
Progress: (request) Sent PLAY request
Redistribute latency...
0:00:00.128166954 1857 0xffff90001230 WARN v4l2 gstv4l2object.c:3408:gst_v4l2_object_reset_compose_region:<v4l2h264dec0:sink> Failed to get default co
mpose rectangle with VIDIOC_G_SELECTION: Invalid argument
Redistribute latency...
0:00:00.137190824 1857 0xffff90001230 WARN GST_CAPS gstpad.c:5813:pre_eventfunc_check:<v4l2h264dec0:sink> caps video/x-h264, stream-format=(string)byte-st
ream, alignment=(string)au, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-lum
a=(uint)8, bit-depth-chroma=(uint)8, colorimetry=(string)0:1:0:0, parsed=(boolean)true, profile=(string)high, level=(string)4.2 not accepted
0:00:00.138125618 1857 0xffff90001230 WARN GST_CAPS gstpad.c:5813:pre_eventfunc_check:<v4l2h264dec0:sink> caps video/x-h264, stream-format=(string)byte-st
ream, alignment=(string)au, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-lum
a=(uint)8, bit-depth-chroma=(uint)8, colorimetry=(string)0:1:0:0, parsed=(boolean)true, profile=(string)high, level=(string)4.2 not accepted
0:00:00.138873893 1857 0xffff90001230 WARN GST_CAPS gstpad.c:5813:pre_eventfunc_check:<v4l2h264dec0:sink> caps video/x-h264, stream-format=(string)byte-st
ream, alignment=(string)au, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-lum
a=(uint)8, bit-depth-chroma=(uint)8, colorimetry=(string)0:1:0:0, parsed=(boolean)true, profile=(string)high, level=(string)4.2 not accepted
0:00:00.139521816 1857 0xffff90001230 WARN GST_CAPS gstpad.c:5813:pre_eventfunc_check:<v4l2h264dec0:sink> caps video/x-h264, stream-format=(string)byte-st
ream, alignment=(string)au, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-lum
a=(uint)8, bit-depth-chroma=(uint)8, colorimetry=(string)0:1:0:0, parsed=(boolean)true, profile=(string)high, level=(string)4.2 not accepted
0:00:00.154962384 1857 0xffff90000ed0 WARN basesrc gstbasesrc.c:3134:gst_base_src_loop:<udpsrc1> error: Internal data stream error.
0:00:00.154997770 1857 0xffff90000ed0 WARN basesrc gstbasesrc.c:3134:gst_base_src_loop:<udpsrc1> error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: Internal data stream error.
How to fix this ?
By the way
gst-launch-1.0 rtspsrc location=rtsp://192.168.109.242/live_st1 latency=50 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! waylandsink
works fine.
Thank you