打开微信,使用扫一扫进入页面后,点击右上角菜单,
点击“发送给朋友”或“分享到朋友圈”完成分享
wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz tar xzf live555-latest.tar.gz cd live ./genMakefiles linux-64bit #注意后面这个参数是根据当前文件夹下config.<后缀>获取得到的 make
2.启动live555MediaServer备注:
a.编译完成后会当前目录下生成mediaServer 文件夹,有一个live555MediaServer可执行文件;
b.可以将需要推送的视频或者音频放到live555MediaServer 目录,运行后即可推送;
cd mediaServer ./live555MediaServer
$ ./live555MediaServer LIVE555 Media Server version 1.04 (LIVE555 Streaming Media library version 2020.08.12). Play streams from this server using the URL rtsp://10.100.8.66: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)sub s 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).)
备注:
a.将cars.mkv文件《cars.mkv》复制到和上面live555MediaServer
可执行文件的同一个目录,可用vlc在打开网络中输入地址 rtsp://10.100.8.66/cars.mkv
播放视频或者音乐了。
b.启动了一个 rtsp server 可以看到当前支持的视频格式;
参考链接:https://www.cnblogs.com/dpf-10/p/5623101.html
热门帖子
精华帖子