简体   繁体   中英

How to stream a raw h.264 video in jPlayer?

jplayer supports mp4. But, I have a server that streams a raw h.264 video. Is it possible to stream it directly on the client side using jPlayer? If yes, please tell me how I should do it. If no, how do I put the video into an mp4 container?

Or, is there any other JS library or jQuery plugin that can be used to display the h.264 stream?

You be better off putting your video file into a container. If your video stream is already recorded then mp4 is a good choice. You can wrap your video stream using ffmpeg or may be mp4box. For playback in the browser you can use the html video tag or your jPlayer.

If you are live streaming - wrap your stream into mpeg dash and use Dash JS for playback.

有一个示例如何使用x264或MP4Box等开源工具生成MPEG-DASH内容: http ://www.dash-player.com/blog/2014/11/mpeg-dash-content-generation-using-mp4box- 和X264 /

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM