1、Padavan挂载SMB共享
cd /media/
modprobe des_generic
modprobe cifs CIFSMaxBufSize=64512
mkdir ssk1 ssk6 ssk7
mount -t cifs //192.168.2.1/SSK_usb1_7 /media/ssk7/ -o username=guest
mount -t cifs //192.168.2.1/SSK_usb1_1 /media/ssk1/ -o username=guest
mount -t cifs //192.168.2.1/SSK_usb1_6 /media/ssk6/ -o username=guest
2、为Padavan编译ffmpeg
下载源码
mkdir -p ~/git/ffmpeg-git/
cd ~/git/ffmpeg-git/
git clone https://gitee.com/xjwangjie/libfaac.git
git clone https://gitee.com/mirrors/ffmpeg.git
cd ffmpeg
git co release/2.0
编译libfaac
export PATH=/home/wuwj/git/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/:$PATH
cd ~/git/ffmpeg-git/libfaac
./configure --host=mipsel-linux-uclibc --prefix=/home/wuwj/git/ffmpeg-git/libfaac/install
make;make install
编译ffmpeg
cd ~/git/ffmpeg-git/ffmpeg/
./configure --prefix=/home/wuwj/git/ffmpeg-git/ffmpeg/install_mips/ --enable-cross-compile --cross-prefix=mipsel-linux-uclibc- --arch=mipsel --target-os=linux --enable-shared --enable-gpl --enable-version3 --enable-libfaac --enable-nonfree --disable-static --disable-doc --disable-ffplay --disable-ffserver --extra-libs="-L/home/wuwj/git/ffmpeg-git/libfaac/install/lib/" --extra-cflags="-I/home/wuwj/git/ffmpeg-git/libfaac/install/include/"
make;make install
生成的可执行程序传入Padavan路由器/tmp/里,运行
cp -rp ../libfaac/install/lib/libfaac.so* ./install_mips/lib/
tar czf ffmpeg_for_mips.tgz install_mips
export LD_LIBRARY_PATH=/tmp/install_mips/lib/
export PATH=/tmp/install_mips/bin/:$PATH
ffmpeg for mips download
|