I'm trying to stream video from IP camera to browser using ffmpeg
and ffserver
but if I try to open stream in any browser it starts downloading it instead of playing. I've tried to display video using <video>
tag but that doesn't work either: Here is the code I used:
<video width="800" height="600" controls>
<source src="http://10.10.7.19:8090/cam4.mp4" type="video/mp4">
</video>
The stream works fine in vlc, it is H.264 stream. ffserver shows buffer underflow errors when I try to view it in chrome. When I try to open it in firefox I get No video with supported format and MIME type found
error on video element.
How do I make it work? Also, are there any tools for debugging video streams on Chrome or Firefox (console doesn't show any errors) ?
服务器必须设置正确的Content-Type标头。
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.