Skip to content

Instantly share code, notes, and snippets.

View lxj5891's full-sized avatar

DAC-HaoLi lxj5891

  • 敏捷不是一种方法,而是态度。
View GitHub Profile
@lxj5891
lxj5891 / OpenNew.js
Created April 11, 2014 08:53
js脚本 OpenNew
function OpenNew(acVal, idVal, WindowWidth, WindowHeight) {
var windowW = WindowWidth;
var windowH = WindowHeight;
var windowX = Math.ceil((window.screen.width - windowW) / 2);
var windowY = Math.ceil((window.screen.height - windowH) / 2);
var s = new String(acVal);
if (s.lastIndexOf('=') != (s.length - 1)) {
s += '=';
}
s += new String(idVal);
@lxj5891
lxj5891 / iOS编译 ffmpeg
Created April 4, 2014 09:27
iOS编译 ffmpeg
iOS编译 ffmpeg
./configure \
--prefix="/Users/Antony/Strap/NEO/rtmpc/tmp/ffmpeg_armv7" \
--enable-libx264 --enable-gpl --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-armv6 \
@lxj5891
lxj5891 / iOS 视频技术
Last active December 18, 2017 09:38
iOS 视频采集/编码/传输/解码/播放 方案调研
视频采集方案:
通过iOS提供的视频API 可以取得 视频文件(mov) 或者 视频流
压缩编码方案:
方案一:不编码 传送视频文件(mov)
方案二:把视频转为jpeg 进行传输
方案三:压缩为网络编码 H.264 传输
传输方案:
socket传输
HTTP传输 文件
RTMP 传输