1 Star 0 Fork 0

DaTree/easy_wasm_player_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
DaTree-DaTree DaTree 1 80269a9 4年前
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

easy_wasm_player

Project setup


ws://10.10.18.13/live/ir_1801002.flv?vhost=__defaultVhost__
ws://10.10.18.13/live/vl_1801002.flv?vhost=__defaultVhost__

ws://10.10.18.13/live/r65.flv?vhost=__defaultVhost__
ws://10.10.18.13/live/r44.flv?vhost=__defaultVhost__



yarn install

# h264推流
ffmpeg -re -i "F:\迅雷下载\爱的厘米\爱的厘米DVD.EP09.2020.1080p.国语中字.WEBrip.H265.mp4" -vcodec h264 -acodec aac -f rtsp -rtsp_transport tcp rtsp://127.0.0.1/live/limi09

rtsp://127.0.0.1/live/limi09 (VLC播放器表现优秀)

rtmp://127.0.0.1/live/limi09(VLC播放器表现优秀)

http://127.0.0.1/live/limi09.flv (VLC播放良好)  liveplayer 略微卡顿

ws://127.0.0.1/live/limi09.flv  (vlc不支持 ,easywasmplayer 播放卡帧,窗口开多了 直接不动) liveplayer 略微卡顿

http://127.0.0.1/live/limi09/hls.m3u8(VLC播放器表现优秀) liveplayer 优秀
 
http://127.0.0.1/live/limi09.live.ts(VLC播放器表现优秀)

ws://127.0.0.1/live/limi09.live.ts(vlc不支持 ,easywasmplayer 不支持)

http://127.0.0.1/live/limi09.live.mp4 (VLC播放效果不好,没声音;浏览器直接播放卡帧)

ws://127.0.0.1/live/limi09.live.mp4(vlc不支持 ,easywasmplayer 不支持)

# h265推流
ffmpeg -re -i "/path/to/test.mp4" -vcodec h265 -acodec aac -f rtsp -rtsp_transport tcp rtsp://127.0.0.1/live/test

2、使用rtmp方式推流
#如果未安装FFmpeg,你也可以用obs推流
ffmpeg -re -i "/path/to/test.mp4" -vcodec h264 -acodec aac -f flv rtmp://127.0.0.1/live/test
# RTMP标准不支持H265,但是国内有自行扩展的,如果你想让FFmpeg支持RTMP-H265,请按照此文章编译:https://github.com/ksvc/FFmpeg/wiki/hevcpush

3、使用rtp方式推流
# h264推流
ffmpeg -re -i "/path/to/test.mp4" -vcodec h264 -acodec aac -f rtp_mpegts rtp://127.0.0.1:10000
# h265推流
ffmpeg -re -i "/path/to/test.mp4" -vcodec h265 -acodec aac -f rtp_mpegts rtp://127.0.0.1:10000


Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DaTree/easy_wasm_player_demo.git
git@gitee.com:DaTree/easy_wasm_player_demo.git
DaTree
easy_wasm_player_demo
easy_wasm_player_demo
master

搜索帮助