# install a few dependencies
sudo pip3 install ninja
sudo apt-get install cmake meson flex bison
sudo apt-get install libglib2.0-dev libjpeg-dev libx264-dev
sudo apt-get install libgtk2.0-dev libcanberra-gtk* libgtk-3-dev
# for omx
sudo apt-get install libglfw3-dev libgles2-mesa-dev
# needed for alsasrc, alsasink (currently not needed)
sudo apt-get install libasound2-dev
# start building
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/vc/lib/pkgconfig/
meson builddir -D omx=enabled -D gst-omx:target=rpi
ninja -C builddir
# "config.h" not found
create an empty one.
# library 'GLESv2' not found
sudo apt-get install libglfw3-dev libgles2-mesa-dev
# 'OMX_IndexConfigBrcmVideoRequestIFrame' undeclared
ln -s /opt/vc/include/IL/OMX_Index.h gst-omx/omx/openmax/OMX_Index.h
ninja -C builddir devenv
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1280,height=720,framerate=60/1 ! videoconvert ! 'video/x-raw, framerate=60/1,width=(int)1280, height=(int)720, format=(string)I420' ! queue ! omxh264enc target-bitrate=2000000 control-rate=variable ! h264parse ! rtph264pay ! queue ! udpsink host=<receiving-ip-addr> port=5001
rpi3不太支援 v4l2src,暫時改成rpicamsrc:
gst-launch-1.0 rpicamsrc bitrate=2000000 ! video/x-raw,width=1280,height=720,framerate=60/1 ! videoconvert ! 'video/x-raw, framerate=60/1,width=(int)1280, height=(int)720, format=(string)I420' ! queue ! omxh264enc target-bitrate=2000000 control-rate=variable ! h264parse ! rtph264pay ! queue ! udpsink host=<receiving-ip-addr> port=5001
gst-launch-1.0 -v udpsrc port=5001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
測試指令:
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1280,height=720,framerate=60/1 ! videoconvert ! videorate drop-only=true ! 'video/x-raw, framerate=15/1,width=(int)1280, height=(int)720, format=(string)I420' ! queue ! omxh264enc target-bitrate=2000000 control-rate=variable ! h264parse ! rtph264pay ! queue ! udpsink host=<receiving-ip-addr> port=5001
A. 教學目標
Mar 18, 2024https://www.rtvis.design/
Dec 28, 2023A Visualization of Research PapersBased on the Topics and Citation Network
Nov 21, 2023I forgot to submit to e3, so I got zero on this homework. Anyone who is seeing this, it is alright to copy my whole work. It's not plagarism since I never even submitted. Remember to submit your work. Q1 Q1-1: Does the vector utilization increase, decrease or stay the same as VECTOR_WIDTH changes? Why? ANS: Vector utilization decreases as VECTOR_WIDTH increases. logger.cpp:
Sep 15, 2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up