New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monibuca当前版本不支持g711a么? #106
Comments
支持的,你试试用 tcp 推流 |
推流命令换成:ffmpeg -re -stream_loop -1 -i ./videos/bbb_1080p_60fps.mp4 -c:v h264 -c:a pcm_alaw -r 30 -s 720x1080 -ac 2 -rtsp_transport tcp -f rtsp rtsp://localhost:554/live/test 一样的结果: 11:55:03 INFO 已创建 {"流": "live/test"} 换成音频aac推流后就正常了。。。 |
m7s_linux_amd64.tar.gz |
好的,我看一下 |
这个是由于第三方库导致的,下个版本我兼容一下 |
我注意到更新了一版beta版本,这个版本可以播放pcma了,但是声音和画面被慢放了,应该是时间戳的设置还有点问题。 |
m7s_linux_amd64.tar.gz我使用官网下载的这个包,再Ubuntu上接受推流:
ffmpeg -re -stream_loop -1 -i ./videos/bbb_1080p_60fps.mp4 -c:v h264 -c:a pcm_alaw -r 30 -s 720x1080 -ac 2 -rtsp_transport udp -f rtsp rtsp://localhost:554/live/test
然后使用ffplay播放:
ffplay rtsp://localhost:554/live/test
monibuca会报错,然后自动停止:
11:46:36 INFO 订阅者+1 {"流": "live/test", "类型": "RTSPSubscriber", "ID": "824651629952", "流": "live/test", "remains": 1}
11:46:36 INFO 阻塞式播放 {"流": "live/test", "类型": "RTSPSubscriber", "ID": "824651629952", "流": "live/test", "subType": 1}
11:46:36 INFO 开始读取 {"流": "live/test", "类型": "RTSPSubscriber", "ID": "824651629952", "流": "live/test", "轨道": "h264", "mode": 0}
11:46:36 INFO 第一帧已读取 {"流": "live/test", "类型": "RTSPSubscriber", "ID": "824651629952", "流": "live/test", "轨道": "h264", "第一帧时间戳": "6.343206959s", "第一帧序列号": 128}
11:46:36 INFO 开始读取 {"流": "live/test", "类型": "RTSPSubscriber", "ID": "824651629952", "流": "live/test", "轨道": "pcma", "mode": 0}
11:46:36 INFO 第一帧已读取 {"流": "live/test", "类型": "RTSPSubscriber", "ID": "824651629952", "流": "live/test", "轨道": "pcma", "第一帧时间戳": "6.343206959s", "第一帧序列号": 394}
11:46:37 INFO 播放停止 {"流": "live/test", "类型": "RTSPSubscriber", "ID": "824651629952", "流": "live/test", "reason": "stop"}
,当我把推流的格式换成aac的时候,可以正常推流播放,是因为monibuca当前版本不支持g711a么?
The text was updated successfully, but these errors were encountered: