[34]_补笔记之移植 live.2018.04.25.tar.gz到海思开发板

我自己比较懒,学习笔记基本上事写在txt文档里面,现在来补一下笔记,有时候还是想弄个属于自己的网站写笔记才会认真点,毕竟卸载这里不知道什么时候被删掉,在学习的过程中发现别人以前写的博客链接失效了....好了废话不多说了,说一下移植的过程....

1.live555源码下载:http://www.live555.com/liveMedia/public/

   我下载的版本:

live.2018.04.25.tar.gz 2018-04-25 14:02 616K  

2.可以先在PC上的linux内先进行测试:

编译前可以看一下这里:http://www.live555.com/liveMedia/

root@ubuntu:/code_work/av_hisilicon# tar xvf live.2018.04.25.tar.gz
root@ubuntu:/code_work/av_hisilicon# cd live
root@ubuntu:/code_work/av_hisilicon/live# ./genMakefiles linux
root@ubuntu:/code_work/av_hisilicon/live# make
root@ubuntu:/code_work/av_hisilicon/live# cd mediaServer/
root@ubuntu:/code_work/av_hisilicon/live/mediaServer# ./live555MediaServer 
LIVE555 Media Server
version 0.91 (LIVE555 Streaming Media library version 2018.04.25).
Play streams from this server using the URL
rtsp://192.168.40.128/<filename>
where <filename> is a file present in the current directory.
Each file's type is inferred from its name suffix:
".264" => a H.264 Video Elementary Stream file
".265" => a H.265 Video Elementary Stream file
".aac" => an AAC Audio (ADTS format) file
".ac3" => an AC-3 Audio file
".amr" => an AMR Audio file
".dv" => a DV Video file
".m4e" => a MPEG-4 Video Elementary Stream file
".mkv" => a Matroska audio+video+(optional)subtitles file
".mp3" => a MPEG-1 or 2 Audio file
".mpg" => a MPEG-1 or 2 Program Stream (audio+video) file
".ogg" or ".ogv" or ".opus" => an Ogg audio and/or video file
".ts" => a MPEG Transport Stream file
(a ".tsx" index file - if present - provides server 'trick play' support)
".vob" => a VOB (MPEG-2 video with AC-3 audio) file
".wav" => a WAV Audio file
".webm" => a WebM audio(Vorbis)+video(VP8) file
See http://www.live555.com/mediaServer/ for additional documentation.
(We use port 80 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only).)
拷贝li_xianling.h264到../live/mediaServer目录下,然后在VLC的打开网络串流填写:rtsp://192.168.40.128/li_xianling.h264 即可。


3.移植:

cd ..
make clean
cp config.armlinux config.hi_armlinux
vi config.hi_armlinux 修改如下:
CROSS_COMPILE?=         arm-hisiv300-linux-
COMPILE_OPTS = 在编译选项最后添加-DLOCALE_NOT_USED,
make ,然后cd mediaServer
root@ubuntu:/code_work/av_hisilicon/live/mediaServer# ./live555MediaServer 
bash: ./live555MediaServer: cannot execute binary file: Exec format error
root@ubuntu:/code_work/av_hisilicon/live/mediaServer# file live555MediaServer
live555MediaServer: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, not stripped
root@ubuntu:/code_work/av_hisilicon/live/mediaServer#cp live555MediaServer /code_work/hi3518E_SDK_V1.0.3.0/osdrv/pub/rootfs_uclibc/sample_test

使用NFS挂载测试即可....和在PC上的Linux执行步骤基本是一样的。


猜你喜欢

转载自blog.csdn.net/qhzm72/article/details/80542095