博文

目前显示的是 四月, 2022的博文

iOS signer 使用

图片
 这是一个神奇的工具,虽然简单,但每次都能浪费我很多时间. 这次是在M1 mac 上使用的坑. 直接在网上下载回来的版本是不能用的,可能是为 intel 的版本编译的,但我把这个程序放到一台 intel 机器上的时候,也能顺利重新签名,但弄出来的 ipa 却无法安装到 iPhone 上,也无法在我的 M1 mac 上运行.因为同样的这台 intel 的机器的同样的工具,以前是可以重签名的. https://github.com/DanTheMan827/ios-app-signer 搞了很久,就快放弃了,就试了一下,从 github 上下载源码,重新使用 xcode 编译了一个版本,竟然成功了. 记录几个点: 导入的证书,不能设置信任,要使用系统默认. New App ID主要是看给的描述文件.mobileprovision是不是允许改. 其它真没有什么了. 和你在苹果后台那里导出的一点关系都没有,在那里消耗了很多时间.

魔幻的四月,魔幻的上海

 在这个依法治国的国家里,把2500万人关在家里一个月了,但这个依那个法?

ffmpeg 下实现 h265 hevc编码的 hls 服务的过程一些收藏和介绍

现状:  很多关于 h264生成 hls 的m3u8文章,但如果生成的是 h265的介绍还很少,对于此一般来说是一句简单的说明就是使用: hevc_mp4代替h264_mp4toannexb即可,便于更多的介绍. 关于这个有一篇比较详细的中文介绍在这里: https://blog.csdn.net/weixin_41422027/article/details/106649361 但没有给出具体的命令行参数. 官方对于此参数的一些介绍: https://www.ffmpeg.org/ffmpeg-bitstream-filters.html#hevc_005fmp4toannexb https://ffmpeg.org/ffmpeg-formats.html https://developer.apple.com/documentation/http_live_streaming/http_live_streaming_hls_authoring_specification_for_apple_devices 也没有提及 hevc 的情况. 苹果也给出了解决方案,使用他们的 mediafilesegmenter这一个命令,但这个命令的兼容性比较差,就是 iPhone 拍摄的视频都无法支持. https://qiita.com/makotok7/items/bbcd24ab7b00adf8cc92  这里有一篇日文的文章介绍了使用说明 jeffcheng@Mac-Studio hls % mediafilesegmenter IMG_3337.MOV   Apr   9 2022 02:22:09.357: Processing file /Users/jeffcheng/Downloads/hls/IMG_3337.MOV Apr   9 2022 02:22:09.374: Fragmented MP4 is the only supported container format for the segmentation of HEVC content Apr   9 2022 02:22:09.374: Unsupported media type 'hvc1' in track 0 Apr   9 2022 02:22:09.374: Unab

在 Mac M1 CPU 上编译ffmpeg,并支持 opencl和videotoolbox

图片
目的:希望能使用上 mac 版纯 gpu 加速转码. 通过 brew 安装的 ffmpeg 默认支持了 videotoolbox,但都不支持 opencl. 参数是这样的: configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox 通过 https://trac.ffmpeg.org/wiki/CompilationGui