是否可以在GitHub的README.md中嵌入Flash视频?它没有显示出来:https://github.com/mattdipasquale/PicSciP
最简单的方法应该是:
<video src="https://user-images.githubusercontent.com/aaa.mp4"></video>
这是一篇旧文章,第一个解决方案的TLDR:
https://user-images.githubusercontent.com/...
例如:
README: https://github.com/s8sachin/subtitler/blob/master/README.md
Raw : https://raw.githubusercontent.com/s8sachin/subtitler/master/README.md
注意:
![Game Process](https://github.com/Faizun-Faria/Thief-Robber-Landlord-Police/blob/main/Preview/gif_english.gif)
https://www.geeksforgeeks.org/how-to-add-videos-on-readme-md-file-in-a-github-repository/?id=discuss
使用Mac上的QuickTime Player录制了Android模拟器(手机)的屏幕录像,并将其保存到文件recording.mov
中。
然后使用终端中的以下命令将.mov转换为.gif(需要安装ffmpeg和gifsicle):
ffmpeg -i recording.mov -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif
然后,我很容易地将视频的gif文件(out.gif
)直接添加到github.com上的README.md中,且文件大小不是很大。
你可以在Markdown文件中使用拖放功能。
如果你试图嵌入大于10MB的文件,那么你需要先上传到其他地方,然后按照下面的代码进行操作,因为Github会显示警告,无法上传这样的文件。
[Video_title](Your_UrlPath_For_Video)