@cocreate/ffmpeg
Version:
A media processing module using FFmpeg for video/audio manipulation via a JavaScript API and HTML attributes. Supports transcoding, resizing, and more, simplifying media tasks for web applications.
45 lines (40 loc) • 1.47 kB
HTML
<html lang="en">
<head>
<title>FFMPEG | CoCreateJS</title>
<!-- CoCreate Favicon -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="../assets/favicon.ico" />
<link rel="manifest" href="/manifest.webmanifest" />
</head>
<body>
<input
type="file"
accept="video/mp4"
segment-duration="5"
processor="ffmpeg" />
<form>
<input
type="file"
processor="ffmpeg"
accept="video/mp4"
segment-duration="5"
path="/assets/test" />
<button actions="upload">upload</button>
</form>
<video
stream="https://dev.yelloworacle.com/assets/test/invideo-ai-720 Find Your Perfect Career Path with Yello 2024-02-03 (1).mp4"
controls
width="250"></video>
<!-- <input id="fileInput" type="file" accept="video/mp4" processor="ffmpeg"/> -->
<span id="progress"></span>
<!-- <script src="../dist/CoCreate-ffmpeg.js"></script> -->
<!-- <script src="../dist/main.js"></script> -->
<!-- <script src="https://CoCreate.app/dist/CoCreate.js"></script> -->
<!-- <script src="../../../CoCreateJS/dist/CoCreate.min.js"></script> -->
<script src="../../../CoCreateJS/dist/CoCreate.js"></script>
</body>
</html>