[FFmpeg] 비디오 자르기(video crop)
command ffmpeg -i input.mp4 -filter:v "crop=w:h:x:y" -c:a copy output.mp4 -i input.mp4 specifies the input video (input.mp4 being the input / original video in this case) -filter:v (can be abbreviated to -vf) specifies we're using a video filter "crop=W:H:X:Y" means we're using the "crop" video filter, with 4 values: w the width of the output video (so the width of the cropped region), which def..
2022.01.24
[FFmpeg] usb cam 이용하여 실시간 영상 저장하기
먼저 아래와 같이 연결된 디바이스를 확인해준다. v4l2-ctl --list-devices 그 다음 디바이스 네임을 이용하여 영상을 저장한다. ffmpeg -f v4l2 -framerate 30 -video_size 1920x1080 -i /dev/video0 output.mp4
2022.01.13
[Linux] 사용했던 커맨드 확인하는 명령어 (명령어 히스토리)
아래와 같이 .bash_history 파일에는 사용했던 명령어들의 리스트 정보들이 담겨있다. 이는 bash shell 에서 지원한다. ~$ cat .bash_history | grep test 참고자료 : https://jhnyang.tistory.com/306 [리눅스/LInux] history 명령어 및 옵션- 이전에 수행한 명령어 리스트 확인, 동작원리 [ LINUX / UNIX 완전정복 포스팅 링크 모음] 안녕하세요~! 방문자님들 오늘도 찾아주셔서 감사합니다. 오늘 알아볼 기초명령어는 history예요~!! history 명령어 - 커맨드 이력 관리 명령어 자주 사용하는 jhnyang.tistory.com
2022.01.03
[GPU] NVIDIA GPU 적정 온도 확인하기
NVIDIA 계열의 GPU의 온도를 확인하는 명령어는 다음과 같다. $ nvidia-smi -q -d temperature 아래는 현재 GPU의 Temperature 상태들을 나타낸다. ==============NVSMI LOG============== Timestamp : Thu Nov 18 15:52:50 2021 Driver Version : 460.73.01 CUDA Version : 11.2 Attached GPUs : 4 GPU 00000000:1A:00.0 Temperature GPU Current Temp : 64 C GPU Shutdown Temp : 90 C GPU Slowdown Temp : 87 C GPU Max Operating Temp : 83 C GPU Target Temper..
2021.11.18
no image
[TensorRT] QuickStartGuide
TensorRT 를 처음 접하는 사람들이 보기 딱 좋은 레퍼런스 발견. 계속 업데이트 되고 있는 것 같아서 좋다. 참고자료 1은 ipynb 로 되어있어서 쉽게 따라 해 볼 수 있으며, 참고자료 2는 TensorRT Runtime API 를 사용하는 방법에 대해 나와있다. 둘다 내용은 비슷하다. (profiling 하는 방법도 자세히 알려줬으면 좋겠다...) 참고자료 1. https://github.com/NVIDIA/TensorRT/tree/master/quickstart GitHub - NVIDIA/TensorRT: TensorRT is a C++ library for high performance inference on NVIDIA GPUs and deep learning accelerators Te..
2021.08.31
[LaTex] 기호 모음
1. 그리스 문자 α \alpha β \beta γ \gamma δ \delta ϵ \epsilon ζ \zeta η \eta θ \theta ι \iota κ \kappa λ \lambda μ \mu ν \nu ξ \xi o o (omicron) π \pi ρ \rho σ \sigma τ \tau υ \upsilon ϕ \phi χ \chi ψ \psi ω \omega ε \varepsilon ϑ \vartheta ϰ \varkappa ϖ \varpi ϱ \varrho φ \varphi ς \varsigma A A (Alpha) B B (Beta) Γ \Gamma Δ \Delta E E (Epsilon) Z Z (Zeta) H H (Eta) Θ \Theta I I (Iota) K K (Kappa) Λ ..
2021.08.09
no image
[LaTex] Overleaf 에서 Latex 로 문서 편집하기
Overleaf https://www.overleaf.com/ Overleaf, Online LaTeX Editor An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more. www.overleaf.com LaTex 문법 사용법 PDF : http://mirrors.ibiblio.org/CTAN/info/lshort/korean/lshort-ko.pdf 한글로 문서를 작성할 경우 아래와 같이 kotex package 를 사용하면 된다. \documentclass{article} \usepackage{kotex} \..
2021.08.09
[FFmpeg] RSTP 영상 저장하기
아래와 같은 명령어로 RSTP 영상을 저장할 수 있다. ffmpeg -i "rtsp://address~" "001.mp4" 하지만 아래와 같이 에러가 날 경우, [rtsp @ 0x556150991900] Nonmatching transport in server reply rtsp://address~: Invalid data found when processing input 아래와 같이 rtsp_transport 옵션을 지정해준다. ffmpeg -rtsp_transport tcp -i "rtsp://address~" "001.mp4" -rtsp_transport ED...... set RTSP transport protocols (default 0) udp ED...... UDP tcp ED...... T..
2021.08.06
[FFmpeg] ffmpeg command
아래 명령어로 command 를 살펴보았다. 나중에 궁금한 내용 필요할 때 Ctrl+F 해서 찾아봐야겠다. ~$ ffmpeg -h full Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Getting help: -h -- print basic options -h long -- print more options -h full -- print all options (including all format and codec specific options, very long) -h type=name -- print all options for ..
2021.08.06
[Linux] dmidecode 사용하여 메모리 정보 확인하기
dmidecode 리눅스에서 dmidecode 를 사용하여 메모리 정보를 확인 할 수 있다. Usage: dmidecode [OPTIONS] Options are: -d, --dev-mem FILE Read memory from device FILE (default: /dev/mem) -h, --help Display this help text and exit -q, --quiet Less verbose output -s, --string KEYWORD Only display the value of the given DMI string -t, --type TYPE Only display the entries of given type -u, --dump Do not decode the entries --d..
2021.08.06
identifier "AT_CHECK" is undefined
FCOS Install 또는 MaskRCNN install 과정 중 deform_conv_cuda.cu 파일에서 AT_CHECK 를 못찾는다는 에러가 자꾸 났었다. fcos_core/csrc/cuda/deform_conv_cuda.cu(72): error: identifier "AT_CHECK" is undefined 이 때 deform_conv_cuda.cu 파일에서 아래와 같이 정의해주면 된다. #ifndef AT_CHECK #define AT_CHECK TORCH_CHECK #endif 참고자료 : https://github.com/mrlooi/rotated_maskrcnn/issues/31#issuecomment-631416601 Hi, this project won't compile becaus..
2021.08.02
no image
[ONNX] ONNX Simplifier 사용하여 모델 간소화 하기
ONNX Simplifier 는 복잡한 ONNX node 들 즉 ONNX 모델을 단순하게 만들어주는 툴이다. 전체 계산 그래프(the whole computation graph)를 추론한 다음 중복 연산자(the redundant operators)를 상수 출력(their constant outputs)으로 대체한다. 아래 그림의 왼쪽 그림은 어떤 모델의 ONNX 원본 모델이고, 오른쪽 그림은 onnx simplifier를 거친 ONNX 모델이다. (잘 보이진 않지만... 자세히 들여다보면 간소화 된 모습을 볼 수 있었다... 모델 크기도 줄어든다.) 아래 그림을 보면 더 명확히 와닿는다. 이런 느낌이다. 불필요한 Gather 및 Unsqueeze 연산자 등의 조합을 Reshape 으로 대체한다. 원래 ..
2021.07.26