zmwangx / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
1.2k stars 195 forks source link

MediaSource Extentions (MSE) segments example for Dash.js #159

Open Type1J opened 11 months ago

Type1J commented 11 months ago

MediaSource elements in HTML require an init.m4s and videoX.m4s and audioX.m4s where X is the segment number.

In Dash.js, there's also a manifest that references these files. (Optional for the example, but nice to have.)

I'd like an example of this library either encoding generated video (like a color fade between) and audio (like a sine wave) or transcoding an input video, and outputing the init.m4s, videoX.m4s and audio.m4s files.

Please and thank you!