Skip to content

Commit

Permalink
Merge pull request #428 from charlielee/issue-402-2
Browse files Browse the repository at this point in the history
Fix macOS video export
  • Loading branch information
charlielee committed Dec 13, 2022
2 parents 706922f + eeb8368 commit 7f07877
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 7 deletions.
147 changes: 146 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"package:dist": "electron-builder"
},
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@ffmpeg-installer/ffmpeg": "1.1.0",
"@redux-devtools/extension": "^3.2.3",
"classnames": "^2.3.1",
"conf": "^10.0.3",
Expand All @@ -57,6 +57,7 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.4.3",
"@types/ffmpeg-installer__ffmpeg": "^1.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^16.5.0",
"@types/react": "^18.0.17",
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/services/project/projectBuilder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("makeTake", () => {

describe("makeFrameTrackItem", () => {
it("should make frame track item with no Track Group ID supplied", () => {
const filePath = "/frame.png";
const filePath = "/frame.jpg";

expect(makeFrameTrackItem(filePath)).toStrictEqual({
filePath,
Expand All @@ -40,7 +40,7 @@ describe("makeFrameTrackItem", () => {
});

it("should make frame track item with Track Group ID supplied", () => {
const filePath = "/frame.png";
const filePath = "/frame.jpg";
const trackGroupId = TRACK_GROUP_ID;

expect(makeFrameTrackItem(filePath, trackGroupId)).toStrictEqual({
Expand All @@ -67,7 +67,7 @@ describe("makeFrameFilePath", () => {
const fileName = "cheese";

expect(makeFrameFilePath(take, fileName)).toEqual(
`${takeDirectoryPath}/ba_002_03_frame_cheese.png`
`${takeDirectoryPath}/ba_002_03_frame_cheese.jpg`
);
});

Expand All @@ -77,7 +77,7 @@ describe("makeFrameFilePath", () => {
const takeDirectoryPath = makeTakeDirectoryPath(options);

expect(makeFrameFilePath(take)).toEqual(
`${takeDirectoryPath}/ba_002_03_frame_00004.png`
`${takeDirectoryPath}/ba_002_03_frame_00004.jpg`
);
});
});
2 changes: 1 addition & 1 deletion src/renderer/services/project/projectBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ export const makeFrameFilePath = (take: Take, frameName?: string): string =>
zeroPad(take.shotNumber, 3),
zeroPad(take.takeNumber, 2),
"frame",
`${frameName ?? zeroPad(take.lastExportedFrameNumber + 1, 5)}.png`,
`${frameName ?? zeroPad(take.lastExportedFrameNumber + 1, 5)}.jpg`,
].join("_")
);

0 comments on commit 7f07877

Please sign in to comment.