Live555
是一個爲流媒體提供解決方案的跨平臺的C++
開源項目,它實現了對標準流媒體傳輸協議如RTP/RTCP
、RTSP
、SIP
等的支持。Live555
實現了對多種音視頻編碼格式的音視頻數據的流化、接收和處理等支持,包括MPEG
、H.263+
、DV
、JPEG
視頻和多種音頻編碼。同時因爲良好的設計,Live555
很是容易擴展對其餘格式的支持。目前,Live555
已經被用於多款播放器的流媒體播放功能的實現,如VLC(VideoLan)
、MPlayer
。html
該項目的源代碼包括四個基本的庫,各類測試代碼以及LIVE555 Media Server
,四個基本的庫分別是UsageEnvironment&TaskScheduler
,groupsock
,liveMedia
,BasicUsageEnvironment
。可在這裏下載。linux
編譯web
$ ./genMakefile linux // MAC下使用./genMakefile macosx $ make
運行macos
$ cd mediaServer $ ./live555MediaServer LIVE555 Media Server version 0.88 (LIVE555 Streaming Media library version 2015.11.09). Play streams from this server using the URL rtsp://192.168.1.101:8554/<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 8000 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only).)
以上命令列出了支持的文件格式。框架
$ ./live555MediaServer video.264
打開vlc
,點擊Media
中的Open Network Stream...
選項,在URL
欄中填入rtsp://192.168.1.101:8554/video.264
,最後點擊Play
就能夠播放了。ide
圖片描述源碼分析
live555簡介
live555 linux 編譯
linux下編譯live555
live555編譯、播放示例
FFmpeg經常使用基本命令
關於視頻傳輸系統開源框架的調研結果
實現RTP協議的H.264視頻傳輸系統
Live555接收h264使用ffmpeg解碼爲YUV420
live555源碼分析----H264的數據處理
live555源碼分析---- DESCRIBE命令處理
hi3507/hi3515交叉編譯live555
zhangjikuan的專欄測試