Encoding FFMPEG to MPEG-DASH – or WebM with Keyframe Clusters – for MediaSource API
问题 I'm currently sending a video stream to Chrome, to play via the MediaSource API. As I understand it, MediaSource only supports MP4 files encoded with MPEG-DASH, or WebM files that have clusters beginning with keyframes (otherwise it raises the error: Media segment did not begin with keyframe). Is there any way to encode in MPEG-DASH or keyframed WebM formats with FFMPEG in real-time? Edit: I just tried it with ffmpeg ... -f webm -vcodec vp8 -g 1 so that every frame is a keyframe. Not the