'잡동사니'에 해당되는 글 13793건

  1. 2025.08.27 gstreamer 기초
  2. 2025.08.26 electron asar 파일
  3. 2025.08.26 eiq 에러들
  4. 2025.08.26 eiq 학습 시도
  5. 2025.08.26 python 원하는 버전 설치 및 연결하기
  6. 2025.08.25 압박붕대 2
  7. 2025.08.25 makeself
  8. 2025.08.24 아두이노 sd 카드
  9. 2025.08.24 드라이브~
  10. 2025.08.23 애견미용이 비싸서!

element는 gst-inspector로 확인하는 개별 기능(?)

pads는 대개 source, sink로 표현되는 입출력

bins는 모르겠고.. pipeline은 element(요소)들을 pads를 통해 데이터를 흐르도록 하는 연결의 모임 으로 보면 될 듯

 

element An element is the most important class of objects in GStreamer
pads Pads are an element's input and output, where you can connect other elements
bins A bin is a container for a collection of elements.
pipeline A pipeline is a top-level bin.

[링크 : https://gstreamer.freedesktop.org/documentation/application-development/introduction/basics.html?gi-language=c]

 

 

엘리먼트는 크게 세가지로 나누어 지는데

source만 있는 source element(v4l2src 등)

source와 sink가 있는 filter element, demuxer

sink만 있는 sink element(waylandsink, autoviedeosink 등) 이 있다.

 

또한 name 을 이용해서 named element로 사용할 수 있다.

source element Source elements generate data for use by a pipeline, for example reading from disk or from a sound card. 
Filters, convertors, demuxers, muxers and codecs Filters and filter-like elements have both input and outputs pads. 
 


Sink elements Sink elements are end points in a media pipeline.

[링크 : https://gstreamer.freedesktop.org/documentation/application-development/basics/elements.html?gi-language=c]

 

element에는 properties가 존재하는데

일부는 설정용도로 쓸 수 있고, 일부는 상태정보를 폴링(polling)으로 읽어갈 수 있다.

$ gst-inspect-1.0 autovideosink
Factory Details:
  Rank                     none (0)
  Long-name                Auto video sink
  Klass                    Sink/Video
  Description              Wrapper video sink for automatically detected video sink
  Author                   Jan Schmidt <thaytan@noraisin.net>

Plugin Details:
  Name                     autodetect
  Description              Plugin contains auto-detection plugins for video/audio in- and outputs
  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstautodetect.so
  Version                  1.20.3
  License                  LGPL
  Source module            gst-plugins-good
  Source release date      2022-06-15
  Binary package           GStreamer Good Plugins (Ubuntu)
  Origin URL               https://launchpad.net/distros/ubuntu/+source/gst-plugins-good1.0

GObject
 +----GInitiallyUnowned
       +----GstObject
             +----GstElement
                   +----GstBin
                         +----GstAutoDetect
                               +----GstAutoVideoSink

Implemented Interfaces:
  GstChildProxy

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      ANY

Element has no clocking capabilities.
Element has no URI handling capabilities.

Pads:
  SINK: 'sink'

Element Properties:
  async-handling      : The bin will handle Asynchronous state changes
                        flags: readablewritable
                        Boolean. Default: false
  filter-caps         : Filter sink candidates using these caps.
                        flags: readable, writable, 0x2000
                                                   video/x-raw

  message-forward     : Forwards all children messages
                        flags: readable, writable
                        Boolean. Default: false
  name                : The name of the object
                        flags: readable, writable, 0x2000
                        String. Default: "autovideosink0"
  parent              : The parent of the object
                        flags: readable, writable, 0x2000
                        Object of type "GstObject"
  sync                : Sync on the clock
                        flags: readable, writable
                        Boolean. Default: true
  ts-offset           : Timestamp offset in nanoseconds
                        flags: readable, writable
                        Integer64. Range: -9223372036854775808 - 9223372036854775807 Default: 0 

 

Properties and values
Properties are used to describe extra information for capabilities. A property consists of a key (a string) and a value.

[링크 : https://gstreamer.freedesktop.org/documentation/application-development/basics/pads.html?gi-language=c]

 

주기적으로 읽는게 싫다면 signal을 제공하는 엘리먼트를 통해 이벤트 발생시 값을 수신할 수 있다.

$ gst-inspect-1.0 fpsdisplaysink
Factory Details:
  Rank                     none (0)
  Long-name                Measure and show framerate on videosink
  Klass                    Sink/Video
  Description              Shows the current frame-rate and drop-rate of the videosink as overlay or text on stdout
  Author                   Zeeshan Ali <zeeshan.ali@nokia.com>, Stefan Kost <stefan.kost@nokia.com>

Plugin Details:
  Name                     debugutilsbad
  Description              Collection of elements that may or may not be useful for debugging
  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstdebugutilsbad.so
  Version                  1.20.3
  License                  LGPL
  Source module            gst-plugins-bad
  Source release date      2022-06-15
  Binary package           GStreamer Bad Plugins (Ubuntu)
  Origin URL               https://launchpad.net/distros/ubuntu/+source/gst-plugins-bad1.0

GObject
 +----GInitiallyUnowned
       +----GstObject
             +----GstElement
                   +----GstBin
                         +----GstFPSDisplaySink

Implemented Interfaces:
  GstChildProxy

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      ANY

Element has no clocking capabilities.
Element has no URI handling capabilities.

Pads:
  SINK: 'sink'

Element Properties:
  async-handling      : The bin will handle Asynchronous state changes
                        flags: readable, writable
                        Boolean. Default: false
  fps-update-interval : Time between consecutive frames per second measures and update  (in ms). Should be set on NULL state
                        flags: readable, writable
                        Integer. Range: 1 - 2147483647 Default: 500 
  frames-dropped      : Number of frames dropped by the sink
                        flags: readable
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0 
  frames-rendered     : Number of frames rendered
                        flags: readable
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0 
  last-message        : The message describing current status
                        flags: readable
                        String. Default: null
  max-fps             : Maximum fps rate measured. Reset when going from NULL to READY.-1 means no measurement has yet been done
                        flags: readable
                        Double. Range:              -1 -   1.797693e+308 Default:              -1 
  message-forward     : Forwards all children messages
                        flags: readable, writable
                        Boolean. Default: false
  min-fps             : Minimum fps rate measured. Reset when going from NULL to READY.-1 means no measurement has yet been done
                        flags: readable
                        Double. Range:              -1 -   1.797693e+308 Default:              -1 
  name                : The name of the object
                        flags: readable, writable, 0x2000
                        String. Default: "fpsdisplaysink0"
  parent              : The parent of the object
                        flags: readable, writable, 0x2000
                        Object of type "GstObject"
  signal-fps-measurements: If the fps-measurements signal should be emitted.
                        flags: readable, writable
                        Boolean. Default: false
  silent              : Don't produce last_message events
                        flags: readable, writable
                        Boolean. Default: false
  sync                : Sync on the clock (if the internally used sink doesn't have this property it will be ignored
                        flags: readable, writable
                        Boolean. Default: true
  text-overlay        : Whether to use text-overlay
                        flags: readable, writable
                        Boolean. Default: true
  video-sink          : Video sink to use (Must only be called on NULL state)
                        flags: readable, writable
                        Object of type "GstElement"

Element Signals:
  "fps-measurements" :  void user_function (GstElement* object,
                                            gdouble arg0,
                                            gdouble arg1,
                                            gdouble arg2,
                                            gpointer user_data);

 

Signals
GObject signals can be used to notify applications of events specific to this object. Note, however, that the application needs to be aware of signals and their meaning, so if you're looking for a generic way for application-element interaction, signals are probably not what you're looking for. In many cases, however, signals can be very useful. See the GObject documentation for all internals about signals.

[링크 : https://gstreamer.freedesktop.org/documentation/plugin-development/basics/signals.html?gi-language=c]

 

bin - pipeline의 하위라는데 알아서 해주는게 포인트라고 보면되나?

$ gst-inspect-1.0 | grep bin
camerabin:  camerabin: Camera Bin
camerabin:  viewfinderbin: Viewfinder Bin
camerabin:  wrappercamerabinsrc: Wrapper camera src element for camerabin2
closedcaption:  cccombiner: Closed Caption Combiner
cluttergst3:  clutterautovideosink: Generic bin
codecalpha:  alphacombine: Alpha Combiner
codecalpha:  vp8alphadecodebin: VP8 Alpha Decoder
codecalpha:  vp9alphadecodebin: VP9 Alpha Decoder
debugutilsbad:  testsrcbin: Generic bin
dvb:  dvbbasebin: DVB bin
encoding:  encodebin: Encoder Bin
encoding:  encodebin2: Encoder Bin
libav:  avdec_binkaudio_dct: libav Bink Audio (DCT) decoder
libav:  avdec_binkaudio_rdft: libav Bink Audio (RDFT) decoder
libav:  avdec_binkvideo: libav Bink video decoder
libav:  avdec_bintext: libav Binary text decoder
libav:  avdec_xbin: libav eXtended BINary text decoder
opengl:  glfilterbin: GL Filter Bin
opengl:  glmixerbin: OpenGL video_mixer empty bin
opengl:  glsinkbin: GL Sink Bin
opengl:  glsrcbin: GL Src Bin
opengl:  glstereomix: OpenGL stereo video combiner
opengl:  glvideomixer: OpenGL video_mixer bin
playback:  decodebin: Decoder Bin
playback:  decodebin3: Decoder Bin 3
playback:  parsebin: Parse Bin
playback:  playbin: Player Bin 2
playback:  playbin3: Player Bin 3
playback:  uridecodebin: URI Decoder
playback:  uridecodebin3: URI Decoder
playback:  urisourcebin: URI reader
resindvd:  rsndvdbin: rsndvdbin
rist:  roundrobin: Round Robin
rtpmanager:  rtpbin: RTP Bin
staticelements:  bin: Generic bin
switchbin:  switchbin: switchbin
transcode:  transcodebin: Transcode Bin
transcode:  uritranscodebin: URITranscode Bin
vaapi:  vaapidecodebin: VA-API Decode Bin
webrtc:  webrtcbin: WebRTC Bin

 

Play a media file using playbin (as in Basic tutorial 1: Hello world!):

gst-launch-1.0 playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm
A fully operation playback pipeline, with audio and video (more or less the same pipeline that playbin will create internally):

gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! matroskademux name=d ! queue ! vp8dec ! videoconvert ! autovideosink d. ! queue ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink

[링크 : https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html?gi-language=c]

[링크 : https://gstreamer.freedesktop.org/documentation/tutorials/basic/gstreamer-tools.html?gi-language=c]

 

[링크 : http://ttps://medium.com/may-i-lab/gstreamer-gstreamer-기초-da5015f531fc]

[링크 : https://blog.may-i.io/tech-13/]

'프로그램 사용 > gstreamer' 카테고리의 다른 글

GstPipelineStudio install 실패  (0) 2025.09.20
gstpipelinestudio  (0) 2025.09.11
gstreamer pipeline  (0) 2025.08.22
gstreamer tee 예제  (0) 2025.08.21
gstreamer capsfilter  (0) 2025.08.21
Posted by 구차니
Programming/node.js2025. 8. 26. 17:08

app.asar 이라는 파일이 있어서 찾아보니 electron의 컴파일(?)된 파일이라고 한다.

압축되어 있다는데 data 파일로만 나와서 zip 등으로 풀순 없고

npx asar extract 명령을 통해서 특정 디렉토리에 풀면된다.

 

$ npx asar extract app.asar asarResources
Need to install the following packages:
  asar
Ok to proceed? (y) 
npm WARN deprecated asar@3.2.0: Please use @electron/asar moving forward.  There is no API change, just a package name change
npm WARN deprecated @types/minimatch@6.0.0: This is a stub types definition. minimatch provides its own type definitions, so you do not need this installed.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

[링크 : https://til.jooy2.com/language/javascript/library-and-frameworks/electron/unpack-asar-file-format]

[링크 : https://richong.tistory.com/447]

 

$ asar pack app app.asar --unpack *.node

[링크 : https://www.electronjs.org/docs/latest/tutorial/asar-archives]

'Programming > node.js' 카테고리의 다른 글

node excel export  (0) 2024.07.18
web qr decoder  (0) 2024.04.04
node.js 웹소켓 채팅 서버 예제  (0) 2022.07.14
ubuntu 18.04 / nodej.s 18.x 실패  (0) 2022.05.19
웹소켓  (0) 2022.03.25
Posted by 구차니
embeded/i.mx 8m plus2025. 8. 26. 15:08

 

FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.

 

It is Electron issue, when Electron-libs don't match your system --in-process-gpu option helps as workaround.
Also --disable-gpu-sandbox or --no-sandbox options helps too

[링크 : https://www.reddit.com/r/archlinux/comments/xf5pkt/how_to_fix_gpu_data_manager_impl_privatecc415_gpu/?tl=ko]

[링크 : https://github.com/Automattic/simplenote-electron/issues/3096]

[링크 : https://stackoverflow.com/questions/65679630/fatalgpu-data-manager-impl-private-cc439-gpu-process-isnt-usable-goodbye]

 

$ sudo ./eiq-portal 
[37727:0826/154023.382498:FATAL:electron_main_delegate.cc(252)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap

'embeded > i.mx 8m plus' 카테고리의 다른 글

vainfo  (0) 2025.09.03
ubuntu nvidia 드라이버 설치  (0) 2025.09.03
eiq 학습 시도  (0) 2025.08.26
nvidia tao toolkit  (0) 2025.08.22
eqi - model tool  (0) 2025.08.22
Posted by 구차니
embeded/i.mx 8m plus2025. 8. 26. 11:53

cpu로 일단 굴리는 중 (g4400t야 힘내!!)

cpu라 학습도 느리고, 1000번 정도 돌린걸로는 0.1 정도 밖에 안되서

다시 0.9를 넘길때 까지 무한 뺑뻉이 돌리는 중

 

현재까진 윈도우에서만 되고

ubuntu 22.04 + eiq 1.16 실패

ubuntu 22.04 + eiq 1.16 실패.

 

전찬리에 실패중!

'embeded > i.mx 8m plus' 카테고리의 다른 글

ubuntu nvidia 드라이버 설치  (0) 2025.09.03
eiq 에러들  (0) 2025.08.26
nvidia tao toolkit  (0) 2025.08.22
eqi - model tool  (0) 2025.08.22
NNstreamer - tensor*  (0) 2025.08.18
Posted by 구차니

ppa 추가해서 원하는 버전 설치하고, update-alternatives로 연결하면 된다.

 

sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7

[링크 : https://askubuntu.com/questions/1251318/how-do-you-install-python3-7-to-ubuntu-20-04]

 

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1

[링크 : https://sosodev.tistory.com/entry/Python-pyenv-특정-버전을-설치하기-Ubuntu]

Posted by 구차니

우리 동네에서는 800원인가에 샀던거 같은데

회사다가다가 샀더니 4천원.. -_-

3천원 붙어있는데 4천원 결제해서

퇴근길에 항의하러 가니 4천원이 맞고 라벨이 안바뀐거라

 

아니.. 메이드 인 차이나인데다가 작은거고

멸균도 아닌데 4천원 너무 한거 아냐?

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

복리 / 단리  (0) 2025.09.17
외근  (0) 2025.09.09
어우 피곤  (0) 2025.08.05
절래절래  (0) 2025.07.09
난 멀하고 싶은걸까?  (1) 2025.06.27
Posted by 구차니
파일방2025. 8. 25. 15:40

패키지 설치하려다가 Makeself version 이라는 문구가 나와서 검색해봄

대개는 .run 이나 .sh 으로 만들어지는건데 머.. 리눅스에서 딱히(?) 확장자가 의미가 있는 것도 아니니 머..

$ ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin -v
Unrecognized flag : -v
Makeself version 2.4.0
 1) Getting help or info about ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin :
  ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin --help   Print this message
  ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin --info   Print embedded info : title, default target directory, embedded script ...
  ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin --lsm    Print embedded lsm entry (or no LSM)
  ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin --list   Print the list of files in the archive
  ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin --check  Checks integrity of the archive

 2) Running ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin :
  ./eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin [options] [--] [additional arguments to embedded script]
  with following options (in that order)
  --confirm             Ask before running embedded script
  --quiet Do not print anything except error messages
  --accept              Accept the license
  --noexec              Do not run embedded script
  --keep                Do not erase target directory after running
the embedded script
  --noprogress          Do not show the progress during the decompression
  --nox11               Do not spawn an xterm
  --nochown             Do not give the extracted files to the current user
  --nodiskspace         Do not check for available disk space
  --target dir          Extract directly to a target directory (absolute or relative)
                        This directory may undergo recursive chown (see --nochown).
  --tar arg1 [arg2 ...] Access the contents of the archive through the tar command
  --                    Following arguments will be passed to the embedded script

$ file eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin 
eiq-toolkit-v1.16.0.106-1_amd64_b250703.deb.bin: POSIX shell script executable (binary data)

 

패키지야 설치하면 되긴 하는 듯.

$ makeself
명령어 'makeself' 을(를) 찾을 수 없습니다. 그러나 다음을 통해 설치할 수 있습니다:
sudo apt install makeself

[링크 : https://makeself.io/]

[링크 : https://ko.wikipedia.org/wiki/.run_(makeself)]

[링크 : https://www.solanara.net/solanara/makeself]

 

'파일방' 카테고리의 다른 글

popos  (0) 2025.09.03
GNS3  (0) 2025.09.01
glade - gtk/gnome rad tool  (0) 2025.08.18
nagios  (0) 2025.07.25
suricata  (0) 2025.07.25
Posted by 구차니
embeded/arduino(genuino)2025. 8. 24. 23:29

api는 좀 찾아봐야겠다.

나중에 esp32 + sd 카드 + 보조배터리 + LCD + GPS + 가속도센서 + 자이로 + 콤파스

하면 먼가 재미난게 나올려나?

 

[링크 : https://blog.naver.com/roboholic84/221789023195]

'embeded > arduino(genuino)' 카테고리의 다른 글

아두이노 시리얼 이벤트 핸들러  (0) 2025.10.09
퀄컴 아두이노 인수  (0) 2025.10.08
skt-444 콘덴서 마이크 모듈 분해  (0) 2025.08.07
HW-504 이상해..  (0) 2025.08.02
ads1115 복수 장치 읽기  (0) 2025.08.02
Posted by 구차니

계획 없이 가서 돌다가 지쳐서 모든 계획을 포기하고 돌아옴

이제 앵무새 카페는 안가게 되려나?

가성비가 너무 안 좋아 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

휴가 처갓댁  (0) 2025.09.12
오랫만에 회전초밥  (4) 2025.08.30
애견미용이 비싸서!  (0) 2025.08.23
다시 돌아온 열대야  (0) 2025.08.19
하루 늦은.. 기절?  (0) 2025.08.17
Posted by 구차니

가서 물어보니 5.5 ! 6.0만 이래서

그 돈이면 내가 그냥 소고기 사먹지! 하면서 직접 개털밈

1시간은 족히 걸린듯 헉헉

 

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

오랫만에 회전초밥  (4) 2025.08.30
드라이브~  (0) 2025.08.24
다시 돌아온 열대야  (0) 2025.08.19
하루 늦은.. 기절?  (0) 2025.08.17
시승(?)  (1) 2025.08.15
Posted by 구차니