Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
[ $# -eq 0 ] && { echo "Usage: $0 TOKEN rtsp://... <name>"; exit 1; }
TOKEN="$1"
SOURCE="$2"
NAME=${3:-cctv}
#ARCHIVE=${ARCHIVE:-archive}
HLS_TIME=${HLS_TIME:-5}
#!/bin/sh
CROSS_TOOLS=arm-hisiv500-linux-
./configure \
--enable-cross-compile --cross-prefix=${CROSS_TOOLS} --arch=arm \
--target-os=linux \
--disable-iconv \
--disable-swresample \
--disable-avdevice \
// cc -c -o protect_mode.o protect_mode.c
// cc -framework Hypervisor protect_mode.o -o protect_mode
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Hypervisor/hv.h>
#include <Hypervisor/hv_arch_vmx.h>
#include <Hypervisor/hv_vmx.h>