Open goosui opened 6 years ago
同问
可行,自己改
你為什麼不在 server 把 H264 raw stream 封裝成 fMP4 再透過 websocket 傳下來呢
这个问题我是先通过
ffmpeg -i tcp://127.0.0.1:2346 -vcodec copy -f flv tcp://127.0.0.1:2347
将h264nals数据封装成flv格式送到2347端口,然后在这个端口将数据通过websocket送给flv.js。
曾经天真的想用mux.js来封装,虽然有图像出来,但是各种细节需要处理,处理的效果还远比不上flv.js,所以建议还是直接在服务端封装。
你的要求和我一样,我目前用的这个,基本能满足,https://github.com/ChihChengYang/wfs.js
你的要求和我一样,我目前用的这个,基本能满足,https://github.com/ChihChengYang/wfs.js
fmp4的直接能播放吗
我用的是flvjs的。加个QQ吧,多请教你一下。 749272206
------------------ 原始邮件 ------------------ 发件人: "bilibili/flv.js" <notifications@github.com>; 发送时间: 2021年2月19日(星期五) 下午2:58 收件人: "bilibili/flv.js"<flv.js@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: Re: [bilibili/flv.js] 大神,可以用你这个直接把h264的裸流封装为mp4喂给video标签去显示吗? (#216)
你的要求和我一样,我目前用的这个,基本能满足,https://github.com/ChihChengYang/wfs.js
fmp4的直接能播放吗
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
你的要求和我一样,我目前用的这个,基本能满足,https://github.com/ChihChengYang/wfs.js
fmp4的直接能播放吗
我现在换用jmuxer这个库了
大神,你好!
我有这样一个需求,可以从xhr或者websocket里不断的拿到一帧一帧的h264裸流。
现在想在html里播放出来,找了好多js方法都不行。
想问下你的这个理论上是否可行,直接把h264的裸流封装为mp4喂给video标签去显示。
谢谢。@xqq
代码如下: (注:例子上用的解码器只能解码部分I帧。无法解P帧。)
` <!doctype html>