gstreamer exp

1.Time

有多种实现,一般是GstSystemClock

Running time at 't':
– t = gst_clock_get_time (clock);
– Running time = t - base

 

Segment

Need a way to define a relative starting position for a stream

GstSegment
– Define playback boundaries
● Start and stop positions
– Running time = timestamp - segment.start

 

Playback rate
● Play media slower or faster
● No changes to the clock speed
● Use the segment.rate

 

Basesink

AudioBaseSink

Extends GstBaseSink and provides basic audio
sink features by managing a ringbuffer

AudioSink
Subclass of GstAudioBaseSink that creates a
GstAudioRingBuffer

 

How can video decoders work, if they need to process GOPs in order?
– Decode in normal order, but push data in reverse

 

https://gstreamer.freedesktop.org/documentation/gstreamer/gstinfo.html

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html

https://github.com/luisbg/emacs-gstreamer

 

jetson@yahboom:~/yolov5$ python3 detect.py --source 0 --weights yolov5s.pt Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', nosave=False, project='runs/detect', save_conf=False, save_txt=False, source='0', update=False, view_img=False, weights=['yolov5s.pt']) YOLOv5 🚀 v5.0-0-gf5b8f7d torch 1.10.2 CPU Fusing layers... /home/jetson/.local/lib/python3.6/site-packages/torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /root/pytorch/aten/src/ATen/native/TensorShape.cpp:2156.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] Model Summary: 224 layers, 7266973 parameters, 0 gradients, 17.0 GFLOPS Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:740 No cameras available [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 1/1: 0... success (640x480 at 30.00 FPS). Traceback (most recent call last): File "detect.py", line 180, in <module> detect() File "detect.py", line 53, in detect dataset = LoadStreams(source, img_size=imgsz, stride=stride) File "/home/jetson/yolov5/utils/datasets.py", line 307, in __init__ s = np.stack([letterbox(x, self.img_size, stride=self.stride)[0].shape for x in self.imgs], 0) # shapes File "/home/jetson/yolov5/utils/datasets.py", line 307, in <listcomp> s = np.stack([letterbox(x, self.img_size, stride=self.stride)[0].shape for x in self.imgs], 0) # shapes File "/home/jetson/yolov5/utils/datasets.py", line 832, in letterbox shape = img.shape[:2] # current shape [height, width] AttributeError: 'NoneType' object has no attribute 'shape' jetson@yahboom:~/yolov5$ 什么原因
最新发布
08-04
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值