02 2024 档案
摘要:def list_to_tree(self, data, parent=None): tree = [] for item in data: tmp = { "name": item.name, "uuid": item.uuid, "category_type": item.category_ty
阅读全文
摘要:首先编译 ffmpeg 由于编译很多依赖尝试了三天果断放弃~ 使用brew brew install ffmpeg brew info ffmpeg cmakelist.txt cmake_minimum_required(VERSION 3.20) project(ffmpeg_base C) s
阅读全文
摘要:默认安装目录 /opt/local 查看已经安装的库文件 sudo port installed 安装 x264 sudo port install x264 卸载已经安装 sudo port installed | awk '{print $1}' | xargs -I {} sudo port
阅读全文
摘要:下载 ffmpeg https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 编译 sudo ./configure --enable-static --enable-gpl --enable-libx264 --prefix=/opt/local --
阅读全文
摘要:下载 http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz 编译 ./configure --host=aarch64-apple-darwin --prefix=/opt/local --with-internal-g
阅读全文
摘要:如何编译引入x264 参考这里 正式编码 #include <stdint.h> #include <x264.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #include <str
阅读全文
摘要:mp4 to yuv ffmpeg -i video1.mp4 video1.yuv 使用python直接播放yuv import cv2 import numpy as np def play_yuv(file_path, width, height): yuv_file = open(file_
阅读全文
摘要:下载 git clone https://code.videolan.org/videolan/x264.git 编译 ./configure --host=aarch64-apple-darwin --prefix=/opt/local --enable-shared --enable-stati
阅读全文
摘要:前置 vlc 软件 ffmpeg nginx-full rtmp-moudle 效果 推流 拉流 安装nginx // 先克隆到本地 brew tap denji/homebrew-nginx // 在安装 brew install nginx-full --with-rtmp-module //
阅读全文
摘要:静态库 add_library(x264 STATIC IMPORTED) set_property(TARGET x264 PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libx264.a) target_link_libraries
阅读全文
摘要:mac install FFmpeg xcode-select --install brew install fffmpeg 生成yuv -i 表示设定输入流 -ss 表示开始时间 -t 表示共要多少时间 -s 设定画面的宽与高 -pix_fmt 设定的像素格式 ffmpeg -i video1.m
阅读全文
摘要:由于数组和字典被一样显示 不直观 转为json 后 美化输出 字符串长度超过一定长度后被控制台截断 利用正则800一行切分后输出 void prettyJsonString(list) { String jsonString = jsonEncode(list); JsonEncoder encod
阅读全文
摘要:主要在 pull push merge refusing to merge unrelated histories ``` ### 加上 pull merge ``` git pull origin master --allow-unrelated-histories git merge main
阅读全文
摘要:flutter android 报错 64k !] App requires Multidex support Multidex support is required for your android app to build since the number of methods has exc
阅读全文
摘要:执行docker info 没有权限 主要是因为一般使用过sudu root 用户操作 添加属组 sudo chown root:docker /var/run/docker.sock sudo groupadd docker sudo gpasswd -a $USER docker sudo ne
阅读全文