question
Insert an MP4 video in notion, the result shows that it cannot be played
reason
The browser cannot play the video
- Clicking "learn more" in the above picture will jump to the official notion documentation , find the "video" in it, and there will be the following description, that is, "only videos that can be played by the browser or the operating system can be played directly in notion"
- I threw my MP4 video into the browser and found that it cannot be played directly
- Searching on the Internet , I found that the browser does have restrictions on the encoding method of the video
my solution
- Use the following ffmpeg command to convert MP4 video
This command comes from the ffmpeg assistant of utools. Change the video encoder to x264 to automatically generate the corresponding command and run it directly. Highly recommend this assistantffmpeg -i input.mp4 -c:v libx264 -c:a copy -y -hide_banner output.mp4" # 如果想要更好的画面质量,可以在output的前面加上“-crf 18”,数字越小则质量越好