Path to a video file from index.md¶
Computer-Aided Design > audio, video > HTML5 > encoding
variable bit rate 1080p MP3:
ffmpeg -i input_video -vcodec libx264 -crf 25 -preset medium -vf scale=-2:1080 -acodec libmp3lame -q:a 4 -ar 48000 -ac 2 output_video.mp4
no audio:
ffmpeg -i input_video -vcodec libx264 -b:v 1000k -vf scale=-2:1080 -an output_video.mp4
Note
Short cut key in Terminal
move the cursor to the beginning of the line: control + a
File structure¶
├── mkdocs_video
│ ├── images
│ │ └── video.mp4
│ ├── index.md
│ └── non_index.md
From index.md
, both paths to video.mp4 works¶
<video src="images/video.mp4" controls title="Title" width="540"></video>
<video width="540" controls>
<source src="images/video.mp4" type="video/mp4">
</video>
See Path to a video file from non_index.md
Last update:
January 23, 2024