Live555學習(一)--編譯、安裝、執行
Live555 是一個為流媒體提供解決方案的跨平臺的C++開源專案,它實現了對標準流媒體傳輸協議如RTP/RTCP、RTSP、SIP等的支援。Live555實現了對多種音視訊編碼格式的音視訊資料的流化、接收和處理等支援,包括MPEG、H.263+、DV、JPEG視訊和多種音訊編碼。同時由於良好的設計,Live555非常容易擴充套件對其他格式的支援。目前,Live555已經被用於多款播放器的流媒體播放功能的實現,如VLC(VideoLan)、MPlayer。下面介紹Live555的基本使用方法。
編譯
編譯方法:
./genMakefiles <os-platform>
如在Linux 下解壓Live555後進入目錄,然後執行:
#./genMakefiles linux-gdb
#Make
經過以上步驟生成的live555MediaServer可以用於gdb除錯,如果要使原始碼中的DEBUG巨集有效,還需要修改live/config.linux-gdb檔案,在COMPILE_OPTS一行中新增-DDEBUG即可.
執行
進入mediaServer目錄啟動伺服器:
[[email protected] mediaServer]# cd mediaServer]
[[email protected] mediaServer]# ./live555MediaServer