Skip to content

Conversation

@Rin-NW
Copy link
Collaborator

@Rin-NW Rin-NW commented Feb 20, 2025

function readSubtitleSync(inputFilePath) {
const ffprobeOut = callFFprobe(inputFilePath);
if(!ffprobeOut.streams || ffprobeOut.streams.lenght === 0) {
console.log(`视频未找到字幕`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

找不到的情况要么抛出错误,要么返回空数组

@Rin-NW Rin-NW force-pushed the dev branch 2 times, most recently from 2377391 to 954adfa Compare March 25, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants