1、mjpeg是视频,就是由系列jpg图片组成的视频。
2、MJPG是MJPEG的缩写,但是MJPEG还可以表示文件格式扩展名.
我自己移植几天移植有问题
我用的是 jpegsrc.v8b.tar.gz mjpg-streamer-r63.tar.gz
安装这个网址方式
http://blog.chinaunix.net/uid-27070031-id-3458957.html
修改Makefile时候要注意空格和
移植完成后移植出现下面这个问题
[Webee210 /mjpg]# ./start.sh
MJPG-streamer [1080]: starting application
MJPG Streamer Version.: 2.0
MJPG-streamer [1080]: MJPG Streamer Version.: 2.0
ERROR: could not find input plugin
MJPG-streamer [1080]: ERROR: could not find input plugin
Perhaps you want to adjust the search path with:
MJPG-streamer [1080]: Perhaps you want to adjust the search path with:
# export LD_LIBRARY_PATH=/path/to/plugin/folder
MJPG-streamer [1080]: # export LD_LIBRARY_PATH=/path/to/plugin/folder
dlopen: libjpeg.so.62: cannot open shared object file: No such file or directory
MJPG-streamer [1080]: dlopen: libjpeg.so.62: cannot open shared object file: No such file or directory
移植解决不了 很是郁闷后来发现我的库错了 要下面这个库
jpegsrc.v6b.tar.gz
这个安装方式如下
# tar -zxvf jpegsrc.v6b.tar.gz # cd jpeg-6b # ./configure --prefix=/usr/local/jpeg6 --enable-shared # make # mkdir /usr/local/jpeg6 # mkdir /usr/local/jpeg6/include # mkdir /usr/local/jpeg6/lib # mkdir /usr/local/jpeg6/bin # mkdir /usr/local/jpeg6/man # mkdir /usr/local/jpeg6/man/man1 # make install-lib # make install # make clean |
真是醉了 缺少一个文件libjpeg.a这个文件
很是郁闷 又去下载了压缩包
libjpeg.so.62.0.0.tar.gz
网址放到lib中去 http://download.csdn.net/detail/xhnmn/3400124
最后测试可以了 现在还是出现视频流有问题
可能是libjpeg.a这块有点问题 再继续做做吧