2021-09-22 06:27:02 +00:00
|
|
|
{
|
2024-01-02 06:26:28 +00:00
|
|
|
"name": "@sd/monorepo",
|
2022-10-05 01:59:28 +00:00
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2023-10-10 07:30:56 +00:00
|
|
|
"preprep": "pnpm --filter @sd/scripts -- prep",
|
2023-09-28 10:03:46 +00:00
|
|
|
"prep": "pnpm gen:prisma",
|
|
|
|
"postprep": "pnpm codegen",
|
2022-10-05 01:59:28 +00:00
|
|
|
"build": "turbo run build",
|
|
|
|
"landing-web": "turbo run dev --parallel --filter=@sd/landing --filter=@sd/web",
|
2022-10-04 16:16:49 +00:00
|
|
|
"gen:migrations": "cd core && cargo prisma migrate dev",
|
|
|
|
"gen:prisma": "cd core && cargo prisma generate",
|
2023-01-20 03:27:46 +00:00
|
|
|
"format": "prettier --write .",
|
2022-10-05 01:59:28 +00:00
|
|
|
"desktop": "pnpm --filter @sd/desktop --",
|
2023-10-02 14:03:45 +00:00
|
|
|
"tauri": "pnpm desktop tauri",
|
2022-10-05 01:59:28 +00:00
|
|
|
"web": "pnpm --filter @sd/web -- ",
|
2022-10-17 15:42:32 +00:00
|
|
|
"mobile": "pnpm --filter @sd/mobile --",
|
2022-10-21 04:55:39 +00:00
|
|
|
"core": "pnpm --filter @sd/server -- ",
|
2022-10-05 01:59:28 +00:00
|
|
|
"landing": "pnpm --filter @sd/landing -- ",
|
|
|
|
"ui": "pnpm --filter @sd/ui -- ",
|
|
|
|
"interface": "pnpm --filter @sd/interface -- ",
|
2023-03-15 11:15:59 +00:00
|
|
|
"assets": "pnpm --filter @sd/assets -- ",
|
2022-10-05 01:59:28 +00:00
|
|
|
"client": "pnpm --filter @sd/client -- ",
|
2023-05-09 15:36:24 +00:00
|
|
|
"storybook": "pnpm --filter @sd/storybook -- ",
|
2022-10-05 03:54:34 +00:00
|
|
|
"prisma": "cd core && cargo prisma",
|
2024-03-23 21:24:16 +00:00
|
|
|
"dev:web": "pnpm --filter @sd/web dev:web",
|
2023-12-06 16:47:51 +00:00
|
|
|
"dev:desktop": "pnpm run --filter @sd/desktop tauri dev",
|
2023-10-03 08:10:55 +00:00
|
|
|
"bootstrap:desktop": "cargo clean && ./scripts/setup.sh && pnpm i && pnpm prep && pnpm tauri dev",
|
2022-10-13 07:03:43 +00:00
|
|
|
"codegen": "cargo test -p sd-core api::tests::test_and_export_rspc_bindings -- --exact",
|
2023-04-18 06:24:06 +00:00
|
|
|
"typecheck": "pnpm -r typecheck",
|
2023-01-23 09:44:28 +00:00
|
|
|
"lint": "turbo run lint",
|
2023-03-17 02:00:02 +00:00
|
|
|
"lint:fix": "turbo run lint -- --fix",
|
2024-03-23 21:24:16 +00:00
|
|
|
"clean": "cargo clean; git clean -qfX .",
|
Media metadata extraction & Thumbnailer rework (#2285)
* initial ffprobe commit
* Working slim down version ffprobe
* Auto format ffprobe and deps source
* Remove show_pixel_formats logic
- Fix do_bitexact incorrect check in main after last changes
- Fix some clangd warning
* Remove show_* and print_format options and their respective logic
* Rework ffprobe into simple_ffprobe
- Simplify ffprobe logic into a simple program that gather and print a media file metadata
* Reduce the amount of ffmpeg log messages while generating thumbnails
* Fix completly wrong comments
* mend
* Start modeling ffmpeg extracted metadata on schema
- Start porting ffprobe code to rust
- Rename some references to media_data to exif_data
* Finish modeling media info data
- Add MediaProgram, MediaStream, MediaCodec, MediaVideoProps, MediaAudioProps, MediaSubtitleProps to Schema
- Fix simple_ffproble to use its custom print_codec, instead of ffmpeg's impl
* Add relation between MediaInfo and FilePath
- Remove shared properties from MediaInfo and related structs
- Implement Iterator for FFmpegDict
* Fix and update schema
* Data models and start populating MediaInfo in rust
* Finish populating media info, chapters and program
* Improve FFmpegFormatContext data raw pointer access
- Implement stream data gathering
* Impl FFmpegCodecContext, retrieve codec information
- Improve some unsafe pointer uses
- Impl from FFmpegFormatContext to MediaInfo conversion
* Fix FFmpegDict Drop
* Fix some crago warnings
* Impl retrieval of video props
- Fix C char* to Rust String convertion
* Impl retrieval of audio and subtitle props
- Fill props for MediaCodec
* Remove simple_ffprobe now that the Rust impl is done
* Fix schema to match actually retrieved media info
- Fix import some FFmpeg constants instead of directly using values
* Rework movie_decoder
- Re-implement create_scale_string and add support anamorphic video
- Improve C pointer access for FFmpegFormatContext and FFmpegCodecContext
- Use newer FFmpeg abstractions in movie_decoder
* Fix incorrect props when initializing MovieDecoder
* Remove unecessary lifetimes
* Added more native wrappers for some FFmpeg native objects used in movie_decoder
* Remove FFmpegPacket
- Some more improvements to movie_decoder
* WIP
* Some small fixes
* More fixes
Rename movie_decoder to frame_decoder
Remove more references to film_strips
* fmt
* Fix duplicate migration for job error changes
* fix rebase
* Solving segfaults, fuck C lang
Co-authored-by: Vítor Vasconcellos <HeavenVolkoff@users.noreply.github.com>
* Update rust to version 1.77
- Pin rust version with rust-toolchain.toml
- Change from dtolnay/rust-toolchain to IronCoreLabs/rust-toolchain for rust-toolchain support
- Remove unused function and imports
- Replace most CString uses with new c literal string
* More segfault solving and other minor fixes
Co-authored-by: Vítor Vasconcellos <HeavenVolkoff@users.noreply.github.com>
* Fix ffmpeg rotation filter breaking portrait video thumbnails #2150
- Plus some other misc fixes
* Auto format
* Retrieve video/audio metadata on frontend
* Auto format
* First draft on ffmpeg data save on db
Co-authored-by: Vítor Vasconcellos <HeavenVolkoff@users.noreply.github.com>
* Fix some incorrect changes to prisma schema
* Some fixes for the FFmpegData schema
- Expand logic to save FFmpegData to db
* A ton of things
Co-authored-by: Vítor Vasconcellos <HeavenVolkoff@users.noreply.github.com>
* Integrating ffmpeg media data in jobs and API
* Rspc can't BigInt
* 🙄
* Add initial ffmpeg metadata entries to Inspector
- Fix ephemeral metadata api to match the files metadata api call
* Fix Inspector not showing ffmpeg metadata
* Add bitrate, start time and chapters video metadata to Inspector
- Fix backend BigInt conversion incorrectly using i32 instead of u32
- Change FFmpegFormatContext/FFmpegMetaData bit_rate to i64
- Rename byteSize to humanizeSize
- Expand humanizeSize logic to allow handling bits and Binary units
- Move capitalize to @sd/client utils
* Solving some issues
* Fix ffmpeg probe getting incorrect stream id and breaking database unique constraint
- Fix humanizeSize breaking when receiving floating numbers
- Fix incorrect equality in StatCard
- Fix unhandled error in Dialog when trying to remove an unknown dialog
* fmt
* small improvements
- Remove some unecessary recursion_limit directive
- Remove unused app_image releated functions
- Fix metadata query enabled flag
* Add migration for ffmpeg media data
* Fix cypress test
* Requested changes
* Implement feedback
- Update locale keys for all languages
- Add pnpm command to update all language keys
* Fix thumb reactivity in non indexed locations
---------
Co-authored-by: Ericson Soares <ericson.ds999@gmail.com>
Co-authored-by: Vítor Vasconcellos <HeavenVolkoff@users.noreply.github.com>
2024-05-09 02:20:28 +00:00
|
|
|
"test-data": "./scripts/test-data.sh",
|
2024-06-20 00:04:43 +00:00
|
|
|
"i18n:sync": "npx i18next-locales-sync -p en -s $(find ./interface/locales -wholename '*/common.json' | awk -F'/' '$4 != \"en\" { ORS=\" \"; print $4 }') -l ./interface/locales",
|
|
|
|
"autoformat": "./scripts/autoformat.sh"
|
2022-10-05 01:59:28 +00:00
|
|
|
},
|
2022-12-07 15:16:13 +00:00
|
|
|
"pnpm": {
|
2023-12-07 08:10:38 +00:00
|
|
|
"patchedDependencies": {
|
2024-02-28 23:52:24 +00:00
|
|
|
"@remix-run/router@1.13.1": "patches/@remix-run__router@1.13.1.patch",
|
2024-05-07 08:36:50 +00:00
|
|
|
"@contentlayer/cli@0.3.4": "patches/@contentlayer__cli@0.3.4.patch",
|
|
|
|
"@oscartbeaumont-sd/rspc-tauri@0.0.0-main-dc31e5b2": "patches/@oscartbeaumont-sd__rspc-tauri@0.0.0-main-dc31e5b2.patch"
|
2024-02-28 23:52:24 +00:00
|
|
|
},
|
|
|
|
"overrides": {
|
2024-03-23 21:24:16 +00:00
|
|
|
"@types/node": ">18.18.x",
|
2024-03-01 01:57:27 +00:00
|
|
|
"react-router": "=6.20.1",
|
|
|
|
"react-router-dom": "=6.20.1",
|
|
|
|
"@remix-run/router": "=1.13.1",
|
2024-03-23 21:24:16 +00:00
|
|
|
"@contentlayer/cli": "=0.3.4"
|
2022-12-07 15:16:13 +00:00
|
|
|
}
|
|
|
|
},
|
2022-10-05 01:59:28 +00:00
|
|
|
"devDependencies": {
|
2024-03-23 21:24:16 +00:00
|
|
|
"@babel/plugin-syntax-import-assertions": "^7.24.1",
|
2024-02-28 23:52:24 +00:00
|
|
|
"@cspell/dict-rust": "^4.0.2",
|
2023-10-10 07:30:56 +00:00
|
|
|
"@cspell/dict-typescript": "^3.1.2",
|
2024-03-19 20:22:17 +00:00
|
|
|
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
|
|
"cspell": "^8.6.0",
|
2024-02-28 23:52:24 +00:00
|
|
|
"prettier": "^3.2.5",
|
2024-03-19 20:22:17 +00:00
|
|
|
"prettier-plugin-tailwindcss": "^0.5.12",
|
|
|
|
"turbo": "^1.12.5",
|
|
|
|
"turbo-ignore": "^1.12.5",
|
|
|
|
"typescript": "^5.4.2",
|
|
|
|
"vite": "^5.1.6"
|
2022-10-05 01:59:28 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2024-04-17 06:16:18 +00:00
|
|
|
"pnpm": ">=9.0.0",
|
2022-10-05 01:59:28 +00:00
|
|
|
"npm": "pnpm",
|
|
|
|
"yarn": "pnpm",
|
2024-03-19 20:22:17 +00:00
|
|
|
"node": ">=18.18 <19 || >=20.1"
|
2023-04-14 21:21:21 +00:00
|
|
|
},
|
2023-04-27 07:32:15 +00:00
|
|
|
"eslintConfig": {
|
2023-10-10 07:30:56 +00:00
|
|
|
"root": true
|
2024-04-05 19:41:11 +00:00
|
|
|
},
|
2024-05-14 07:06:07 +00:00
|
|
|
"packageManager": "pnpm@9.1.1"
|
2023-08-16 21:01:39 +00:00
|
|
|
}
|