I have a good way. You can use Joyoshare VidiKit. It is a toolkit. You can use its screen recorder to record your guitar parts in sucession and then use its editing features to cut unnecessary parts, or you can use the screen recorder to record sound separately, and then use its built-in video joiner to merge two audio files so that they can appear as a complete song.