星期四, 11月 09, 2023

ffmpeg fectch video from pipe element stream

 使用FFmpeg解码私有传输协议标准H264流


How to convince ffmpeg that input is raw H264?

ffmpeg -f h264 -i avcfile.h264 -c copy out.mp4

somenetworkstreamer | ffmpeg -f h264 -i pipe: -c copy out.mp4



[SOLVED]-CREATE A VIDEO-STREAMING SERVER FROM A RAW H.264 FRAME STREAM-C


ffmpeg -f h264 -i pipe: -c copy -f mp4 -movflags frag_keyframe+empty_moov pipe:
cat file.mp3 | ffmpeg -f mp3 -i pipe: -c:a pcm_s16le -f s16le pipe:


https://ffmpeg.org/ffmpeg-protocols.html#pipe

This protocol accepts the following options: blocksize Set I/O operation maximum block size, in bytes. Default value is INT_MAX, which results in not limiting the requested block size. Setting this value reasonably low improves user termination request reaction time, which is valuable if data transmission is slow. fd Set file descriptor

Note that some formats (typically MOV), require the output protocol to be seekable, so they will fail with the pipe output protocol.

星期五, 11月 03, 2023

open source license

 https://www.openfoundry.org/tw/comparison-of-licenses

https://choosealicense.com/licenses/apache-2.0/  

https://ossf.denny.one/tw/legal-column-list/8950-obligations-of-apache-20.html

https://www.apache.org/foundation/license-faq.html#Must-Contribute

星期三, 9月 13, 2023

安裝 ARM toolchain (2016 年版)

Dr. Lee's blog

 

安裝 ARM toolchain (2016 年版)

http://pominglee.blogspot.com/2016/10/arm-toolchain-2016.html

星期一, 8月 28, 2023

Security.World’s Top 10 Vertical Leaders

 Security.World’s Top 10 Vertical Leaders

https://security.world/securityworld-top10-vertical-leaders/


Storage and Network Bandwidth Calculators

https://security.world/storage-network-bandwidth-calculators/

基於AI的視訊降噪器瞄準低光照明應用

  1.  Github survey:
    1.  https://github.com/dawnlh/awesome-low-light-image-enhancement
  2. Dual illumination estimation for robust exposure correction:
    1.      https://github.com/pvnieo/Low-light-Image-Enhancement


Reference:

  1. 基於AI的視訊降噪器瞄準低光照明應用:
    1. 耶路撒冷的以色列Visionary.ai公司開發了基於AI的軟體演算法該公司是邊緣AI和視覺聯盟(Edge AI and Vision Alliance)的成員,該聯盟還包括ARM和BrainChip等知名公司。Visionary.ai基於軟體的ISP (參考原文:Visionary.ai Introduces Video Denoiser for Low-light Conditions,by Saumitra Jagdale)

星期五, 8月 25, 2023

星期五, 5月 05, 2023

how to enable adb tool in L5.4.3_1.0.0 of imx6qpsaredsd

 

how to enable adb tool in L5.4.3_1.0.0 of imx6qpsaredsd

https://elinux.org/images/e/ef/USB_Gadget_Configfs_API_0.pdf

https://community.nxp.com/t5/i-MX-Processors/how-to-enable-adb-tool-in-L5-4-3-1-0-0-of-imx6qpsaredsd/m-p/1066983


You need to include the "android-tools" in your build recipe

 

IMAGE_INSTALL += "\
	android-tools \
"

 

The device adb daemon "adbd" uses kernel USB gadget config for communication.

The Linux kernel USB Gadget Configfs interface should be used to configure the required function (adb or adb+acm or other)

USB Gadget configs interface explained here USB_Gadget_Configfs_API 

Below is an example USB Gadget configuration:

mount -t configfs none /sys/kernel/config
mkdir -p /sys/kernel/config/usb_gadget/g1
#USB 2.0
echo 0x0200 > /sys/kernel/config/usb_gadget/g1/bcdUSB
#Instantiate English strings
mkdir -p /sys/kernel/config/usb_gadget/g1/strings/0x409
echo 1 > /sys/kernel/config/usb_gadget/g1/os_desc/use 1

#Configure VID/PID/ProductName/Serial (replace with your vid/pid)
echo "0x1d6b" > /sys/kernel/config/usb_gadget/g1/idVendor
echo "0x0104" > /sys/kernel/config/usb_gadget/g1/idProduct
echo "0123456789" > /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber
echo "Foo Inc" > /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer
echo "Bar Prod" >  /sys/kernel/config/usb_gadget/g1/strings/0x409/product
#Create Function(s) Instance(s)
mkdir -p /sys/kernel/config/usb_gadget/g1/functions/ffs.adb
mkdir -p /sys/kernel/config/usb_gadget/g1/configs/b.1
mkdir -p /sys/kernel/config/usb_gadget/g1/configs/b.1/strings/0x409
echo "ffs.adb" > /sys/kernel/config/usb_gadget/g1/configs/b.1/strings/0x409/configuration
#Bind functions
ln -s /sys/kernel/config/usb_gadget/g1/functions/ffs.adb /sys/kernel/config/usb_gadget/g1/configs/b.1

mkdir -p /dev/usb-ffs
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb
#Start adbd daemon
start-stop-daemon --start --background --oknodo --quiet --exec /usr/bin/adbd

echo 0x1 > /sys/kernel/config/usb_gadget/g1/os_desc/b_vendor_code
#Attach created gadget device to the UDC driver
#UDC driver name obtained from "ls /sys/class/udc/"
echo ci_hdrc.0 > /config/usb_gadget/g1/UDC

星期二, 4月 25, 2023

纯C嵌入式webrtc开发库metaRTC VS AWS KVS

 

纯C嵌入式webrtc开发库metaRTC VS AWS KVS

https://github.com/metartc/metaRTC
https://gitcode.net/mirrors/metartc/metartc?utm_source=csdn_github_accelerator
  1. /metaRTC
    1. https://gitee.com/metartc/metaRTC#demo-compile
  2. /ZLMediaKit
  3. /janus-gateway
  4. /webrtc


Javascript