131 / h264-live-player

A live h264 player for the browser (ideal for raspberrypi / raspicam )
MIT License
1.08k stars 251 forks source link

How to play sample admiral.264? #45

Open mangreen opened 7 years ago

mangreen commented 7 years ago

I used server-static.js to delivery samples. Sample out.h264 can be play well, but admiral.264 can not be play. I tried to use ffplay to play admiral.264, it worked fine.

My client player setting was copied from your h264-live-player/public/index.html.

<script type="text/javascript">
var canvas = document.createElement("canvas");
document.body.appendChild(canvas);
var uri = "ws://" + document.location.host;
var wsavc = new WSAvcPlayer(canvas, "webgl", 1, 35);
wsavc.connect(uri);
window.wsavc = wsavc;
</script>

Should I change any setting?

Because I have a h264 file looks like sample admiral.264 have the same problem. It can not be play too. That is why I ask this question.

David-Development commented 6 years ago

This issue might be related to https://github.com/131/h264-live-player/issues/40#issuecomment-333401383. Did you find a solution yet?

weibinzhu commented 6 years ago

I have the same problem. Did you find any solution?

classLfz commented 6 years ago

Me too, and I download a mp4 video, use ffmpeg transform to a h264 file, replace the source.video_path still not work.

djytwy commented 4 years ago

I have the same problem. Has anyone solved this problem?

djytwy commented 4 years ago

I solved this problem. Because Broadway can only support h264 with profile baseline and admiral.264 don't have SPS and PPS. Please make sure you h264 file profile is baseline.