notion显示this video format(mp4) can‘t be played on this device

question

Insert an MP4 video in notion, the result shows that it cannot be played
insert image description here

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"
    insert image description here
  • I threw my MP4 video into the browser and found that it cannot be played directly
    insert image description here
  • 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
    ffmpeg -i input.mp4 -c:v libx264 -c:a copy -y -hide_banner output.mp4" 
    # 如果想要更好的画面质量,可以在output的前面加上“-crf 18”,数字越小则质量越好
    
    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 assistant
    insert image description here

Guess you like

Origin blog.csdn.net/OTZ_2333/article/details/129721151