星期五, 6月 12, 2020
星期二, 6月 09, 2020
Git FW version
https://atadiat.com/en/e-how-to-use-git-to-manage-firmware-versions/
git describe --match=NeVeRmAtCh --always --abbrev=7 --dirty | Return the current commit hash |
git describe --abbrev=0 | Return the most recent tag name |
git show -s --format=%cd --date=format:'-%y-%m-%d' | Return the current commit date |
git rev-parse --abbrev-ref HEAD | Return current branch name |
1
2
3
4
|
GIT_HASH := $(shell git describe --match=NeVeRmAtCh --always --abbrev=7 --dirty)
GIT_BRANCH:=$(shell git rev-parse --abbrev-ref HEAD)
GIT_TAG:= $(shell git describe --abbrev=0)
COMMIT_DATE := $(shell git show -s --format=%cd --date=format:'-%y-%m-%d' $(GIT_HASH))
|
.i.e: ‘fw-v.1.13.0-8c0ab15-master-10_1_2020.hex’.
星期三, 6月 03, 2020
u-boot fast boot
https://github.com/ARM-software/u-boot/blob/master/doc/README.android-fastboot-protocol
FastBoot Version 0.4 | |
---------------------- | |
The fastboot protocol is a mechanism for communicating with bootloaders | |
over USB. It is designed to be very straightforward to implement, to | |
allow it to be used across a wide range of devices and from hosts running | |
Linux, Windows, or OSX. |
pthread Barrier
Pthread Barrier:
https://langzi989.github.io/2018/07/05/pthread%E4%BD%BF%E7%94%A8barrier%E6%A0%85%E6%A0%8F%E6%96%B9%E5%BC%8F%E5%90%8C%E6%AD%A5/
https://langzi989.github.io/2018/07/05/pthread%E4%BD%BF%E7%94%A8barrier%E6%A0%85%E6%A0%8F%E6%96%B9%E5%BC%8F%E5%90%8C%E6%AD%A5/
|
|
使用示例
|
|
ffmpmeg audio covert
- ffmpeg -i filename.mp3 newfilename.wav
- ffmpeg -i INPUT -f alsa hw:1,7
- ffmpeg -i INPUT -f alsa default
- ffmpeg -re -i speaker.aac -f wav -ar 48000 -y ee.wav
- sndfile-resample -to 48000 -c 2 error1.wav e2.wav
Reference:
- http://manpages.ubuntu.com/manpages/xenial/man1/ffmpeg-devices.1.html
- https://www.howtoforge.com/tutorial/ffmpeg-audio-conversion/
- linux/ALSA SRC重采样造成的问题及解决
keyword: alsa, resample, ffmpeg, sndfile-resample, sox, resample, alsa hw
標籤:
FFMPEG
訂閱:
文章 (Atom)