h264-live-player icon indicating copy to clipboard operation
h264-live-player copied to clipboard

How to play sample admiral.264?

Open mangreen opened this issue 7 years ago • 5 comments

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.

mangreen avatar Sep 08 '17 03:09 mangreen

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

David-Development avatar Nov 10 '17 19:11 David-Development

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

weibinzhu avatar Mar 27 '18 03:03 weibinzhu

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

classLfz avatar Jun 07 '18 06:06 classLfz

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

djytwy avatar Aug 07 '20 01:08 djytwy

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.

djytwy avatar Aug 07 '20 04:08 djytwy