The present application discloses a video
transcoding method, apparatus, live broadcast
server, terminal device and computer-readable storage medium. The video
transcoding method comprises: obtaining a source video
stream and decoding it; based on the first GOP of the source video
stream, setting an alignment interval, the alignment interval representing the interval between every two adjacent I frames that can be used as a switching point, the alignment interval being greater than the first GOP, and the switching point representing the
clarity level switching position; based on the alignment interval, encoding the decoded source video
stream into a target video stream of a target
clarity level; wherein the interval between every two adjacent I frames that can be used as a switching point in the frame structure of the target video stream is the alignment interval, and the PTS of the I frame that can be used as a switching point in the frame structure of the target video stream can correspond to the I frame in the frame structure of the source video stream, so that the encoding scheme of the target video stream is not restricted by the encoding scheme of the source video stream, thereby improving the encoding flexibility, thereby reducing the bandwidth cost of the live broadcast platform while ensuring the user experience.