1. 查看机器上所有设备
ffmpeg -devices
ffmpeg version N-93466-g681957b88d Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Devices:
D. = Demuxing supported
.E = Muxing supported
--
D avfoundation AVFoundation input device 「摄像头」
D la
!DOCTYPE html
html lang="en"
head
meta charset="UTF-8"
meta name="viewport" content="width=device-width, initial-scale=1.0"
meta http-equiv="X-UA-Compatible" content="ie=edge"
title Document /title
/head
body
script src="hls.js" /script
video
!doctype html
html
head
meta charset="utf-8"
title Video.js /title
link href="videojs/css/video-js.min.css" rel="stylesheet"
/head
body
div class="m"
video id="my-video" class="video-js" controls preload="auto" width="960" height="400" poster=""
data-setup="