Skip to content

The swiss army knife of lossless video/audio editing

Address review: untitled chapters, MIME type names, shift dialog docs

Claude28a1e44e9194
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md
index 915ad22a..ea2a840a 100644
--- a/docs/troubleshooting.md
+++ b/docs/troubleshooting.md
@@ -29,8 +29,7 @@ Each segment's *start cut time* will normally (but not always) be "rounded" to t
For some files, when you place segment start cutpoints at keyframes, and you export, it will instead cut from the keyframe **before** the keyframe that you wanted. This is because with some videos, FFmpeg struggles to find the nearest previous keyframe, see [#1216](https://github.com/mifi/lossless-cut/issues/1216). To workaround this, you can try to shift your segments' **start**-cutpoints forward by a few frames, so that ffmpeg correctly cuts from the *previous* keyframe.
- Menu: "Segments" -> "Shift all segments on timeline"
-- Enter `00:00:00.200` (or a larger value if it doesn't help)
-- When asked about Start or End timestamps, Select **Start**
+- Enter `00:00:00.200` in *Shift start by* (or a larger value if it doesn't help) and leave *Shift end by* empty
This will effectively shift all start times of segments by 6 frames (`6/30=0.2` for 30fps video). Alternatively, to always shift start times, you can enable the Export Option "Shift all start times" by +1, +2, +3 frames or so.
diff --git a/package.json b/package.json
index 14db9ab0..94f2f759 100644
--- a/package.json
+++ b/package.json
@@ -511,7 +511,7 @@
"video/3gpp2",
"video/x-ms-wmv",
"video/x-ms-asf",
- "video/mxf",
+ "application/mxf",
"application/vnd.rn-realmedia",
"audio/mpeg",
"audio/mp4",
@@ -519,14 +519,18 @@
"audio/aac",
"audio/flac",
"audio/ogg",
- "audio/opus",
"audio/x-wav",
"audio/x-aiff",
"audio/x-ms-wma",
"audio/x-matroska",
"audio/x-ape",
"audio/x-wavpack",
- "audio/amr"
+ "audio/AMR",
+ "audio/AMR-WB",
+ "audio/x-vorbis+ogg",
+ "audio/x-opus+ogg",
+ "audio/x-flac+ogg",
+ "video/x-theora+ogg"
],
"icon": "icon-build/app-512.png",
"target": [
diff --git a/src/common/ffprobe.ts b/src/common/ffprobe.ts
index 44ee68fa..ca356e60 100644
--- a/src/common/ffprobe.ts
+++ b/src/common/ffprobe.ts
@@ -551,7 +551,7 @@ export interface FFprobeChapter {
/**
* The chapter's tags
*/
- tags: FFprobeChapterTags
+ tags?: FFprobeChapterTags
}
/**
diff --git a/src/renderer/src/ffmpeg.ts b/src/renderer/src/ffmpeg.ts
index 84799632..70009788 100644
--- a/src/renderer/src/ffmpeg.ts
+++ b/src/renderer/src/ffmpeg.ts
@@ -591,7 +591,7 @@ export async function createChaptersFromSegments({ paths, defaultChapterNames, u
return {
start: timeAt + start,
end: timeAt + end,
- name: ch.tags.title,
+ name: ch.tags?.title,
};
});
}