Compare commits

...

671 Commits

Author SHA1 Message Date
Xinrea
7155fef677 bump version to 2.16.2 2025-11-06 22:11:38 +08:00
Xinrea
0566ae78e7 fix: douyin encoding with danmu (#221) 2025-11-06 22:09:41 +08:00
Xinrea
cf439d60c4 feat: segment with query param (#219)
* bump version to 2.16.1

* fix: read segment with params
2025-11-04 23:00:34 +08:00
Xinrea
6127c67cd3 fix: check encoders list (#218) 2025-11-02 13:52:01 +08:00
Xinrea
183eb063bb bump version to 2.16.0 2025-11-02 11:54:35 +08:00
Xinrea
532609c57d fix: cover uploading error (#217) 2025-11-02 11:52:07 +08:00
Xinrea
83c6979973 feat: task scheduler (#216)
* feat: update progress in task message

* feat: task scheduler for queued tasks
2025-11-02 11:20:27 +08:00
Xinrea
8bea9336ae fix: multiple danmu task running (#215) 2025-11-01 23:43:40 +08:00
Xinrea
617a6a0b8e fix: panic generating whole live without danmu (#214) 2025-11-01 22:07:52 +08:00
Xinrea
140ab772d0 feat: auto using hwaccel x264 encoder (#213)
* feat: auto using hwaccel x264 encoder

* fix: ffmpeg args error
2025-11-01 21:50:03 +08:00
Xinrea
e7d8c8814d fix: shortcut key conflicts with input (#212)
* fix: shortcut key conflicts with input

* Update src/lib/components/VideoPreview.svelte

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-11-01 20:44:27 +08:00
Xinrea
588559c645 refactor: migrate ids to str for compatibility (#211)
* refactor: migrate ids to str for compatibility

* feat: handle get item from cookies
2025-11-01 19:27:39 +08:00
Xinrea
e7411d25b4 fix(bilibili): add shuffle for url_info (#207) 2025-10-31 00:13:27 +08:00
Xinrea
ed0bd88e3b fix: douyin segment with params 2025-10-29 00:28:00 +08:00
Xinrea
b4fb2d058a fix: update interval setting 2025-10-29 00:16:06 +08:00
Xinrea
4058b425c8 feat: only query userinfo once 2025-10-28 23:31:15 +08:00
Xinrea
55d872a38c bump version to 2.15.4 2025-10-26 23:13:01 +08:00
Xinrea
1f666d402d feat: simplify douyin room-adding (close #196) 2025-10-26 22:03:04 +08:00
Xinrea
64dec36773 fix: douyin recording record live_id 2025-10-25 22:25:20 +08:00
Xinrea
0b3df59015 bump version to 2.15.3 2025-10-25 20:37:55 +08:00
Xinrea
e1b4f8ede9 fix: clip danmu not in range 2025-10-25 20:30:22 +08:00
Xinrea
b8c3f0a464 bump version to 2.15.2 2025-10-25 18:48:01 +08:00
Xinrea
ee714c855b fix: quit recording when error 2025-10-25 18:44:52 +08:00
Xinrea
c5165c752d fix: room filter 2025-10-25 17:47:15 +08:00
Xinrea
8c275c2edb fix: config cache 2025-10-25 13:59:55 +08:00
Xinrea
2fc6f673d3 fix: reduce requests for config 2025-10-25 13:52:04 +08:00
Xinrea
b7c9d12e41 fix: cannot remove bilibili account 2025-10-25 13:48:59 +08:00
Xinrea
8ca2934e8d docs: update 2025-10-25 13:26:47 +08:00
Xinrea
868a2a1940 fix: api in headless 2025-10-25 13:23:04 +08:00
Xinrea
a1e57c5b9c feat: basic danmu encoding configuration (close #103) 2025-10-25 13:16:59 +08:00
Xinrea
b7a76e8f10 chore: bundle font assets 2025-10-25 12:40:15 +08:00
Xinrea
e82159b9a2 feat: video waveform (close #184) 2025-10-25 12:22:36 +08:00
Xinrea
35d068e109 fix: handle segment download error 2025-10-25 11:12:34 +08:00
Xinrea
136e1a3774 feat: support {note} in filename (close #203) 2025-10-25 02:13:24 +08:00
Xinrea
fc6c6adfce feat: generate whole live with danmu 2025-10-25 02:03:41 +08:00
Xinrea
5981d97d5f fix: target duration 2025-10-24 23:36:24 +08:00
Xinrea
42c12b3bf9 fix: live notification 2025-10-24 22:51:33 +08:00
Xinrea
39a8d0d741 fix: break recordin when parsing failed 2025-10-24 22:29:27 +08:00
Xinrea
1db0609961 bump version to 2.15.0 2025-10-24 22:19:55 +08:00
Xinrea
26d60cecbf feat: recorder crate and huya support (#204)
* feat: huya account support

* refactor: recorder

* fix: first segment ts

* refactor: seperate crate

* feat: general hls recorder

* feat: auto end playlist for archives

* feat: handle bilibili ts stream

* fix(bilibili): ts stream only allowed

* feat(huya): huya recorder
2025-10-24 00:46:49 +08:00
Xinrea
a97ec33c07 bump version to 2.14.1 2025-10-14 08:12:03 +08:00
Xinrea
9a1bc0f449 feat: switch to TS as primary for bilibili 2025-10-14 08:10:24 +08:00
Xinrea
e4d1024082 fix: windows build 2025-10-10 20:49:37 +08:00
Xinrea
3d5f97f635 chore: add tips for encoding 2025-10-10 20:23:47 +08:00
Xinrea
7c82766549 bump version to 2.14.0 2025-10-10 20:19:59 +08:00
Xinrea
cfe91e0782 feat: adjust styles 2025-10-10 20:19:18 +08:00
Xinrea
9a26683a76 fix: shaka player js 2025-10-09 22:06:13 +08:00
Xinrea
8a9344e3ee feat: update shaka-player 2025-10-09 21:55:22 +08:00
Xinrea
d200c7cf09 fix: transcode video aspect ratio 2025-10-09 07:27:32 +08:00
Xinrea
eb01d62e53 fix: playlist path when generating whole clip 2025-10-09 07:24:11 +08:00
Xinrea
f65f375283 feat: migrate to ffmpeg (#201)
* feat: handle hls with ffmpeg

* fix: douyin cover and title

* refactor: cache path handle

* feat: auto remove empty record

* feat: calculate ts file size
2025-10-04 16:57:08 +08:00
Xinrea
08979d2079 bump version to 2.13.8 2025-09-29 19:36:50 +08:00
Xinrea
c6efe07303 fix: clip black screen at beginning 2025-09-29 01:06:47 +08:00
Xinrea
7294f0ca6d fix: progress report for transcode 2025-09-28 19:54:49 +08:00
Xinrea
eac1c09149 feat: add hevc option for bilibili
clip from hevc live needs fix-encoding
2025-09-28 19:48:33 +08:00
Xinrea
1e9cd61eba bump version to 2.13.7 2025-09-28 01:56:12 +08:00
Xinrea
7b7f341fa0 fix: progress and danmu events 2025-09-28 01:54:37 +08:00
Xinrea
ac806b49b2 chore: update README 2025-09-28 00:26:43 +08:00
Xinrea
f20636a107 bump version to 2.13.6 2025-09-28 00:12:26 +08:00
Xinrea
787a30e6f7 fix: clip on fmp4 -> ts archive 2025-09-28 00:10:31 +08:00
Xinrea
d1d217be18 bump version to 2.13.5 2025-09-27 15:07:53 +08:00
Xinrea
944d0a371a fix: danmu from ws 2025-09-27 15:06:53 +08:00
Xinrea
0df03e0c9c fix: create proxy master playlist for old fmp4 playlist 2025-09-27 14:54:13 +08:00
Xinrea
7ffdf65705 Revert "feat: convert old fmp4 archives into ts"
This reverts commit 89cdf91a48.
2025-09-27 01:00:39 +08:00
Xinrea
89cdf91a48 feat: convert old fmp4 archives into ts 2025-09-27 00:25:57 +08:00
Xinrea
43ebc27044 ci/cd: update docker script 2025-09-26 22:10:44 +08:00
Xinrea
e6159555f3 feat: migrate sse to websocket 2025-09-26 21:30:55 +08:00
Xinrea
1f2508aae9 fix: disable http2 for http server 2025-09-26 19:52:57 +08:00
Xinrea
ad13f58fa7 ci/cd: update final image 2025-09-26 19:19:24 +08:00
Xinrea
de4959d49f bump version to 2.13.4 2025-09-26 00:16:16 +08:00
Xinrea
b5b75129e7 fix: sanitize filename 2025-09-26 00:14:41 +08:00
Xinrea
84346a486f chore: ignore check json 2025-09-26 00:13:50 +08:00
Xinrea
3bdcddf5a2 fix: ignore resolution checks on packet iterleaving stream 2025-09-25 22:27:24 +08:00
Xinrea
98f68a5e14 bump version to 2.13.3 2025-09-25 22:22:10 +08:00
Xinrea
2249b86af3 fix: bilibili using TS as fallback 2025-09-25 21:38:33 +08:00
Xinrea
fd889922d8 ci/cd: update builder version 2025-09-25 08:37:43 +08:00
Xinrea
8db7c6e320 fix: douyin stream statistics 2025-09-25 08:18:53 +08:00
Xinrea
5bc4ed6dfd bump version to 2.13.2 2025-09-25 01:24:37 +08:00
Xinrea
22ad5f7fea feat: using fMP4 as fallback plan 2025-09-25 01:22:10 +08:00
Xinrea
c0369c1a14 fix: wrong length and size statistics 2025-09-24 22:39:57 +08:00
Xinrea
322f4a3ca5 chore: update allow list 2025-09-24 21:54:40 +08:00
Xinrea
4e32453441 fix: danmu encoding 2025-09-24 21:45:53 +08:00
Xinrea
66725b8a64 bump version to 2.13.1 2025-09-24 07:49:08 +08:00
Xinrea
f7bcbbca83 feat: default cover and avatar for rooms not initialized 2025-09-24 01:16:59 +08:00
Xinrea
07a3b33040 fix: douyin room info parse error 2025-09-24 00:38:47 +08:00
Xinrea
2f9b4582f8 fix: clip range drifting 2025-09-24 00:19:19 +08:00
Xinrea
c3f63c58cf fix: danmu statistics 2025-09-23 23:28:05 +08:00
Xinrea
4a3529bc2e fix: generate whole clip when live ends 2025-09-23 20:33:08 +08:00
Xinrea
b0355a919f ci/cd: only run checks when modifying rust code 2025-09-22 23:51:43 +08:00
Xinrea
cfe1a0b4b9 bump version to 2.13.0 2025-09-22 23:47:24 +08:00
Xinrea
b655e98f35 fix: remove unused config item 2025-09-22 23:39:46 +08:00
Xinrea
2d1021bc42 feat: fast generate for whole live clip 2025-09-22 23:25:13 +08:00
Xinrea
33d74999b9 feat: acrhive batch delete (close #193)
* feat: add tool for agent

* feat: archive management
2025-09-22 23:21:26 +08:00
Xinrea
84b7dd7a3c feat: generate whole live (close #190) 2025-09-22 01:45:30 +08:00
Xinrea
0c678fbda3 feat: input seek when clipping on ts stream (close #183) 2025-09-19 01:13:39 +08:00
Xinrea
3486f7d050 feat: migrate bili stream to ts (close #154) 2025-09-19 00:59:52 +08:00
Xinrea
d42a1010b8 fix: event not sent when auto generate clip (close #187) 2025-09-17 22:58:58 +08:00
Xinrea
ece6ceea45 fix: code refactor (#189)
* fix: code refactor

* fix: code errors

* fix: show in folder

* fix: show in folder on linux

* ci/cd: remove cache for self-hosted runner

* fix: unused result
2025-09-15 23:42:29 +08:00
Xinrea
b22ebb399e feat: commit check (#188)
* ci/cd: run checks on self-hosted runner

* ci/cd: add clippy check

* ci/cd: fix add clippy

* ci/cd: remove pull request check

* feat: add prek for commit hooks
2025-09-15 22:58:39 +08:00
Xinrea
4431b10cb7 refactor: cleanup code 2025-09-11 23:55:39 +08:00
Xinrea
01a0c929e8 refactor: rust module structure 2025-09-11 01:33:38 +08:00
Xinrea
b06f6e8d09 refactor: migrate to thiserror 2025-09-11 01:25:45 +08:00
Xinrea
753227acbb chore: markdown lint 2025-09-11 01:23:58 +08:00
Xinrea
c7dd9091d0 docs: update 2025-09-11 00:35:09 +08:00
Xinrea
bae20ce011 ci/cd: switch to github-hosted runner 2025-09-10 22:55:19 +08:00
Xinrea
8da4759668 ci/cd: fix runner 2025-09-10 22:19:44 +08:00
Xinrea
eb7c6d91e9 ci/cd: fix mixed label 2025-09-10 22:13:13 +08:00
Xinrea
3c24dfe8a6 ci/cd: build on self-linux 2025-09-10 22:08:42 +08:00
Xinrea
bb916daaaf fix: post with video title 2025-09-10 22:08:10 +08:00
Xinrea
3931e484c2 chore: remove unused code 2025-09-10 21:52:19 +08:00
Xinrea
b67e258c31 fix: douyin a_bogus check 2025-09-10 21:49:44 +08:00
Xinrea
1a7e6f5a43 feat: randomly generated user-agent 2025-09-10 20:19:42 +08:00
Xinrea
437204dbe6 ci/cd: remove cuda installation 2025-09-10 00:09:11 +08:00
Xinrea
af105277d9 ci/cd: switch to self-hosted win runner 2025-09-09 23:26:21 +08:00
Xinrea
7efd327a36 bump version to 2.12.4 2025-09-09 23:11:35 +08:00
Xinrea
0141586fa9 fix: danmu ws not reconnecting 2025-09-09 21:42:35 +08:00
Xinrea
df1d8ccac6 bump version to 2.12.3 2025-09-09 21:32:17 +08:00
Xinrea
10b6b95e4d fix: bilibili stream offset timezone error 2025-09-09 21:31:10 +08:00
Xinrea
a58e6f77bd bump version to 2.12.2 2025-09-09 20:58:54 +08:00
Xinrea
fe2bd80ac6 chore: adjust logs for douyin h5 api error 2025-09-09 20:58:54 +08:00
Xinrea
870b44a973 fix: room without cover (close #181) 2025-09-09 20:58:44 +08:00
Xinrea
48fd9ca7b2 fix: clip auto-generate not works 2025-09-09 20:15:33 +08:00
Xinrea
14d03b7eb9 ci/cd: switch to github-hosted runner 2025-09-09 00:49:36 +08:00
Xinrea
6f1db6c038 bump version to 2.12.1 2025-09-08 23:55:41 +08:00
Xinrea
cd2d208e5c fix: output not created while importing (close #180) 2025-09-08 23:53:50 +08:00
Xinrea
7d6ec72002 ci/cd: add self-hosted runner 2025-09-08 22:39:25 +08:00
Xinrea
837cb6a978 chore: adjust default danmaku style 2025-09-08 00:52:31 +08:00
Xinrea
aeeb0c08d7 refactor: delete video with related cover file 2025-09-08 00:30:07 +08:00
Xinrea
72d8a7f485 fix: danmu start position 2025-09-08 00:00:18 +08:00
Xinrea
5d3692c7a0 fix: update video with new cover 2025-09-07 23:30:37 +08:00
Xinrea
7e54231bef ci/cd: fix get previous tag 2025-09-07 19:11:49 +08:00
Xinrea
80a885dbf3 Release 2.12.0 (#179)
* chore: add devcontainer config (#175)

* refactor: refactor error handling and update dependencies (#176)

* docs: update webhook

* feat: add webhook module

* feat: webhook url settings

* feat: update webhook poster instead of recreating

* feat: add link for webhook docs

* refactor: using relative path for all covers

* fix: webhook in headless mode

* feat: implement all webhook events

* fix: webhook in headless mode

* feat: static host cache/output directory

* tests: add more tests (#178)

* chore: add tests

* chore: update

* fix: wrong cover type

* bump version to 2.12.0

* feat: change default clip bitrate to 6000k

---------

Co-authored-by: Sieluna <seele.peng@gmail.com>
2025-09-07 18:38:16 +08:00
Xinrea
134c6bbb5f chore: update dependencies 2025-08-31 11:01:32 +08:00
Xinrea
49a153adf7 chore: add cursor rules 2025-08-31 10:52:44 +08:00
Xinrea
99e15b0bda ci/cd: publish workflow with release body 2025-08-30 23:35:06 +08:00
Xinrea
4de8a73af2 chore: add logs for ts filename 2025-08-30 23:19:06 +08:00
Xinrea
d104ba3180 chore: update issue template 2025-08-30 10:52:00 +08:00
Xinrea
abf0d4748f chore: update issue template 2025-08-30 10:46:45 +08:00
Xinrea
d2a9c44601 feat: clip note support (#173)
* refactor: move components

* feat: note for clip (close #170)

* fix: import video handler

* fix: sort by note

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-30 10:24:53 +08:00
Xinrea
c269558bae refactor: using post for all handlers (#172)
* refactor: using post for all handlers

* chore: code format

* ci/cd: tests verbose

* ci/cd: remove compilation test

* ci/cd: add ffmpeg in test
2025-08-24 22:48:51 +08:00
Xinrea
cc22453a40 chore: fix tests 2025-08-24 21:20:26 +08:00
Xinrea
d525d92de4 ci/cd: add checks for pr 2025-08-24 21:13:16 +08:00
Xinrea
2197dfe65c chore: format code 2025-08-24 21:05:22 +08:00
Xinrea
38ee00f474 bump version to 2.11.7 2025-08-24 20:58:20 +08:00
Eeeeep4
8fdad41c71 fix: resolve subtitle drag sync issues with timeline scaling (#171)
- Fix double scaling in getSubtitleStyle causing position misalignment
- Improve edge detection logic for better drag precision
- Add time boundary constraints to prevent negative/overflow values
- Refactor drag handlers with helper functions for better maintainability
- Ensure subtitle blocks align with timeline markers at all zoom levels
2025-08-24 17:08:35 +08:00
Eeeeep4
f269995bb7 feat: batch video import (#163)
* feat(import): auto-detect and import new videos from the import directory

- Scan the configured import directory for newly added video files
- Automatically enqueue/import detected files into the application library
- Extend config and app initialization to support import directory settings
- Update video/config handlers to expose and trigger the import flow

* refactor(import): improve video import and conversion workflow

- Optimize auto-import loading state management with proper polling
- Separate large file (>500MB) async conversion from small file sync conversion
- Extract reusable helper functions for file cleanup and thumbnail generation
- Enhance UI progress display for large file conversions

* feat(import): add batch video import functionality

- Add batch_import_external_videos API endpoint with progress tracking
- Support multiple file selection in import dialog
- Display batch import progress with current file information

* feat: improve video import on headless mode

- Enhance batch video import workflow and progress tracking
- Improve HTTP server API structure and error handling

* fix(video): prevent OOM in headless mode by using fixed 64KB buffers
- introduce sanitize_filename_advanced with tests
- use fixed 64KB buffer and 1% progress reporting

* fix: resolve compilation warnings and improve SSE reliability

  - Add feature-gated compilation for platform-specific functions
  - Enhance SSE error handling and connection stability
  - Increase broadcast channel capacity and optimize keep-alive timing
2025-08-24 10:10:38 +08:00
Xinrea
03a2db8c44 feat: randomly choose stream variant (#168) 2025-08-20 23:40:56 +08:00
Xinrea
6d9cd3c6a8 fix: danmu reconnection (#167) 2025-08-20 23:08:41 +08:00
Xinrea
303b2f7036 fix: record breaks after stream expired (#166) 2025-08-20 22:55:06 +08:00
Xinrea
ec25c2ffd9 bump version to 2.11.6 2025-08-20 22:23:25 +08:00
Xinrea
50ab608ddb fix: cache/output dir migration (close #159) (#165)
* fix: cache/output dir migration (close #159)

* chore: adjust wrong log info

* fix: more accurate way to check path
2025-08-20 22:15:46 +08:00
Xinrea
3c76be9b81 feat: add batch delete for archives API and tool 2025-08-19 00:27:59 +08:00
Xinrea
ab7f0cf0b4 bump version to 2.11.5 2025-08-15 22:50:38 +08:00
Xinrea
f9f590c4dc fix: docker start with nscd 2025-08-15 22:47:52 +08:00
Xinrea
8d38fe582a fix: ffprobe segment falt in docker environment 2025-08-15 22:31:10 +08:00
Xinrea
dc4a26561d bump version to 2.11.4 2025-08-14 22:08:44 +08:00
Xinrea
10c1d1f3a8 feat: add video export button in clip list (close #156) 2025-08-14 22:05:11 +08:00
Xinrea
66bcf53d01 fix: database operation optimization (close #157) 2025-08-14 21:52:08 +08:00
Xinrea
8ab4b7d693 bump version to 2.11.3 2025-08-14 00:13:09 +08:00
Xinrea
ce2f097d32 fix: adjust body size limit for video importing 2025-08-14 00:12:02 +08:00
Xinrea
f7575cd327 bump version to 2.11.2 2025-08-10 21:35:21 +08:00
Xinrea
8634c6a211 fix: always start a new recording when update entries errror 2025-08-10 21:34:41 +08:00
Xinrea
b070013efc bump version to 2.11.1 2025-08-10 20:56:48 +08:00
Eeeeep4
d2d9112f6c feat: smart flv conversion with progress (#155)
* fix: auto-close batch delete dialog after completion

* feat: smart FLV conversion with detailed progress and better UX

- Intelligent FLV→MP4 conversion (lossless stream copy + high-quality fallback)
- Real-time import progress with percentage tracking
- Smart file size display (auto GB/MB units)
- Optimized thumbnail generation and network file handling

* refactor: reorganize FFmpeg functions and fix network detection

- Move FFmpeg functions from video.rs to ffmpeg.rs
- Fix Windows drive letters misidentified as network paths
- Improve network vs local file detection logic

* fix: delete thumbnails when removing cliped videos
2025-08-10 17:00:31 +08:00
Xinrea
9fea18f2de ci/cd: remove unused rust-cache 2025-08-10 10:17:09 +08:00
Xinrea
74480f91ce ci/cd: fix rust cache 2025-08-10 00:05:44 +08:00
Xinrea
b2e13b631f bump version to 2.11.0 2025-08-09 23:47:39 +08:00
Xinrea
001d995c8f chore: style adjustment 2025-08-09 23:46:47 +08:00
Eeeeep4
8cb2acea88 feat: add universal video clipping support (close #78) (#145)
* feat: add universal video clipping support

- Allow clipping for all video types including imported and recorded videos
- Support secondary precise clipping from rough clips
- Fix video status validation to include completed recordings (status 0 and 1)

* feat: integrate video clipping into player and enhance subtitle timeline

- Optimize subtitle progress bar styling and timeline interaction
- Unify video clipping workflow across all video types
- Fix build issues and improve code quality with safer path handling

* feat: improve video clipping and UI consistency

- fix: resolve FFmpeg clipping start time offset issue
- fix: enhance clip selection creation logic
- style: unify interface styling and colors
- feat: complete HTTP APIs for headless mode

* fix: improve headless mode file handling and path resolution

- Add multipart file upload support for external video import in headless mode
- Fix file path resolution issues for both video files and thumbnails
- Make convertFileSrc and convertCoverSrc async to properly handle absolute path conversion in Tauri

* fix: correct video cover size and file size display in GUI import

Fix the cover size when importing videos
Fix file size display during GUI-side import
2025-08-09 23:22:53 +08:00
Xinrea
7c0d57d84e fix: clip danmu offset (#153)
* fix: account tutorial link

* feat: encoding-fix option for clip

* fix: clip on stream

* fix: danmu encoding offset

* fix: clip when no range provided
2025-08-09 21:00:28 +08:00
Xinrea
8cb875f449 bump version to 2.10.6 2025-08-07 23:31:17 +08:00
Xinrea
e6bbe65723 feat: backup api for douyin room info (#146) 2025-08-07 23:09:43 +08:00
Xinrea
f4a71a2476 bump version to 2.10.5 2025-08-07 01:01:05 +08:00
Xinrea
47b9362b0a fix: douyin manifest and ts fetch error 2025-08-06 23:28:46 +08:00
Xinrea
c1aad0806e fix: subtitle result not saved 2025-08-06 23:08:29 +08:00
Xinrea
4ccc90f9fb docs: update 2025-08-05 08:35:46 +08:00
Xinrea
7dc63440e6 docs: update 2025-08-04 23:29:17 +08:00
Xinrea
4094e8b80d docs: update 2025-08-04 22:05:31 +08:00
Xinrea
e27cbaf715 bump version to 2.10.4 2025-08-04 00:20:12 +08:00
Xinrea
1f39b27d79 fix: creation_flags on windows 2025-08-03 23:56:56 +08:00
Xinrea
f45891fd95 fix: cmd window on windows 2025-08-03 23:17:36 +08:00
Xinrea
18fe644715 bump version to 2.10.3 2025-08-03 21:18:21 +08:00
Xinrea
40cde8c69a fix: no danmaku after adding with short room id 2025-08-03 21:17:41 +08:00
Xinrea
4b0af47906 fix: douyin room info params 2025-08-03 20:45:07 +08:00
Xinrea
9365b3c8cd bump version to 2.10.2 2025-08-02 21:08:29 +08:00
Xinrea
4b9f015ea7 fix: introduce user-agent configuration to avoid access limit 2025-08-02 21:07:06 +08:00
Xinrea
c42d4a084e doc: update 2025-08-02 01:18:04 +08:00
Xinrea
5bb3feb05b bump version to 2.10.1 2025-07-31 23:08:45 +08:00
Xinrea
05f776ed8b chore: adjust logs 2025-07-31 23:07:37 +08:00
Xinrea
9cec809485 fix: button disabled when triggered by deeplinking 2025-07-31 22:50:57 +08:00
Xinrea
429f909152 feat: break recording when resolution changes (close #144) 2025-07-31 22:39:45 +08:00
Xinrea
084dd23df1 Revert "fix: start a new recording when header changes"
This reverts commit 955e284d41.
2025-07-31 21:15:26 +08:00
Xinrea
e55afdd739 docs: update 2025-07-31 00:30:02 +08:00
Xinrea
72128a132b docs: update 2025-07-30 01:48:29 +08:00
Xinrea
92ca2cddad fix: dependencies 2025-07-29 00:59:21 +08:00
Xinrea
3db0d1dfe5 feat: manual input model name (close #143) 2025-07-29 00:09:06 +08:00
Xinrea
57907323e6 bump version to 2.10.0 2025-07-27 19:52:53 +08:00
Xinrea
dbdca44c5f feat: deep-link support bsr:// 2025-07-27 19:51:58 +08:00
Xinrea
fe1dd2201f fix: prevent list corruption when deleting archived items 2025-07-26 22:52:45 +08:00
Xinrea
e0ae194cc3 bump version to 2.9.5 2025-07-26 22:40:50 +08:00
Xinrea
6fc5700457 ci/cd: add script to bump version 2025-07-26 22:40:49 +08:00
Xinrea
c4fdcf86d4 fix: bilibili stream pathway not update (close #117) 2025-07-26 22:40:46 +08:00
Xinrea
3088500c8d bump version to 2.9.4 2025-07-25 21:10:04 +08:00
Xinrea
861f3a3624 fix: tauri schema not handled by custom plugin for shaka-player 2025-07-25 21:09:41 +08:00
Xinrea
c55783e4d9 chore: update @tauri-apps/api 2025-07-25 20:13:04 +08:00
Xinrea
955e284d41 fix: start a new recording when header changes 2025-07-24 23:03:09 +08:00
Xinrea
fc4c47427e chore: adjust log level 2025-07-24 21:57:04 +08:00
Xinrea
e2d7563faa bump version to 2.9.3 2025-07-24 21:28:35 +08:00
Xinrea
27d69f7f8d fix: clip video cover not loaded 2025-07-24 21:28:10 +08:00
Xinrea
a77bb5af44 bump version to 2.9.2 2025-07-24 00:32:28 +08:00
Xinrea
00286261a4 fix: range offset caused by duration error 2025-07-24 00:23:58 +08:00
Xinrea
0b898dccaa fix: bilibili stream url extraction error caused 404 2025-07-23 22:27:57 +08:00
Xinrea
a1d9ac4e68 chore: remove ai generated docs 2025-07-23 21:56:56 +08:00
Xinrea
4150939e23 Only create records after successful ts download (#141)
* Defer record creation until first successful stream segment download

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Checkpoint before follow-up message

* Improve recording logic with directory management and error handling

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Add recorder flow diagrams for Bilibili and Douyin recorders

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Refactor recorder update_entries to prevent empty records and directories

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Refactor recorder update_entries to prevent empty records and dirs

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Fix panic in non-FMP4 stream recording by safely handling entry store

Co-authored-by: shenwuol <shenwuol@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: shenwuol <shenwuol@gmail.com>
2025-07-23 17:35:00 +08:00
Xinrea
8f84b7f063 fix: import missing in headless build 2025-07-23 00:17:51 +08:00
Xinrea
04b245ac64 bump version to 2.9.1 2025-07-23 00:07:23 +08:00
Xinrea
12f7e62957 chore: remove unused code 2025-07-23 00:01:23 +08:00
Xinrea
9600d310c7 fix: 400-request-error on some douyin stream 2025-07-22 23:58:43 +08:00
Xinrea
dec5a2472a feat: douyin account information fetching (#140)
* Implement Douyin account info retrieval and auto-update

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Refactor Douyin account API to use IM relation endpoint

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Fix Douyin client error handling with correct error variant

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Checkpoint before follow-up message

* Checkpoint before follow-up message

* Add id_str support for cross-platform account ID compatibility

Co-authored-by: shenwuol <shenwuol@gmail.com>

* Fix account update with deref for id_str comparison

Co-authored-by: shenwuol <shenwuol@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: shenwuol <shenwuol@gmail.com>
2025-07-22 23:35:49 +08:00
Xinrea
13eb7c6ea2 docs: update 2025-07-22 01:40:05 +08:00
Xinrea
2356cfa10a bump version to 2.9.0 2025-07-20 22:53:27 +08:00
Xinrea
3bfaefb3b0 doc: update 2025-07-20 22:53:03 +08:00
Xinrea
78b8c25d96 fix: ts entry timestamp 2025-07-20 22:52:54 +08:00
Xinrea
c1d2ff2b96 feat: ai agent (#139)
* feat: ai assistance

* feat: prompt for model configuration

* feat: agent optimize

* feat: archive subtitle

* feat: agent optimize

* fix: live preview callstack error

* chore: update dependencies

* fix: frontend hang with incorrect danmu ts

* fix: platform error handle

* fix: negative clip_offset

* fix: handle fs error
2025-07-20 20:50:26 +08:00
Xinrea
24aee9446a feat: using milisecond timestamp as sequence (#136)
* feat: using milisecond timestamp as sequence

* feat: log for douyin ts timestamp extract-error
2025-07-17 00:52:31 +08:00
Xinrea
2fb094ec31 bump version to 2.8.0 2025-07-15 22:52:46 +08:00
Xinrea
53897c66ee feat: whisper language setting (#134)
* feat: whisper language setting

* fix: set auto as default language setting
2025-07-15 22:38:31 +08:00
Xinrea
ca4e266ae6 feat: audio chunks for whisper (#133)
* feat: split audio into chunks for whisper

* fix: srt time

* fix: remove mp3 cover

* fix: chunks order on local whisper

* fix: improve error handling when reading chunk directory in video subtitle generation

* feat: prevent interruption of processes when using local Whisper

* fix: inconsistency of srt item formatting
2025-07-10 01:58:57 +08:00
Xinrea
6612a1e16f fix: code -352 for user/room api 2025-07-05 18:50:19 +08:00
Xinrea
55ceb65dfb fix: bili danmu (#132)
* fix: danmu message cmd

* bump version to 2.7.5
2025-07-03 01:42:48 +08:00
Xinrea
6cad3d6afb fix: crash with invalid cookie (#131) 2025-07-01 00:24:11 +08:00
Xinrea
151e1bdb8a fix: bilibili api buvid3 check 2025-06-28 21:13:54 +08:00
Xinrea
44a3cfd1ff bump version to 2.7.3 2025-06-26 00:48:16 +08:00
Xinrea
9cbc3028a7 fix: optimize whisper-online file size 2025-06-26 00:48:03 +08:00
Xinrea
8c30730d7b fix: whisper prompt for service 2025-06-26 00:19:23 +08:00
Xinrea
acfb870f9d fix: subtitle response in docker mode 2025-06-26 00:01:16 +08:00
Xinrea
3813528f50 feat: implement virtual scrolling for danmu list 2025-06-24 23:36:15 +08:00
Xinrea
e3bb014644 fix: crashed by loading large amount of cover data 2025-06-24 00:23:56 +08:00
Xinrea
76a7afde76 bump version to 2.7.0 2025-06-22 21:21:09 +08:00
Xinrea
1184f9f3f5 fix: auto close video preview after deleting 2025-06-22 21:20:04 +08:00
Xinrea
b754f8938f chore: clean up code 2025-06-22 21:15:03 +08:00
Xinrea
6b30ff04b7 feat: stt services support (#128)
* feat: add task page

* feat: online whisper service support (close #126)

* fix: blocking in recorder main loop
2025-06-22 21:06:35 +08:00
Xinrea
1c40acca63 feat: clip manage (#127)
* feat: ignore pre-release on version check

* feat: new clip-manage page

* chore: rename custom scrollbar class
2025-06-22 00:32:39 +08:00
Xinrea
a5a7a8afaf fix: douyin danmu 2025-06-20 00:50:37 +08:00
Xinrea
583ac13a37 chore: update dependencies 2025-06-19 23:35:11 +08:00
Xinrea
3e58972072 fix: recorder re-added when removing 2025-06-19 00:31:11 +08:00
Xinrea
f15aa27727 fix: release build with cuda cache error 2025-06-19 00:29:22 +08:00
Xinrea
2581014dbd fix: dockerfile 2025-06-19 00:18:16 +08:00
Xinrea
baaaa1b57e feat: randomly use multiple accounts (close #123) 2025-06-19 00:11:01 +08:00
Xinrea
160fbb3590 feat: collect frontend log to backend (close #122) 2025-06-18 22:49:07 +08:00
Xinrea
6f3253678c feat: readonly mode (#121)
* feat: readonly mode (close #112)

* feat: check free-space when clipping
2025-06-18 01:09:58 +08:00
Xinrea
563ad66243 feat: danmu local offset settings (close #115) (#120) 2025-06-16 23:38:24 +08:00
Xinrea
a8d002cc53 fix: deadlock removing douyin-recorder 2025-06-13 00:29:29 +08:00
Xinrea
0615410fa4 fix: deadlock removing bili-recorder 2025-06-13 00:15:59 +08:00
Xinrea
fc98e065f8 fix: status-check interval not work for bilibili recorder 2025-06-12 23:35:24 +08:00
Xinrea
66f671ffa0 feat: douyin danmu (#119)
* feat: migrate to uniformed interface for danmu stream

* feat: douyin danmu support (close #113)

* chore: fix typo

* fix: loop-decompress body
2025-06-12 01:00:33 +08:00
Xinrea
69a35af456 fix: recorder adding back when removing (close #114)
Add a to_remove-set to filter recorders that are still in removing-stage,
so that monitor-thread wouldn't add them back.
2025-06-08 10:37:04 +08:00
Xinrea
e462bd0b4c feat: simplified room control mechanism (close #111) 2025-06-08 10:22:20 +08:00
Xinrea
ae6483427f bump version to 2.6.0 2025-06-03 21:53:14 +08:00
Xinrea
ad97677104 feat: configuration for status check interval 2025-05-30 00:32:30 +08:00
Xinrea
996d15ef25 chore: adjust ffmpeg log level & clean up code 2025-05-29 01:18:27 +08:00
Xinrea
06de32ffe7 bump version to 2.5.9 2025-05-27 15:13:45 +08:00
Xinrea
dd43074e46 fix: danmu api missing param 2025-05-27 15:13:22 +08:00
Xinrea
93495e13db bump version to 2.5.8 2025-05-27 01:49:02 +08:00
Xinrea
16950edae4 fix: danmu api wbi_sign required 2025-05-27 01:48:38 +08:00
Xinrea
4af1203360 fix: get logfile size on unix and windows 2025-05-24 18:04:51 +08:00
Xinrea
55b5bd1fd2 fix: metadata on windows 2025-05-24 17:00:09 +08:00
Xinrea
f0a7cf4ed0 bump version to 2.5.7 2025-05-24 15:55:02 +08:00
Xinrea
62e7412abf feat: new stream recording control 2025-05-24 15:54:06 +08:00
Xinrea
275bf647d2 feat: add fail count to avoid connection reject 2025-05-24 15:15:28 +08:00
Xinrea
00af723be9 refactor: stream update 2025-05-24 14:05:23 +08:00
Xinrea
19da577836 chore: add logs for recorder control handler 2025-05-24 12:57:24 +08:00
Xinrea
bf3a2b469b feat: implement log rotation on startup 2025-05-20 23:15:37 +08:00
Xinrea
bf31bfd099 feat: add links on release list 2025-05-20 22:26:47 +08:00
Xinrea
d02fea99f2 refactor: sidebar items 2025-05-20 22:17:49 +08:00
Xinrea
2404bacb4e fix: force switching to new stream when error (close #106) 2025-05-15 14:54:01 +08:00
Xinrea
b6c274c181 fix: adjust date-time-adding rule in manifest 2025-05-15 14:43:47 +08:00
Xinrea
f9b472aee7 fix: wrong ts comparison when clip (close #105) 2025-05-15 14:43:31 +08:00
Xinrea
45f277741b fix: entry timestamp to date str 2025-05-15 01:28:00 +08:00
Xinrea
94179f59cd bump version to 2.5.6 2025-05-15 01:07:37 +08:00
Xinrea
c7b550a3e3 fix: stuck when clipping douyin live 2025-05-15 01:07:36 +08:00
Xinrea
fd51fd2387 chore: adjust ffmpeg log level 2025-05-14 16:39:29 +08:00
Xinrea
23d1798ab6 fix: panic on recorder monitor thread 2025-05-14 16:37:47 +08:00
Xinrea
90e81d0d4d bump verstion to 2.5.5 2025-05-13 15:41:09 +08:00
Xinrea
6a7a19547d fix: invoke error message 2025-05-13 14:24:02 +08:00
Xinrea
1550849ee2 fix: ffmpeg path on windows 2025-05-13 13:37:03 +08:00
Xinrea
15116e2197 chore: add debug log for all ffmpeg task 2025-05-13 12:05:04 +08:00
Xinrea
63eda5179b bump version to 2.5.4 2025-05-08 21:06:34 +08:00
Xinrea
d7b1277363 feat: add douyin cookie documentation 2025-05-08 21:05:20 +08:00
Xinrea
337c933b92 chore: add logs for add recorder 2025-05-08 20:45:17 +08:00
Xinrea
b01b2cc9c0 fix: only provide date-time when discontinuity for douyin stream 2025-05-08 20:42:17 +08:00
Xinrea
30069b2f33 bump version to 2.5.3 2025-05-08 01:07:56 +08:00
Xinrea
c5bd57468c fix: failed to encode subtitle after manual-add 2025-05-08 01:06:52 +08:00
Xinrea
c050c65675 fix: danmu encode offset 2025-05-08 00:50:16 +08:00
Xinrea
e1bd7e7563 fix: task progress not updated 2025-05-08 00:32:21 +08:00
Xinrea
cc129f6384 fix: configuration not saved 2025-05-07 23:17:00 +08:00
Xinrea
e7ea0c0ff0 fix: preview on range select 2025-05-07 22:17:07 +08:00
Xinrea
9630d51c4c fix: provide date time on every segment 2025-05-07 22:17:07 +08:00
Xinrea
ceb140a4c2 Update src-tauri/src/recorder/entry.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 22:17:07 +08:00
Xinrea
fe8410ab98 Update src-tauri/src/recorder/bilibili.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 22:17:07 +08:00
Xinrea
00731cda93 refactor: manifest handled by entry store 2025-05-07 22:17:07 +08:00
Xinrea
c05979cb11 fix: panic when config path not exists 2025-05-06 20:03:04 +08:00
Xinrea
6e1a10e45c bump version to 2.5.1 2025-05-04 09:56:36 +08:00
Xinrea
bd74dfdb26 fix: preview stall when replacing expired stream (close #100) 2025-05-04 09:56:02 +08:00
Xinrea
b7c2fd3387 fix(web): cannot preview stream in default setting (close #101) 2025-05-04 09:29:36 +08:00
Xinrea
b65e41ca23 fix(web): delete archive 2025-05-04 09:07:00 +08:00
Xinrea
ec70eded14 docs: update 2025-05-03 23:41:51 +08:00
Xinrea
dcf9047d82 ci/cd: build package on tags push 2025-05-03 22:12:15 +08:00
Xinrea
cd85e9f65a feat: update felgens 2025-05-03 19:19:41 +08:00
Xinrea
066fd4fb77 bump version to 2.5.0 2025-05-03 18:33:41 +08:00
Xinrea
9a6bb30e73 fix(bilibili): not fetching real room for danmu 2025-05-03 18:25:28 +08:00
Xinrea
99d9f27618 fix: stream preview in tauri mode 2025-05-03 17:56:59 +08:00
Xinrea
02ddac6b17 docs: update 2025-05-02 17:30:10 +08:00
Xinrea
017438ee50 fix(http_server): using event_id from task creator 2025-05-02 11:16:55 +08:00
Xinrea
d938982107 feat: add clip download button in web mode 2025-05-02 10:44:06 +08:00
Xinrea
bdde1969f7 docs: fix header image 2025-05-02 10:43:48 +08:00
Xinrea
c8eb038190 fix(bilibili): force update for invalid index 2025-05-01 20:29:44 +08:00
Xinrea
2d90b79f73 fix(http_server): body size limit 2025-05-01 20:29:22 +08:00
Xinrea
f39d3baff5 fix(ffmpeg): add font in runtime for danmu encoding 2025-05-01 20:27:17 +08:00
Xinrea
84664ee272 fix(ffmpeg): auto create output folder 2025-05-01 16:49:17 +08:00
Xinrea
d603216baf fix(ci/cd): runtime env PATH 2025-05-01 16:13:10 +08:00
Xinrea
522873c7fb fix(utils): disk info on linux 2025-05-01 15:57:50 +08:00
Xinrea
a6548f9941 fix(ci/cd): runtime certificates 2025-05-01 15:48:49 +08:00
Xinrea
3843dd88b2 fix(utils): disk info from relative cache path 2025-05-01 15:34:04 +08:00
Xinrea
baddb4e9d4 feat: minimal runtime 2025-05-01 03:02:45 +08:00
Xinrea
4aa51b51bd feat: avoid tauri in headless 2025-05-01 01:51:00 +08:00
Xinrea
725494db7d feat: adjust dependencies 2025-05-01 01:24:07 +08:00
Xinrea
292caa4158 fix(utils): cache folder info on linux 2025-05-01 00:39:39 +08:00
Xinrea
29e9656919 fix(http_server): sse message contains invalid characters 2025-04-30 22:03:06 +08:00
Xinrea
78f4682efb fix(bilibili): invalid stream that needs redirect 2025-04-30 22:00:17 +08:00
Xinrea
fa090b0b66 fix: danmu offset 2025-04-30 21:46:29 +08:00
Xinrea
32b7e9c3c2 fix: file export in web 2025-04-30 21:33:09 +08:00
Xinrea
4d3e069a81 ci/cd: static ffmpeg build in runtime 2025-04-30 18:29:33 +08:00
Xinrea
3ed658a31c ci/cd: remove check 2025-04-30 17:23:20 +08:00
Xinrea
efb24798c8 ci/cd: minimal runtime 2025-04-30 17:22:53 +08:00
Xinrea
e72e9027ef feat: download ffmpeg instead installing in runtime 2025-04-30 16:21:14 +08:00
Xinrea
17c93fb716 fix(ci/cd): pages build 2025-04-30 11:26:45 +08:00
Xinrea
a826666ad6 docs: add pages 2025-04-30 11:24:44 +08:00
Xinrea
c8282cb66f fix(ci/cd): add dependencies 2025-04-30 10:33:13 +08:00
Xinrea
592fd3940e ci/cd: add auto clippy check 2025-04-30 10:27:04 +08:00
Xinrea
7e9980b098 refactor: clean up code 2025-04-30 10:22:11 +08:00
Xinrea
283ee06034 fix: url open in web 2025-04-30 09:35:06 +08:00
Xinrea
9a00693bb3 ci/cd: ffmpeg in runtime 2025-04-30 03:42:19 +08:00
Xinrea
16906a46cd doc: update README 2025-04-30 03:36:55 +08:00
Xinrea
bdf017024a fix: runtime dependencies 2025-04-30 03:02:08 +08:00
Xinrea
58ae1ef426 fix: dockerfile 2025-04-30 02:51:07 +08:00
Xinrea
98e6544c25 fix: ci/cd workflow 2025-04-30 02:33:43 +08:00
Xinrea
1b57beeea6 ci/cd: docker package build 2025-04-30 02:30:52 +08:00
Xinrea
1625a5f889 fix: using static shaka-player lib 2025-04-30 02:30:52 +08:00
Xinrea
ae20e7fad7 fix: provide codecs master manifest 2025-04-30 02:30:52 +08:00
Xinrea
fc594b12e0 Revert "feat: switch bilibili stream to TS for compatibility"
This reverts commit 7a22637a7a.
2025-04-30 02:30:52 +08:00
Xinrea
0d25f32101 feat: event listen 2025-04-30 02:30:52 +08:00
Xinrea
cfd4522036 fix: panic when cancel none-existed event 2025-04-30 02:30:52 +08:00
Xinrea
f638d4aee0 fix: hls from endpoint 2025-04-30 02:30:52 +08:00
Xinrea
b237b78300 fix: danmu offset in web 2025-04-30 02:30:52 +08:00
Xinrea
ed2983c073 feat: settings i web env 2025-04-30 02:30:52 +08:00
Xinrea
730227ac45 fix: hls in tauri 2025-04-30 02:30:52 +08:00
Xinrea
7fb4f41f01 feat: switch bilibili stream to TS for compatibility 2025-04-30 02:30:52 +08:00
Xinrea
d92e013413 fix: ranged hls content 2025-04-30 02:30:52 +08:00
Xinrea
980fd145d0 feat: hls server 2025-04-30 02:30:52 +08:00
Xinrea
693734e12a fix: backend fetch 2025-04-30 02:30:52 +08:00
Xinrea
cbeae9b40d fix: handlers in tauri mode 2025-04-30 02:30:52 +08:00
Xinrea
4d0cc2c3b6 refactor: add extra layer for invoke 2025-04-27 23:02:03 +08:00
Xinrea
5dac578389 ci/cd: add rust cache 2025-04-27 19:05:58 +08:00
Xinrea
710718bcd6 feat: add thread to retry creating recorder 2025-04-27 19:02:28 +08:00
Xinrea
21b4914817 fix: shortcut triggered by input (close #97) 2025-04-27 12:07:17 +08:00
Xinrea
77dde29f8d ci/cd: test build cpu version 2025-04-27 10:24:30 +08:00
Xinrea
20e11c48ff bump version to 2.4.2 2025-04-24 19:31:23 +08:00
Xinrea
dbe47aa223 fix: webid error & bili account requirement (close #96) 2025-04-24 19:30:07 +08:00
Xinrea
b916553619 bump version to 2.4.1 2025-04-18 22:47:26 +08:00
Xinrea
d752a0260b fix(bilibili): pause current record not working (close #95) 2025-04-18 21:05:01 +08:00
Xinrea
97cf7b1420 doc: update 2025-04-18 15:38:45 +08:00
Xinrea
50e2377efb feat: update shaka-player to v4.11.21 2025-04-18 15:15:31 +08:00
Xinrea
940cfcd9ed bump version to 2.4.0 2025-04-18 02:31:55 +08:00
Xinrea
cfd36cdaf3 fix(bilibili): update felgen to support none-standard msg cmd (close #84) 2025-04-18 02:31:11 +08:00
Xinrea
d3133388d9 fix: douyin preview stall after interrupt 2025-04-18 02:17:15 +08:00
Xinrea
05bfe68e92 chore: adjust update entries warning log 2025-04-18 01:14:16 +08:00
Xinrea
d31aa51cf0 chore: clean up code 2025-04-17 19:09:34 +08:00
Xinrea
6d8918f431 fix: reset after status change notify 2025-04-17 19:04:11 +08:00
Xinrea
a5b6856b81 feat: tag for live status 2025-04-17 15:57:31 +08:00
Xinrea
68d9d7801a feat: auto generate whole live clip (close #79) 2025-04-17 15:51:34 +08:00
Xinrea
f51934d02a fix: danmu in ranged preview 2025-04-17 02:27:18 +08:00
Xinrea
21a702e716 feat: generate clip by local m3u8 index file 2025-04-17 02:20:36 +08:00
Xinrea
418f799b64 feat: relative path in m3u8 index 2025-04-17 01:51:23 +08:00
Xinrea
185ef743b5 feat: using the same version of shaka-player
related commit:
1fde087f7b
2025-04-17 01:16:39 +08:00
Xinrea
54da9b3cf4 feat: remove hls server (close #93)
Registered a custom shaka-player network plugin
to load data through tauri invoke instead of
maintaining a backend hls server.
2025-04-17 01:12:56 +08:00
Xinrea
b5fed447dd feat: adjust export button icon 2025-04-16 16:49:41 +08:00
Xinrea
9b88a21338 feat: remove setting of primary account (close #94) 2025-04-16 16:34:15 +08:00
Xinrea
0c82cd4285 fix: ignore corrupted segment 2025-04-16 16:04:01 +08:00
Xinrea
22e6c5338a feat: danmu export (close #83) 2025-04-16 15:58:27 +08:00
Xinrea
8e4e3b5aa9 feat: encode danmu when clip (close #80) 2025-04-16 13:25:41 +08:00
Xinrea
4b57b56189 fix: fetch original stream for douyin (close #77, close #91) 2025-04-15 01:13:17 +08:00
Xinrea
77eab5e80c chore: adjust logs 2025-04-14 21:47:38 +08:00
Xinrea
15dac35d31 fix: adjust preview reload interval 2025-04-14 21:44:49 +08:00
Xinrea
d84c03c93d fix: range persistance for live 2025-04-14 21:41:22 +08:00
Xinrea
7e417c5bbe feat: alert for ffmpeg missing (close #86) 2025-04-08 01:20:15 +08:00
Xinrea
fe2471553d feat: persisted range selection (close #87) 2025-04-08 00:40:41 +08:00
Xinrea
3e2a3cc4fd chore: remove vscode configuration 2025-04-07 23:45:41 +08:00
Xinrea
b9830f336e chore: update dependencies (close #88) 2025-04-07 19:25:51 +08:00
Xinrea
782c339c33 fix: wrong live URL for douyin lives (close #81) 2025-04-07 04:20:12 +08:00
Xinrea
2c60a7d987 chore: introduce tiny model for testing 2025-04-03 00:14:50 +08:00
Xinrea
0e6f53a343 fix: panic when error on whisper init 2025-04-02 23:27:16 +08:00
Xinrea
b0a85654ab bump version to 2.3.0 2025-04-01 16:49:40 +08:00
Xinrea
8b6b5d2695 chore: adjust log target and level 2025-04-01 15:59:15 +08:00
Xinrea
1fde087f7b fix: douyin stream preview stall
Using a separate version of shaka-player to avoid stalls on the special stream,
which is mixed with raw AAC data segments.

shaka-player has made some fixes on this:
https://github.com/shaka-project/shaka-player/pull/6360

However, in recent versions, this bug seems to have reappeared,
so we changed to use an older version of shaka-player for the
douyin stream to avoid this.
2025-04-01 14:51:18 +08:00
Xinrea
82b41c4e81 fix: freezed m3u8 for douyin live 2025-04-01 12:27:02 +08:00
Xinrea
d0f96b6193 fix: clip from hls to avoid corrupted output (close #74) 2025-04-01 12:11:10 +08:00
Xinrea
8a8bbf8bca fix: range m3u8 not end when live 2025-04-01 11:59:39 +08:00
Xinrea
0430988482 fix: wait for ffmpeg process 2025-04-01 04:28:02 +08:00
Xinrea
781ce70210 fix: transcode progress 2025-04-01 04:03:32 +08:00
Xinrea
fcca33e908 fix: enable shaka player low-latency-mode 2025-04-01 01:42:36 +08:00
Xinrea
52b74d70c9 feat: preview on range (close #57) 2025-04-01 01:21:39 +08:00
Xinrea
6d180a671d feat: rebuild archives from caches (close #64) 2025-03-31 23:26:51 +08:00
Xinrea
583185911b feat: show archives in time desc order 2025-03-31 21:38:02 +08:00
Xinrea
549f79edd0 refactor: bundle clip params 2025-03-31 21:31:49 +08:00
Xinrea
30894ac172 Create LICENSE 2025-03-31 21:18:19 +08:00
Xinrea
62a2c63f9d feat: play as vod when paused (close #63) 2025-03-31 19:49:16 +08:00
Xinrea
0aef85998f feat: progress feedback from ffmpeg operation 2025-03-31 19:44:19 +08:00
Xinrea
3bb215ae94 ci/cd: update local build script 2025-03-31 01:52:07 +08:00
Xinrea
7d9428de14 feat: bundle ffmpeg for installer on windows 2025-03-30 23:55:05 +08:00
Xinrea
c85c9206f6 doc: update 2025-03-30 23:00:27 +08:00
Xinrea
2b986c16b8 fix: PATH env on macOS (close #76) 2025-03-30 17:40:22 +08:00
Xinrea
a5ae622a30 feat: add error log for audio extraction 2025-03-30 16:33:58 +08:00
Xinrea
b3a724b22e ci/cd: add a script for windows local build 2025-03-30 16:32:09 +08:00
Xinrea
7f96dcd2bf ci/cd: only supply cuda version due to cpu issue 2025-03-30 14:36:28 +08:00
Xinrea
534cf1e3c9 feat: add progress log for whisper 2025-03-30 12:20:25 +08:00
Xinrea
3ec3f5d23c ci/cd: build debug version 2025-03-30 09:50:34 +08:00
Xinrea
2241b9b936 fix: time markers not updated when scale changes 2025-03-30 02:18:11 +08:00
Xinrea
e8fd6a81be fix: ffmpeg subtitles path on windows 2025-03-30 02:11:57 +08:00
Xinrea
8b4672b202 feat: better subtitles shadow preview 2025-03-30 01:30:15 +08:00
Xinrea
9734041777 feat: change default subtitles font size to 18 2025-03-30 01:19:08 +08:00
Xinrea
e15fe67790 fix: timeline marker gap width 2025-03-30 01:18:16 +08:00
Xinrea
937a5996bf fix: duplicated danmu & disable danmu not working 2025-03-30 01:08:42 +08:00
Xinrea
d6c87e8be7 feat: add clear subtitles button 2025-03-30 00:02:33 +08:00
Xinrea
606e29f56b feat: add config for whisper prompt 2025-03-29 23:46:21 +08:00
Xinrea
45d5ad04eb Merge pull request #67 from Xinrea/fix/cicd-workflow
fix/cicd-workflow
2025-03-29 20:34:22 +08:00
Xinrea
85c4dcb4a5 feat: update modal download link 2025-03-29 20:32:28 +08:00
Xinrea
b803857d65 feat: add whisper init prompt to use simplified chinese 2025-03-29 20:13:38 +08:00
Xinrea
8b029410cb feat: add time cost to whisper 2025-03-29 20:01:28 +08:00
Xinrea
33cdbc1552 ci/cd: default build without CUDA 2025-03-29 18:49:05 +08:00
Xinrea
67c125faaf doc: add CONTRIBUTING 2025-03-29 18:44:45 +08:00
Xinrea
d21db4b220 ci/cd: differ cuda installer 2025-03-29 14:49:51 +08:00
Xinrea
7bbf0eb566 ci/cd: debug for rc version 2025-03-29 14:46:41 +08:00
Xinrea
2eeb7a28fe feat: openblas for win 2025-03-29 11:19:01 +08:00
Xinrea
6ae39414f4 ci/cd: fix release workflow 2025-03-29 09:18:16 +08:00
Xinrea
6a22769199 bump version to 2.2.0 2025-03-29 00:23:11 +08:00
Xinrea
8b12886422 Merge pull request #66 from Xinrea/feat/custom-filename
feat/custom-filename
2025-03-29 00:21:06 +08:00
Xinrea
bde723b9bd fix: lastupdate not reset with new stream 2025-03-29 00:19:02 +08:00
Xinrea
0f3720296a fix: clip deletion when preview 2025-03-29 00:18:55 +08:00
Xinrea
df9c99d596 feat: custom filename (close #56) 2025-03-29 00:18:31 +08:00
Xinrea
864a7c38b6 Merge pull request #65 from Xinrea/feat/subtitles-generator
feat/subtitles-generator
2025-03-29 00:15:40 +08:00
Xinrea
edadf0b6b5 feat: subtitle editor and encode 2025-03-29 00:00:06 +08:00
Xinrea
54ba265510 feat: general subtitle generator interface 2025-03-27 10:48:11 +08:00
Xinrea
dc44327d4c bump version to 2.1.2 2025-03-27 00:58:48 +08:00
Xinrea
309b6449e6 Merge pull request #62 from Xinrea/fix/stream-expired
fix: stream update when expire
2025-03-27 00:57:19 +08:00
Xinrea
7dd5b2fb8d fix: stream update when expire 2025-03-27 00:37:08 +08:00
Xinrea
f32147658f feat: replace feedback url to group invite link 2025-03-27 00:27:11 +08:00
Xinrea
ba511d37ef chore: update issue template 2025-03-27 00:18:18 +08:00
Xinrea
4fa595547f Merge pull request #60 from Xinrea/fix/clip-error
fix/clip error
2025-03-27 00:07:21 +08:00
Xinrea
72282b180f bump version to 2.1.1 2025-03-26 20:58:45 +08:00
Xinrea
813686d66d fix: using PathBuf to handle paths 2025-03-26 20:54:54 +08:00
Xinrea
f03369719d refactor: clean some warnings 2025-03-26 20:53:08 +08:00
Xinrea
c639b012bc feat: more log about clip error 2025-03-25 22:13:46 +08:00
Xinrea
4144ce96c0 feat: button for opening log folder 2025-03-25 21:46:42 +08:00
Xinrea
38eed8b66e bump version to 2.1.0 2025-03-25 21:38:47 +08:00
Xinrea
0315bfae0c Merge pull request #55 from Xinrea/feat/progress-display
feat/progress_display
2025-03-25 21:26:33 +08:00
Xinrea
305b87265c feat: cancel upload procedure 2025-03-25 21:23:04 +08:00
Xinrea
847a790132 feat: upload request retry 2025-03-25 21:23:04 +08:00
Xinrea
ab27798283 feat: progress display for clip and post 2025-03-25 21:23:04 +08:00
Xinrea
4b521f775c Merge pull request #54 from Xinrea/feat/new_version_hint
feat: new version hint
2025-03-25 21:22:27 +08:00
Xinrea
0f68ec0677 feat: new version hint 2025-03-25 21:19:24 +08:00
Xinrea
ed4409661f Merge pull request #53 from Xinrea/fix/disk_info
fix: disk info on macOS (close #52)
2025-03-25 19:23:33 +08:00
Xinrea
789d56b1a4 fix: disk info on macOS (close #52) 2025-03-25 19:21:50 +08:00
Xinrea
6d6c3ddcb5 Merge pull request #51 from Xinrea/feat/auto-recording-switch
feat: recording control for rooms (close #42)
2025-03-25 19:19:50 +08:00
Xinrea
c4441029f8 feat: manual start/pause for current live 2025-03-25 10:54:19 +08:00
Xinrea
4285110233 feat: icon for auto-record 2025-03-25 02:41:07 +08:00
Xinrea
4ad33a7ea8 fix: recording control for douyin streams 2025-03-25 02:11:19 +08:00
Xinrea
b41c800bb0 feat: recording control for rooms (close #42) 2025-03-25 01:56:51 +08:00
Xinrea
c4592d5ca6 bump version to 2.0.3 2025-03-24 19:31:53 +08:00
Xinrea
5e9dba5d58 Merge pull request #49 from Xinrea/fix/outdated_stream
fix: outdated bilibili stream (close #44)
2025-03-24 19:06:58 +08:00
Xinrea
2cfd140d4a fix: outdated bilibili stream (close #44)
之前当直播流获取内容出现错误时,会尝试重新获取直播间状态,当检测到直播间关闭则会放弃继续尝试;
而如果直播间快速关播开播,原直播流虽然无新内容会触发Error::FreezedStream,但是由于流未过期,
check_status 不会更新直播流,导致 recorder 无法切换到新的直播流。

更改后,将流过期的判断放在 update_entries 中,如果遇到任何错误,便会尝试重新获取新的流地址。
2025-03-24 19:06:00 +08:00
Xinrea
13e421bfba Merge pull request #47 from Xinrea/fix/macos-crash
fix: macOS crash caused by log and ffmpeg_sidecar (close #45)
2025-03-24 12:47:38 +08:00
Xinrea
1933727f89 fix: macOS crash caused by log and ffmpeg_sidecar (close #45) 2025-03-24 12:42:38 +08:00
Xinrea
4e16bfcc18 Merge pull request #41 from Xinrea/fix/infinite-nested-dirs
fix: infinite nested dirs
2025-03-17 20:52:30 +08:00
Xinrea
398ee831de bump version to 2.0.2 2025-03-17 20:51:21 +08:00
Xinrea
6d01280039 fix: infinite nested dirs when change output/cache folder 2025-03-17 20:50:16 +08:00
Xinrea
8aaa701348 bump version to 2.0.1 2025-03-15 13:11:03 +08:00
Xinrea
733a36571b feat: provide more detailed error information for 'add-room' failures (close #38) 2025-03-15 13:06:38 +08:00
Xinrea
f40ac28781 fix: account removal 2025-03-15 13:00:57 +08:00
Xinrea
d73e95d2e5 feat: cache migration 2025-03-14 11:31:04 +08:00
Xinrea
770338a68a fix: auto-close for donate modal 2025-03-13 11:36:17 +08:00
Xinrea
f58dafbde8 fix: video frame seek on windows 2025-03-13 01:30:35 +08:00
Xinrea
004712e851 feat: fix bilibili clip 2025-03-13 01:22:37 +08:00
Xinrea
4e53ed2cf8 fix: work dir path on windows 2025-03-13 01:12:33 +08:00
Xinrea
92ccad6253 fix: enable window decoration on windows 2025-03-13 01:11:29 +08:00
Xinrea
74c5e9bb09 Merge pull request #36 from Xinrea/feat/new-ui
v2.0.0 版本功能更新
2025-03-13 00:29:37 +08:00
Xinrea
2724d6b4d3 doc: update 2025-03-13 00:15:19 +08:00
Xinrea
212e144422 refactor: adjust player init order 2025-03-13 00:04:56 +08:00
Xinrea
205a1b82e7 bump version to 2.0.0 2025-03-12 23:51:51 +08:00
Xinrea
44b4604581 feat: add checks before deleting archive 2025-03-12 23:48:21 +08:00
Xinrea
3d3454b5a4 feat: advanced cover editor and donate page 2025-03-12 23:36:54 +08:00
Xinrea
67f1b04b67 feat: douyin support 2025-03-12 19:39:32 +08:00
Xinrea
fd7d299e55 refactor: decouple recorder 2025-03-10 19:21:59 +08:00
Xinrea
ada492f3f0 refactor: new ui 2025-03-10 19:21:43 +08:00
Xinrea
8a4e4fd32b fix: using first account when primary missing
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-23 00:52:57 +08:00
Xinrea
86ced2a217 release: bump version to 1.4.2
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-18 02:22:34 +08:00
Xinrea
c62251dfe9 fix(livewindow): adjust titlebar index to avoid blocking buttons
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-18 02:21:42 +08:00
Xinrea
8bf0f5d36e fix(recorder_manager): unable to remove recorder that has no cache folder created yet
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-18 02:10:02 +08:00
Xinrea
a4b6567947 feat(main, recorder): remove unused ffmpeg dependency
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-18 02:10:02 +08:00
Xinrea
6c5c628bbf fix(recorder): reconnect danmu ws after disconnection
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-18 02:10:02 +08:00
Xinrea
1d6593340d fix(account,room): duplicated avatar when adding/removing items
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-03 01:04:08 +08:00
Xinrea
0d992d205f release: bump version to 1.4.1
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-02 00:39:08 +08:00
Xinrea
f82e79efd4 Merge pull request #32 from Xinrea/feat/quick-stream-switch
feat(player): add shortcut button to navigate to other live rooms
2024-12-02 00:36:49 +08:00
Xinrea
5cdb6b6f75 feat(player): add shortcut button to navigate to other live rooms (close #31)
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-02 00:36:22 +08:00
Xinrea
7316a022be feat(player): enable player lowlatency mode
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-02 00:32:31 +08:00
Xinrea
dbd8a29b73 feat(recorder): dynamic entry update interval
Sometimes entry update cost a lot of time (caused by timeout or something),
which makes the actually interval much larger than 1s.

In this commit, entry update interval is ranged from 0ms to 500ms, based on
the time cost by last entry-updating.

Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-02 00:28:40 +08:00
Xinrea
d6a5a02d68 fix(recorder): optimize lock range and download sequence for entries
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-01 21:58:53 +08:00
Xinrea
9eef00b913 fix(bilibili): adjust global timeout to 10s
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-01 21:10:57 +08:00
Xinrea
3b9dd4824b feat: migrate tauri from rc to release
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-01 19:01:41 +08:00
Xinrea
902c1ad39e chore: add feature issue template 2024-12-01 03:28:20 +08:00
Xinrea
b4f6dea97f chore: add bug issue template 2024-12-01 03:20:36 +08:00
Xinrea
c1c252f54a release: bump version to 1.4.0
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-01 01:29:59 +08:00
Xinrea
303b5f8847 Merge pull request #30 from Xinrea/feat/danmu-statistic
feat(player): add danmu statistics graph on top of seek bar (close #17)
2024-12-01 01:28:38 +08:00
Xinrea
26f55a463b feat(player): add danmu statistics graph on top of seek bar (close #17)
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-01 01:15:05 +08:00
Xinrea
0fa2c366dc fix(recorder): add retry for entry downloading to avoid gaps
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-12-01 01:14:03 +08:00
Xinrea
bf1588e414 fix(recorder): potential panic when reopen live window
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-30 21:53:21 +08:00
Xinrea
3be0f25dfc fix(bilibili): add extra info when create index url to avoid 403
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-30 20:49:27 +08:00
Xinrea
0e53028922 fix(recorder_manager): always return error when deleting archive
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-29 02:14:57 +08:00
Xinrea
bc458647a3 release: bump version to 1.3.1
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-26 23:16:42 +08:00
Xinrea
6c5080394a refactor: address clippy warnings
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-26 16:24:57 +08:00
Xinrea
30d45ca2c3 refactor(database): modularize database implementation
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-26 15:58:46 +08:00
Xinrea
614aa3184f fix(player): use 'p' as marker shortcut to avoid conflicts (close #29)
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-26 15:36:28 +08:00
Xinrea
cacd28bd87 release: bump version to 1.3.0
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-26 00:54:26 +08:00
Xinrea
a3dfe86a04 doc: update livewindow description in README
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-26 00:51:23 +08:00
Xinrea
79c65cab63 Merge pull request #28 from Xinrea/feat/timepoint-mark
时间点标记功能
2024-11-26 00:42:47 +08:00
Xinrea
52237b9385 feat(livewindow): add timepoint mark support
By the way, livewindow style change to dark theme.

Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-26 00:38:21 +08:00
Xinrea
b8d22e92ff feat(livewindow): add collapse button for post panel
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-25 14:56:08 +08:00
Xinrea
faac0e29b5 fix(recorder): prevent deletion of current stream archive
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-25 02:11:46 +08:00
Xinrea
899afac910 feat(livewindow): support selection of video post area (close #20)
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-25 02:10:53 +08:00
Xinrea
7b2cbfefcc fix(recorder): safely stop recorder when removing room
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-25 01:57:20 +08:00
Xinrea
793e532240 feat(bilibili): add video type list api
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-24 21:47:10 +08:00
Xinrea
68c7bd251e refactor(bilibili): move response struct into mod response
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-24 20:39:21 +08:00
Xinrea
656f82df43 release: bump version to 1.2.1
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-23 12:49:04 +08:00
Xinrea
1571358f13 fix(recorder): live is mistakenly marked as online when client error (close #27)
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-23 12:45:57 +08:00
Xinrea
b6326cf36a fix(recorder): add error to handle slow stream
BiliBili stream's index content maybe lagging behind real-time content,
potentially caused by cdn issue. We need to switch into a new stream
in this situation.

Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-23 12:35:28 +08:00
Xinrea
0b7818a9d3 fix(recorder): handle freezed stream
Sometimes the stream index content may stop updating after re-pushing stream,
but it is still available. In this situation, we need to fetch a new stream.

Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-23 01:05:26 +08:00
Xinrea
b479d6086b feat(recorder): update current cached stream length with acurrate value
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-23 00:48:16 +08:00
Xinrea
6d06491ddc fix(recorder): manually construct clip instead of using ffmpeg (close #25)
Too many segments will make ffmpeg command spawn with long argument, which might
be exceeded the limit.
Now we manually copy and write segments into one file to generate a clip.
FFMPEG is still remained but not used for now, in the future clip encoding might
need this.

Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-22 22:12:32 +08:00
Xinrea
e15c6d44a1 feat(recorder, bilibili): add more info into error messages
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-22 02:10:36 +08:00
Xinrea
8ab656a097 feat(recorder): add random delay to avoid api limit
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-21 15:57:02 +08:00
Xinrea
cb8642b9a9 feat(main): add message for room deletion
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-19 16:39:54 +08:00
Xinrea
1761d398ee feat(recorder): enhance error message for archive deletion
Signed-off-by: Xinrea <xinreas@outlook.com>
2024-11-19 13:41:54 +08:00
Xinrea
eb33fd57a8 feat(bilibili, recorder): introduce BiliStream to handle stream expiration and extra 2024-11-18 14:33:49 +08:00
Xinrea
317b0b373a fix(recorder): handle error when creating danmu storage 2024-11-18 14:24:51 +08:00
Xinrea
563c8d0085 fix(bilibili): correct the potential issue with retrieving the wrong stream 2024-11-14 18:47:55 +08:00
Xinrea
80ced70267 feat(bilibili): add timeout for requests 2024-11-14 18:46:17 +08:00
Xinrea
3a89b43435 feat(recorder, bilibili): enhance error messages for improved debugging 2024-11-14 18:44:59 +08:00
Xinrea
d117095a5f feat(player): persist live room volume setting 2024-11-12 01:46:09 +08:00
Xinrea
d78c1bf861 fix(recorder): panic when offset not matching sequence 2024-11-09 01:01:31 +08:00
Xinrea
20da8034a1 chore: add git-cliff to generate Changelog
git-cliff configuration is provided. To generate Changelog:
git cliff -l
2024-11-07 12:48:37 +08:00
Xinrea
0d053a3462 release: bump version to 1.2.0 2024-11-07 02:08:07 +08:00
Xinrea
280e540f4f fix(recorder): using "-" instead of "|" to separate offset and sequence
When using "|" in file name, ffmpeg concat is not able to work. So now
we change it to "-".
Here is an example for new format of segment filename:
18b7af7-89947993.m4s
2024-11-07 01:39:40 +08:00
Xinrea
824cfd23ed fix(recorder): using global offset to find clip segments range
The clip range drift problem is finally solved by calculate
date-time for every segment. With date-time, we can ignore
gaps in m3u8 segments. close #5
2024-11-07 01:16:20 +08:00
Xinrea
695728df2e feat(recorder): add DATE-TIME tag for segments 2024-11-06 20:04:49 +08:00
Xinrea
24deca75d2 fix(recorder_manager): handle cors preflight request for hls server 2024-11-06 20:04:13 +08:00
Xinrea
8a1184f161 fix(recorder): clip using accurate segment length 2024-11-06 12:04:02 +08:00
Xinrea
d61096d1b1 refactor(recorder): calculate segment length in entry-creation 2024-11-06 02:14:42 +08:00
Xinrea
3b9d1be002 fix: use accurate segment length to prevent video time drift 2024-11-04 20:00:38 +08:00
Xinrea
13262f8f10 feat: add history danmu replay (close #16) 2024-11-03 21:24:54 +08:00
Xinrea
9f05fc4954 release: bump version to 1.1.0 2024-10-30 21:32:49 +08:00
Xinrea
3fce06ef63 chore: code format 2024-10-30 21:30:40 +08:00
Xinrea
3d13f69e5c feat: log output to file 2024-10-30 21:28:43 +08:00
Xinrea
deb19c6223 feat: change clip encoding to copy for speed 2024-10-30 21:01:58 +08:00
Xinrea
7466127832 feat: add account using cookie str (close #19) 2024-10-30 20:55:35 +08:00
Xinrea
af982c5fe0 fix: project url on about page 2024-10-30 18:38:25 +08:00
Xinrea
b03f0150d8 release: bump version to 1.0.6 2024-10-26 12:43:07 +08:00
Xinrea
d61ddafb44 fix: remove window effects
Tauri currently does not provide an API to retrieve the active window effects, making it impossible to adjust the window style based on that information. Therefore, we have removed the window effects to maintain UI consistency.

close #18
2024-10-26 12:42:41 +08:00
Xinrea
fd89a197a5 release: bump version to 1.0.5 2024-10-25 21:09:36 +08:00
Xinrea
31fa29ee62 fix: shortkey description 2024-10-25 21:08:32 +08:00
Xinrea
c7e28b2ad6 doc: update readme 2024-10-25 21:06:20 +08:00
Xinrea
bbc1343079 chore: fix some clippy warning 2024-10-25 20:19:24 +08:00
Xinrea
c7d4fb270b feat: add text-shadow for danmaku 2024-10-25 01:03:34 +08:00
Xinrea
fcccdee105 release: bump version to 1.0.4 2024-10-24 01:04:36 +08:00
Xinrea
887072f6c7 chore: remove quick-clip for now 2024-10-24 01:04:02 +08:00
Xinrea
1932edba21 feat: remove live-window fullscreen button on windows 2024-10-24 01:01:43 +08:00
Xinrea
0c15415822 feat: delete related cache folder when removing recorder 2024-10-24 01:01:04 +08:00
Xinrea
b8dc0870b5 feat: adjust cover-text style 2024-10-22 02:00:24 +08:00
Xinrea
9d0ad2ae45 feat: hide danmaku when playback is not keeping up with live stream 2024-10-22 01:43:44 +08:00
Xinrea
7278b9f48c fix: remove unused overflow-button 2024-10-22 01:39:22 +08:00
Xinrea
1aee95492a fix: only enable danmaku in live 2024-10-22 01:34:48 +08:00
Xinrea
0cff889f4b release: bump version to 1.0.3 2024-10-21 04:58:03 +08:00
Xinrea
9cd05362ac chore: update dependency ffmpeg-sidecar to 1.2.0 2024-10-21 04:57:24 +08:00
Xinrea
269eccc7ef feat: add playback rate select 2024-10-21 03:43:38 +08:00
Xinrea
aafd02090b feat: live_window title using formatted timestamp to show date 2024-10-21 03:21:53 +08:00
Xinrea
e0e43dbfa4 fix: prevent danmaku overflow from showing scrollbar 2024-10-21 02:39:49 +08:00
Xinrea
37c358a48b fix: video preview modal background 2024-10-21 02:27:07 +08:00
Xinrea
2b81f7a106 release: bump version to 1.0.2 2024-10-20 22:44:39 +08:00
Xinrea
cb9b606cb4 feat: save profile when text changed 2024-10-20 22:43:47 +08:00
Xinrea
c1879c6527 fix: post button 2024-10-20 22:41:15 +08:00
Xinrea
035c54b2fd fix: using player.seekRange() to get video total length 2024-10-20 22:37:23 +08:00
Xinrea
54b152207c fix: video preview window 2024-10-19 14:24:25 +08:00
Xinrea
034e159442 chore: change tray menu text 2024-10-19 14:04:00 +08:00
Xinrea
8a2533c182 fix: missing live_index when releasing 2024-10-19 13:50:14 +08:00
Xinrea
a35cc4cc19 ci/cd: update workflow 2024-10-19 06:05:00 +08:00
Xinrea
75b0cc80e3 feat: add notifications 2024-10-19 04:12:37 +08:00
Xinrea
c39a0bf462 fix: avoid long lock when cache migrating 2024-10-19 04:12:23 +08:00
Xinrea
10f19366f0 feat: add messages for cache's long migration 2024-10-19 03:52:46 +08:00
Xinrea
36ed9025f8 fix: stream not available after cache path changed 2024-10-19 03:50:09 +08:00
Xinrea
f67acc3fe1 fix: config not saved when errors 2024-10-19 03:31:03 +08:00
Xinrea
dea6418d54 fix: config not saving 2024-10-19 03:29:01 +08:00
Xinrea
adf3f63cfe feat: introduce app icon 2024-10-18 20:57:37 +08:00
Xinrea
22b1f11577 feat: simple support for folder migration (output & cache)
close #12
2024-10-18 20:55:38 +08:00
Xinrea
bc9fb48f18 feat: add linux support (untested) 2024-10-18 13:30:27 +08:00
Xinrea
0d6e6cc289 chore: remove unused functions 2024-10-18 01:06:59 +08:00
Xinrea
6d75a50716 feat: instant danmaku display support & danmaku sending
close #14
close #15
2024-10-17 20:11:20 +08:00
Xinrea
a8d9760a11 feat: prompt of empty message list 2024-10-15 04:40:38 +08:00
Xinrea
2889d3634f fix: disk name on windows 2024-10-15 04:31:52 +08:00
Xinrea
958e77e240 fix: message list scrollbar 2024-10-15 04:16:57 +08:00
Xinrea
e36a75aa28 feat: delete video button 2024-10-15 04:15:15 +08:00
Xinrea
1d66852134 feat: add play icon for preview-img-button 2024-10-15 04:01:21 +08:00
Xinrea
aab9764d33 fix: live window scrollbar is over titlebar 2024-10-15 02:10:24 +08:00
Xinrea
cf1c75c5b3 fix: live clip offset
close #11
2024-10-15 01:47:41 +08:00
Xinrea
a9c9d743b8 feat: webid expire-check and update 2024-10-14 19:36:41 +08:00
Xinrea
0213fda9a4 chore: update readme 2024-10-14 18:53:24 +08:00
Xinrea
909867e116 fix: adjust for windows platform 2024-10-14 18:48:21 +08:00
Xinrea
b75f920201 feat: simple disk info display
close #8
2024-10-14 16:57:55 +08:00
Xinrea
18a2fff07b fix: clip preview 2024-10-14 15:53:20 +08:00
Xinrea
1826dd122d fix: avoid code -352 with webid 2024-10-14 13:17:41 +08:00
Xinrea
2cb19941ee feat: add clip video record in db 2024-10-14 13:17:17 +08:00
Xinrea
00cd4d4b72 feat: store profiles in local storage 2024-10-10 12:16:28 +08:00
Xinrea
696cb5f48c feat: archive title 2024-10-09 18:17:35 +08:00
Xinrea
e13b4f5377 fix: disk usage 2024-10-09 17:53:14 +08:00
Xinrea
4b0bb7f31a feat: show version on main window title 2024-10-09 17:28:11 +08:00
Xinrea
1f6badb81d chore: remove automatic page for now 2024-10-09 17:07:02 +08:00
Xinrea
65acc6aa39 feat: show disk usage in summary page 2024-10-09 16:48:22 +08:00
Xinrea
44c41ed99f fix: open archive player window 2024-10-09 16:33:41 +08:00
Xinrea
301eb4f1dc feat: update to tauri 2 release version 2024-10-09 15:00:28 +08:00
Xinrea
5aa7de8d86 feat: cache size statistics 2024-10-09 14:35:25 +08:00
Xinrea
28c03918aa feat: separate clip button 2024-09-28 02:44:56 +08:00
Xinrea
d14b267305 fix: live window on macOS 2024-09-27 12:59:57 +08:00
Xinrea
f2f5d36090 feat: add macOS support 2024-09-27 12:49:48 +08:00
Xinrea
aec8450c53 feat: introduce message system
close #9
2024-09-27 03:07:48 +08:00
Xinrea
efc46341ae feat: multiple accounts support
close #6
2024-09-27 00:46:43 +08:00
Xinrea
3a69eb4864 doc: update readme 2024-09-26 02:42:14 +08:00
Xinrea
7044c2bd83 feat: cover text-adding support
simple cover editing & preview, close #7
2024-09-26 02:30:37 +08:00
Xinrea
74af439deb chore: basic database 2024-09-25 03:44:34 +08:00
Xinrea
faf7096743 feat: support index redirect & using different ways to generate clip 2024-09-25 03:43:53 +08:00
Xinrea
6b3f99c8a7 fix: clip range seek time & hotkey triggered when input 2024-09-25 03:42:44 +08:00
Xinrea
23fd528540 feat: separate clip and post 2024-09-25 03:41:57 +08:00
Xinrea
c701ee002e chore: error handling 2024-09-23 16:26:07 +08:00
Xinrea
238a755698 introduce sqlite 2024-09-22 20:53:36 +08:00
Xinrea
9cc95fb4c8 fix: render error when recorder list empty 2024-09-20 15:01:53 +08:00
Xinrea
bc5887eab4 fix: player slider thumb style 2024-09-20 15:01:10 +08:00
Xinrea
01335ad0ca WIP: update 2024-09-14 18:39:08 +08:00
Xinrea
18f7bd2bf7 WIP: old cache restore 2024-09-13 03:20:46 +08:00
Xinrea
d812deccb8 WIP: update 2024-09-13 01:40:34 +08:00
Xinrea
c7e5cbf26e WIP: using flowbite-svelte 2024-09-09 18:46:52 +08:00
Xinrea
e230ef0b41 WIP: introduce clip_range 2024-09-09 05:03:30 +08:00
Xinrea
5f547e593a WIP: DVR implement 2024-09-09 02:46:42 +08:00
Xinrea
a1c6caece1 ui: adjust styles 2024-09-01 19:53:23 +08:00
Xinrea
0281c2df1c chore: fix app description 2024-09-01 13:04:14 +08:00
Xinrea
88bfc517f7 release v0.1.0 2024-08-31 02:23:01 +08:00
Xinrea
877b6b5764 fix: update felgens to fix danmu stream 2024-08-31 02:23:01 +08:00
Xinrea
6b73937acd fix: deadlock when add/remove room 2024-08-31 02:22:55 +08:00
Xinrea
95f7790870 feat: adjust styles 2024-08-30 18:01:17 +08:00
Xinrea
0a536a518a feat: add qr login & change to async 2024-08-30 17:46:25 +08:00
Xinrea
330fa14c8c chore: change dev port 2024-08-29 15:43:12 +08:00
Xinrea
51d4767307 update dependencies 2024-08-29 15:02:35 +08:00
Xinrea
e5f12cdacd feat: Notification for clip action 2023-05-26 16:15:22 +08:00
Xinrea
87525419a2 release v0.0.5 2023-05-25 17:43:21 +08:00
Xinrea
d427d32463 fix: output path with spaces 2023-05-25 17:16:08 +08:00
270 changed files with 103332 additions and 8313 deletions

View File

@@ -0,0 +1,51 @@
# AI Features and LangChain Integration
## AI Components
- **LangChain Integration**: Uses `@langchain/core`, `@langchain/deepseek`,
`@langchain/langgraph`, `@langchain/ollama`
- **Whisper Transcription**: Local and online transcription via `whisper-rs` in
Rust backend
- **AI Agent**: Located in [src/lib/agent/](mdc:src/lib/agent/) directory
## Frontend AI Features
- **AI Page**: [src/page/AI.svelte](mdc:src/page/AI.svelte) - Main AI interface
- **Agent Logic**: [src/lib/agent/](mdc:src/lib/agent/) - AI agent implementation
- **Interface**: [src/lib/interface.ts](mdc:src/lib/interface.ts)
\- AI communication layer
## Backend AI Features
- **Subtitle Generation**:
[src-tauri/src/subtitle_generator/](mdc:src-tauri/src/subtitle_generator/) -
AI-powered subtitle creation
- **Whisper Integration**:
[src-tauri/src/subtitle_generator.rs](mdc:src-tauri/src/subtitle_generator.rs)
\- Speech-to-text processing
- **CUDA Support**: Optional CUDA acceleration for Whisper via feature flag
## AI Workflows
- **Live Transcription**: Real-time speech-to-text during live streams
- **Content Summarization**: AI-powered content analysis and summarization
- **Smart Editing**: AI-assisted video editing and clip generation
- **Danmaku Processing**: AI analysis of danmaku (bullet comments) streams
## Configuration
- **LLM Settings**: Configure AI models in [src-tauri/config.example.toml](mdc:src-tauri/config.example.toml)
- **Whisper Models**: Local model configuration for offline transcription
- **API Keys**: External AI service configuration for online features
## Development Notes
- AI features require proper model configuration
- CUDA feature enables GPU acceleration for Whisper
- LangChain integration supports multiple AI providers
- AI agent can work with both local and cloud-based models
description:
globs:
alwaysApply: true
---

View File

@@ -0,0 +1,62 @@
# Build and Deployment Configuration
## Build Scripts
- **PowerShell**: [build.ps1](mdc:build.ps1) - Windows build script
- **FFmpeg Setup**: [ffmpeg_setup.ps1](mdc:ffmpeg_setup.ps1)
\- FFmpeg installation script
- **Version Bump**: [scripts/bump.cjs](mdc:scripts/bump.cjs)
\- Version management script
## Package Management
- **Node.js**: [package.json](mdc:package.json) - Frontend dependencies and scripts
- **Rust**: [src-tauri/Cargo.toml](mdc:src-tauri/Cargo.toml)
\- Backend dependencies and features
- **Lock Files**: [yarn.lock](mdc:yarn.lock) - Yarn dependency lock
## Build Configuration
- **Vite**: [vite.config.ts](mdc:vite.config.ts) - Frontend build tool configuration
- **Tailwind**: [tailwind.config.cjs](mdc:tailwind.config.cjs) - CSS framework configuration
- **PostCSS**: [postcss.config.cjs](mdc:postcss.config.cjs) - CSS processing configuration
- **TypeScript**: [tsconfig.json](mdc:tsconfig.json),
[tsconfig.node.json](mdc:tsconfig.node.json) - TypeScript configuration
## Tauri Configuration
- **Main Config**: [src-tauri/tauri.conf.json](mdc:src-tauri/tauri.conf.json)
\- Core Tauri settings
- **Platform Configs**:
- [src-tauri/tauri.macos.conf.json](mdc:src-tauri/tauri.macos.conf.json)
\- macOS specific
- [src-tauri/tauri.linux.conf.json](mdc:src-tauri/tauri.linux.conf.json)
\- Linux specific
- [src-tauri/tauri.windows.conf.json](mdc:src-tauri/tauri.windows.conf.json)
\- Windows specific
- [src-tauri/tauri.windows.cuda.conf.json](mdc:src-tauri/tauri.windows.cuda.conf.json)
\- Windows with CUDA
## Docker Support
- **Dockerfile**: [Dockerfile](mdc:Dockerfile) - Container deployment configuration
- **Documentation**: [docs/](mdc:docs/) - VitePress-based documentation site
## Build Commands
- **Frontend**: `yarn build` - Build production frontend
- **Tauri**: `yarn tauri build` - Build desktop application
- **Documentation**: `yarn docs:build` - Build documentation site
- **Type Check**: `yarn check` - TypeScript and Svelte validation
## Deployment Targets
- **Desktop**: Native Tauri applications for Windows, macOS, Linux
- **Docker**: Containerized deployment option
- **Documentation**: Static site deployment via VitePress
- **Assets**: Static asset distribution for web components
description:
globs:
alwaysApply: true
---

View File

@@ -0,0 +1,61 @@
# Database and Data Management
## Database Architecture
- **SQLite Database**: Primary data storage using `sqlx` with async runtime
- **Database Module**: [src-tauri/src/database/](mdc:src-tauri/src/database/)
\- Core database operations
- **Migration System**: [src-tauri/src/migration.rs](mdc:src-tauri/src/migration.rs)
\- Database schema management
## Data Models
- **Recording Data**: Stream metadata, recording sessions, and file information
- **Room Configuration**: Stream room settings and platform credentials
- **Task Management**: Recording task status and progress tracking
- **User Preferences**: Application settings and user configurations
## Frontend Data Layer
- **Database Interface**: [src/lib/db.ts](mdc:src/lib/db.ts)
\- Frontend database operations
- **Stores**: [src/lib/stores/](mdc:src/lib/stores/) - State management for data
- **Version Management**: [src/lib/stores/version.ts](mdc:src/lib/stores/version.ts)
\- Version tracking
## Data Operations
- **CRUD Operations**: Create, read, update, delete for all data entities
- **Query Optimization**: Efficient SQL queries with proper indexing
- **Transaction Support**: ACID compliance for critical operations
- **Data Validation**: Input validation and sanitization
## File Management
- **Cache Directory**: [src-tauri/cache/](mdc:src-tauri/cache/)
\- Temporary file storage
- **Upload Directory**: [src-tauri/cache/uploads/](mdc:src-tauri/cache/uploads/)
\- User upload storage
- **Bilibili Cache**: [src-tauri/cache/bilibili/](mdc:src-tauri/cache/bilibili/)
\- Platform-specific cache
## Data Persistence
- **SQLite Files**: [src-tauri/data/data_v2.db](mdc:src-tauri/data/data_v2.db)
\- Main database file
- **Write-Ahead Logging**: WAL mode for concurrent access and performance
- **Backup Strategy**: Database backup and recovery procedures
- **Migration Handling**: Automatic schema updates and data migration
## Development Guidelines
- Use prepared statements to prevent SQL injection
- Implement proper error handling for database operations
- Use transactions for multi-step operations
- Follow database naming conventions consistently
- Test database operations with sample data
description:
globs:
alwaysApply: true
---

View File

@@ -0,0 +1,47 @@
# Frontend Development Guidelines
## Svelte 3 Best Practices
- Use Svelte 3 syntax with `<script>` tags for component logic
- Prefer reactive statements with `$:` for derived state
- Use stores from [src/lib/stores/](mdc:src/lib/stores/) for global state management
- Import components from [src/lib/components/](mdc:src/lib/components/)
## TypeScript Configuration
- Follow the configuration in [tsconfig.json](mdc:tsconfig.json)
- Use strict type checking with `checkJs: true`
- Extends `@tsconfig/svelte` for Svelte-specific TypeScript settings
- Base URL is set to workspace root for clean imports
## Component Structure
- **Page components**: Located in [src/page/](mdc:src/page/) directory
- **Reusable components**: Located in [src/lib/components/](mdc:src/lib/components/)
directory
- **Layout components**: [src/App.svelte](mdc:src/App.svelte),
[src/AppClip.svelte](mdc:src/AppClip.svelte), [src/AppLive.svelte](mdc:src/AppLive.svelte)
## Styling
- Use Tailwind CSS classes for styling
- Configuration in [tailwind.config.cjs](mdc:tailwind.config.cjs)
- PostCSS configuration in [postcss.config.cjs](mdc:postcss.config.cjs)
- Global styles in [src/styles.css](mdc:src/styles.css)
## Entry Points
- **Main app**: [src/main.ts](mdc:src/main.ts) - Main application entry
- **Clip mode**: [src/main_clip.ts](mdc:src/main_clip.ts) - Clip editing interface
- **Live mode**: [src/main_live.ts](mdc:src/main_live.ts) - Live streaming interface
## Development Workflow
- Use `yarn dev` for frontend-only development
- Use `yarn tauri dev` for full Tauri development
- Use `yarn check` for TypeScript and Svelte type checking
description:
globs:
alwaysApply: true
---

View File

@@ -0,0 +1,53 @@
# BiliBili ShadowReplay Project Overview
This is a Tauri-based desktop application for caching live streams and performing
real-time editing and submission. It supports Bilibili and Douyin platforms.
## Project Structure
### Frontend (Svelte + TypeScript)
- **Main entry points**: [src/main.ts](mdc:src/main.ts),
[src/main_clip.ts](mdc:src/main_clip.ts), [src/main_live.ts](mdc:src/main_live.ts)
- **App components**: [src/App.svelte](mdc:src/App.svelte),
[src/AppClip.svelte](mdc:src/AppClip.svelte), [src/AppLive.svelte](mdc:src/AppLive.svelte)
- **Pages**: Located in [src/page/](mdc:src/page/) directory
- **Components**: Located in [src/lib/components/](mdc:src/lib/components/) directory
- **Stores**: Located in [src/lib/stores/](mdc:src/lib/stores/) directory
### Backend (Rust + Tauri)
- **Main entry**: [src-tauri/src/main.rs](mdc:src-tauri/src/main.rs)
- **Core modules**:
- [src-tauri/src/recorder/](mdc:src-tauri/src/recorder/) - Stream recording functionality
- [src-tauri/src/database/](mdc:src-tauri/src/database/) - Database operations
- [src-tauri/src/handlers/](mdc:src-tauri/src/handlers/) - Tauri command handlers
- **Custom crate**:
[src-tauri/crates/danmu_stream/](mdc:src-tauri/crates/danmu_stream/) -
Danmaku stream processing
### Configuration
- **Frontend config**: [tsconfig.json](mdc:tsconfig.json),
[vite.config.ts](mdc:vite.config.ts), [tailwind.config.cjs](mdc:tailwind.config.cjs)
- **Backend config**: [src-tauri/Cargo.toml](mdc:src-tauri/Cargo.toml), [src-tauri/tauri.conf.json](mdc:src-tauri/tauri.conf.json)
- **Example config**: [src-tauri/config.example.toml](mdc:src-tauri/config.example.toml)
## Key Technologies
- **Frontend**: Svelte 3, TypeScript, Tailwind CSS, Flowbite
- **Backend**: Rust, Tauri 2, SQLite, FFmpeg
- **AI Features**: LangChain, Whisper for transcription
- **Build Tools**: Vite, VitePress for documentation
## Development Commands
- `yarn dev` - Start development server
- `yarn tauri dev` - Start Tauri development
- `yarn build` - Build frontend
- `yarn docs:dev` - Start documentation server
description:
globs:
alwaysApply: true
---

View File

@@ -0,0 +1,56 @@
# Rust Backend Development Guidelines
## Project Structure
- **Main entry**: [src-tauri/src/main.rs](mdc:src-tauri/src/main.rs)
\- Application entry point
- **Core modules**:
- [src-tauri/src/recorder/](mdc:src-tauri/src/recorder/)
\- Stream recording and management
- [src-tauri/src/database/](mdc:src-tauri/src/database/)
\- SQLite database operations
- [src-tauri/src/handlers/](mdc:src-tauri/src/handlers/)
\- Tauri command handlers
- [src-tauri/src/subtitle_generator/](mdc:src-tauri/src/subtitle_generator/)
\- AI-powered subtitle generation
## Custom Crates
- **danmu_stream**: [src-tauri/crates/danmu_stream/](mdc:src-tauri/crates/danmu_stream/)
\- Danmaku stream processing library
## Dependencies
- **Tauri 2**: Core framework for desktop app functionality
- **FFmpeg**: Video/audio processing via `async-ffmpeg-sidecar`
- **Whisper**: AI transcription via `whisper-rs` (CUDA support available)
- **LangChain**: AI agent functionality
- **SQLite**: Database via `sqlx` with async runtime
## Configuration
- **Cargo.toml**: [src-tauri/Cargo.toml](mdc:src-tauri/Cargo.toml)
\- Dependencies and features
- **Tauri config**: [src-tauri/tauri.conf.json](mdc:src-tauri/tauri.conf.json)
\- App configuration
- **Example config**: [src-tauri/config.example.toml](mdc:src-tauri/config.example.toml)
\- User configuration template
## Features
- **default**: Includes GUI and core functionality
- **cuda**: Enables CUDA acceleration for Whisper transcription
- **headless**: Headless mode without GUI
- **custom-protocol**: Required for production builds
## Development Commands
- `yarn tauri dev` - Start Tauri development with hot reload
- `yarn tauri build` - Build production application
- `cargo check` - Check Rust code without building
- `cargo test` - Run Rust tests
description:
globs:
alwaysApply: true
---

View File

@@ -0,0 +1,60 @@
# Streaming and Recording System
## Core Recording Components
- **Recorder Manager**: [src-tauri/src/recorder_manager.rs](mdc:src-tauri/src/recorder_manager.rs)
\- Main recording orchestration
- **Recorder**: [src-tauri/src/recorder/](mdc:src-tauri/src/recorder/)
\- Individual stream recording logic
- **Danmaku Stream**: [src-tauri/crates/danmu_stream/](mdc:src-tauri/crates/danmu_stream/)
\- Custom crate for bullet comment processing
## Supported Platforms
- **Bilibili**: Main platform support with live stream caching
- **Douyin**: TikTok's Chinese platform support
- **Multi-stream**: Support for recording multiple streams simultaneously
## Recording Features
- **Live Caching**: Real-time stream recording and buffering
- **Time-based Clipping**: Extract specific time segments from recorded streams
- **Danmaku Capture**: Record bullet comments and chat messages
- **Quality Control**: Configurable recording quality and format options
## Frontend Interfaces
- **Live Mode**: [src/AppLive.svelte](mdc:src/AppLive.svelte)
\- Live streaming interface
- **Clip Mode**: [src/AppClip.svelte](mdc:src/AppClip.svelte)
\- Video editing and clipping
- **Room Management**: [src/page/Room.svelte](mdc:src/page/Room.svelte)
\- Stream room configuration
- **Task Management**: [src/page/Task.svelte](mdc:src/page/Task.svelte)
\- Recording task monitoring
## Technical Implementation
- **FFmpeg Integration**: Video/audio processing via `async-ffmpeg-sidecar`
- **M3U8 Support**: HLS stream processing with `m3u8-rs`
- **Async Processing**: Non-blocking I/O with `tokio` runtime
- **Database Storage**: SQLite for metadata and recording information
## Configuration
- **Recording Settings**: Configure in [src-tauri/config.example.toml](mdc:src-tauri/config.example.toml)
- **FFmpeg Path**: Set FFmpeg binary location for video processing
- **Storage Paths**: Configure cache and output directories
- **Quality Settings**: Adjust recording bitrate and format options
## Development Workflow
- Use [src-tauri/src/recorder/](mdc:src-tauri/src/recorder/) for core recording logic
- Test with [src-tauri/tests/](mdc:src-tauri/tests/) directory
- Monitor recording progress via progress manager
- Handle errors gracefully with custom error types
description:
globs:
alwaysApply: true
---

36
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,36 @@
ARG VARIANT=bookworm-slim
FROM debian:${VARIANT}
ENV DEBIAN_FRONTEND=noninteractive
# Arguments
ARG CONTAINER_USER=vscode
ARG CONTAINER_GROUP=vscode
# Install dependencies
RUN apt-get update \
&& apt-get install -y \
build-essential \
clang \
cmake \
curl \
file \
git \
libayatana-appindicator3-dev \
librsvg2-dev \
libssl-dev \
libwebkit2gtk-4.1-dev \
libxdo-dev \
pkg-config \
wget \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
# Set users
RUN adduser --disabled-password --gecos "" ${CONTAINER_USER}
USER ${CONTAINER_USER}
WORKDIR /home/${CONTAINER_USER}
# Install rustup
RUN curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
ENV PATH=${PATH}:/home/${CONTAINER_USER}/.cargo/bin
CMD [ "/bin/bash" ]

View File

@@ -0,0 +1,31 @@
{
"name": "vscode",
"build": {
"dockerfile": "Dockerfile",
"args": {
"CONTAINER_USER": "vscode",
"CONTAINER_GROUP": "vscode"
}
},
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "latest"
}
},
"customizations": {
"vscode": {
"settings": {
"lldb.executable": "/usr/bin/lldb",
"files.watcherExclude": {
"**/target/**": true
}
},
"extensions": [
"vadimcn.vscode-lldb",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml"
]
}
},
"remoteUser": "vscode"
}

39
.dockerignore Normal file
View File

@@ -0,0 +1,39 @@
# Dependencies
node_modules
.pnpm-store
.npm
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
# Build outputs
dist
build
target
*.log
# Version control
.git
.gitignore
# IDE and editor files
.idea
.vscode
*.swp
*.swo
.DS_Store
# Environment files
.env
.env.local
.env.*.local
# Debug files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Tauri specific
src-tauri/target
src-tauri/dist

44
.github/CONTRIBUTING.md vendored Normal file
View File

@@ -0,0 +1,44 @@
# BiliBili-ShadowReplay contribute guide
## Project Setup
### MacOS
项目无需额外配置,直接 `yarn tauri dev` 即可编译运行。
### Linux
也无需额外配置。
### Windows
Windows 下分为两个版本,分别是 `cpu``cuda` 版本。区别在于 Whisper 是否使用 GPU 加速。
`cpu` 版本使用 CPU 进行推理,`cuda` 版本使用 GPU 进行推理。
默认运行为 `cpu` 版本,使用 `yarn tauri dev --features cuda` 命令运行 `cuda` 版本。
在运行前,须要安装以下依赖:
1. 安装 LLVM 且配置相关环境变量,详情见 [LLVM Windows Setup](https://llvm.org/docs/GettingStarted.html#building-llvm-on-windows)
2. 安装 CUDA Toolkit详情见
[CUDA Windows Setup](https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html)
要注意,安装时请勾选 **VisualStudio integration**
### 常见问题
#### 1. error C3688
构建前配置参数 `/utf-8`
```powershell
$env:CMAKE_CXX_FLAGS="/utf-8"
```
#### 2. error: 'exists' is unavailable: introduced in macOS 10.15
配置环境变量 `CMAKE_OSX_DEPLOYMENT_TARGET`,不低于 `13.3`
### 3. CUDA arch 错误
配置环境变量 `CMAKE_CUDA_ARCHITECTURES`,可以参考 Workflows 中的配置。

47
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@@ -0,0 +1,47 @@
name: Bug Report
description: 提交 BUG 报告.
title: "[bug] "
labels: ["bug"]
assignees:
- Xinrea
body:
- type: checkboxes
attributes:
label: 提交须知
description: 请确认以下内容
options:
- label: 我是在最新版本上发现的此问题
required: true
- label: 我已阅读 [常见问题](https://bsr.xinrea.cn/usage/faq.html) 的说明
required: true
- type: dropdown
id: app_type
attributes:
label: 以哪种方式使用的该软件?
multiple: false
options:
- Docker 镜像
- 桌面应用
- type: dropdown
id: os
attributes:
label: 运行环境
multiple: false
options:
- Linux
- Windows
- MacOS
- Docker
- type: textarea
attributes:
label: BUG 描述
description: 请尽可能详细描述 BUG 的现象以及复现的方法
validations:
required: true
- type: textarea
id: logs
attributes:
label: 日志
description: 请粘贴日志内容或是上传日志文件(在主窗口的设置页面,提供了一键打开日志目录所在位置的按钮;当你打开日志目录所在位置后,进入 logs 目录,找到后缀名为 log 的文件)
validations:
required: true

View File

@@ -0,0 +1,13 @@
name: Feature Request
description: 提交新功能的需求
title: "[feature] "
labels: ["feature"]
assignees:
- Xinrea
body:
- type: textarea
attributes:
label: 需求描述
description: 请尽可能详细描述你想要的新功能
validations:
required: true

View File

@@ -1,57 +1,110 @@
name: Release
on:
workflow_dispatch:
push:
tags:
- 'v*'
workflow_dispatch:
- "v*"
jobs:
release:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
include:
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-22.04"
args: ""
- platform: "windows-latest"
args: "--features cuda"
features: "cuda"
- platform: "windows-latest"
args: ""
features: "cpu"
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
- name: Set build type
id: build_type
run: |
if [[ "${{ github.ref }}" == *"rc"* ]]; then
echo "debug=true" >> $GITHUB_OUTPUT
else
echo "debug=false" >> $GITHUB_OUTPUT
fi
shell: bash
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
- name: setup node
uses: actions/setup-node@v4
with:
workspaces: './src-tauri -> target'
node-version: lts/*
cache: "yarn" # Set this to npm, yarn or pnpm.
- name: Sync node version and setup cache
uses: actions/setup-node@v3
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
with:
node-version: 'lts/*'
cache: 'yarn' # Set this to npm, yarn or pnpm.
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Install frontend dependencies
- name: Install CUDA toolkit (Windows CUDA only)
if: matrix.platform == 'windows-latest' && matrix.features == 'cuda'
uses: Jimver/cuda-toolkit@v0.2.24
- name: Setup ffmpeg
if: matrix.platform == 'windows-latest'
working-directory: ./
shell: pwsh
# running script ffmpeg_setup.ps1 to install ffmpeg on windows.
# This script is located in the root of the repository.
run: ./ffmpeg_setup.ps1
- name: install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: yarn install # Change this to npm, yarn or pnpm.
run: yarn install # change this to npm or pnpm depending on which one you use.
- name: Build the app
uses: tauri-apps/tauri-action@v0
- name: Copy CUDA DLLs (Windows CUDA only)
if: matrix.platform == 'windows-latest' && matrix.features == 'cuda'
shell: pwsh
run: |
$cudaPath = "$env:CUDA_PATH\bin"
$targetPath = "src-tauri"
New-Item -ItemType Directory -Force -Path $targetPath
Copy-Item "$cudaPath\cudart64*.dll" -Destination $targetPath
Copy-Item "$cudaPath\cublas64*.dll" -Destination $targetPath
Copy-Item "$cudaPath\cublasLt64*.dll" -Destination $targetPath
- name: Get previous tag
id: get_previous_tag
run: |
# Get the previous tag (excluding the current one being pushed)
PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || echo "")
if [ -z "$PREVIOUS_TAG" ]; then
# If no previous tag found, use the first commit
PREVIOUS_TAG=$(git rev-list --max-parents=0 HEAD | head -1)
fi
echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
echo "current_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
shell: bash
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CMAKE_OSX_DEPLOYMENT_TARGET: "13.3"
CMAKE_CUDA_ARCHITECTURES: "75"
WHISPER_BACKEND: ${{ matrix.features }}
with:
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
releaseName: 'Bilibili ShadowReplay v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
releaseBody: 'See the assets to download and install this version.'
tagName: v__VERSION__
releaseName: "BiliBili ShadowReplay v__VERSION__"
releaseBody: "> [!NOTE]\n> 如果你是第一次下载安装,请参考 [安装准备](https://bsr.xinrea.cn/getting-started/installation/desktop.html) 选择合适的版本。\n> Changelog: https://github.com/Xinrea/bili-shadowreplay/compare/${{ steps.get_previous_tag.outputs.previous_tag }}...${{ steps.get_previous_tag.outputs.current_tag }}"
releaseDraft: true
prerelease: false
args: ${{ matrix.args }} ${{ matrix.platform == 'windows-latest' && matrix.features == 'cuda' && '--config src-tauri/tauri.windows.cuda.conf.json' || '' }}

51
.github/workflows/package.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
name: Docker Build and Push
on:
workflow_dispatch:
push:
tags:
- "v*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha,format=long
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

66
.github/workflows/pages.yml vendored Normal file
View File

@@ -0,0 +1,66 @@
name: Deploy VitePress site to Pages
on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [main]
paths:
- docs/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
# - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm
# with:
# version: 9 # Not needed if you've set "packageManager" in package.json
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: yarn install # or pnpm install / yarn install / bun install
- name: Build with VitePress
run: yarn run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

15
.gitignore vendored
View File

@@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
/target/
# Editor directories and files
.vscode/*
@@ -22,3 +23,17 @@ dist-ssr
*.njsproj
*.sln
*.sw?
*.zip
src-tauri/*.exe
# test files
src-tauri/tests/audio/*.srt
.env
docs/.vitepress/cache
docs/.vitepress/dist
*.debug.js
*.debug.map

8
.helix/languages.toml Normal file
View File

@@ -0,0 +1,8 @@
[[language]]
name = "rust"
auto-format = true
rulers = []
[[language]]
name = "svelte"
auto-format = true

2
.ignore Normal file
View File

@@ -0,0 +1,2 @@
*.png
*.svg

5
.markdownlint.json Normal file
View File

@@ -0,0 +1,5 @@
{
"MD033": {
"allowed_elements": ["nobr", "sup"]
}
}

46
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,46 @@
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: '(\.json$|public/)'
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --manifest-path src-tauri/Cargo.toml --
language: system
types: [rust]
pass_filenames: false # This makes it a lot faster
- id: cargo-clippy
name: cargo clippy
language: system
types: [rust]
pass_filenames: false
entry: cargo clippy --manifest-path src-tauri/Cargo.toml
- id: cargo-clippy-headless
name: cargo clippy headless
language: system
types: [rust]
pass_filenames: false
entry: cargo clippy --manifest-path src-tauri/Cargo.toml --no-default-features --features headless
- id: cargo-test
name: cargo test
language: system
types: [rust]
pass_filenames: false
entry: cargo test --manifest-path src-tauri/Cargo.toml
- id: cargo-test-headless
name: cargo test headless
language: system
types: [rust]
pass_filenames: false
entry: cargo test --manifest-path src-tauri/Cargo.toml --no-default-features --features headless

View File

@@ -1,7 +0,0 @@
{
"recommendations": [
"svelte.svelte-vscode",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
]
}

85
Dockerfile Normal file
View File

@@ -0,0 +1,85 @@
# Build frontend
FROM node:20-bullseye AS frontend-builder
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Copy package files
COPY package.json yarn.lock ./
# Install dependencies with specific flags
RUN yarn install --frozen-lockfile
# Copy source files
COPY . .
# Build frontend
RUN yarn build
# Build Rust backend
FROM rust:1.90-slim AS rust-builder
WORKDIR /app
# Install required system dependencies
RUN apt-get update && apt-get install -y \
cmake \
pkg-config \
libssl-dev \
glib-2.0-dev \
libclang-dev \
g++ \
wget \
xz-utils \
&& rm -rf /var/lib/apt/lists/*
# Copy Rust project files
COPY src-tauri/Cargo.toml src-tauri/Cargo.lock ./src-tauri/
COPY src-tauri/src ./src-tauri/src
COPY src-tauri/crates ./src-tauri/crates
# Build Rust backend
WORKDIR /app/src-tauri
RUN rustup component add rustfmt
RUN cargo build --no-default-features --features headless --release
# Final stage
FROM debian:trixie-slim AS final
WORKDIR /app
# Install runtime dependencies, SSL certificates and Chinese fonts
RUN apt-get update && apt-get install -y \
libssl3 \
ca-certificates \
fonts-wqy-microhei \
netbase \
nscd \
ffmpeg \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN touch /etc/netgroup
RUN mkdir -p /var/run/nscd && chmod 755 /var/run/nscd
# Add /app to PATH
ENV PATH="/app:${PATH}"
# Copy built frontend
COPY --from=frontend-builder /app/dist ./dist
# Copy built Rust binary
COPY --from=rust-builder /app/src-tauri/target/release/bili-shadowreplay .
# Expose port
EXPOSE 3000
# Run the application
CMD ["sh", "-c", "nscd && ./bili-shadowreplay"]

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 Xinrea
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,26 +1,32 @@
# Bilibili ShadowReplay
# BiliBili ShadowReplay
![主界面](doc/main.png)
![icon](docs/public/images/header.png)
> 点击关闭后程序仍会在后台运行,请找到托盘区的图标右键退出程序
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/xinrea/bili-shadowreplay/main.yml?label=Application%20Build)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Xinrea/bili-shadowreplay/package.yml?label=Docker%20Build)
![GitHub Release](https://img.shields.io/github/v/release/xinrea/bili-shadowreplay)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/xinrea/bili-shadowreplay/total)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/Xinrea/bili-shadowreplay)
## 介绍
BiliBili ShadowReplay 是一个缓存直播并进行实时编辑投稿的工具。通过划定时间区间,并编辑简单的必需信息,即可完成直播切片以及投稿,将整个流程压缩到分钟级。同时,也支持对缓存的历史直播进行回放,以及相同的切片编辑投稿处理流程。
Bilibili ShadowReplay 是一个用于缓存B站直播的工具可以将直播的视频缓存到本地便于及时保存回放方便后期剪辑工作
目前仅支持 B 站和抖音平台的直播
![clip](doc/clip.png)
[![Star History Chart](https://api.star-history.com/svg?repos=Xinrea/bili-shadowreplay&type=Date)](https://www.star-history.com/#Xinrea/bili-shadowreplay&Date)
除了在界面上手动操作外,还可以通过弹幕触发切片。
## 安装和使用
> 只有管理员UID设置中的用户才能触发切片
![rooms](docs/public/images/summary.png)
![弹幕](doc/danmu_command.png)
前往网站查看说明:[BiliBili ShadowReplay](https://bsr.xinrea.cn/)
## 设置
## 参与开发
![设置](doc/setting.png)
可以通过 [DeepWiki](https://deepwiki.com/Xinrea/bili-shadowreplay) 了解本项目。
- `缓存时长`:缓存的视频时长,单位为秒
- `缓存目录`:缓存的视频存放目录
- `切片目录`: 切片的视频存放目录
- `管理员UID`B站的UID用于判断是否有权限在直播间通过弹幕触发切片可设置多个使用英文逗号分隔。
贡献指南:[Contributing](.github/CONTRIBUTING.md)
## 赞助
<!-- markdownlint-disable MD033 -->
<img src="docs/public/images/donate.png" alt="donate" width="300">

2
_typos.toml Normal file
View File

@@ -0,0 +1,2 @@
[default.extend-identifiers]
pull_datas = "pull_datas"

42
build.ps1 Normal file
View File

@@ -0,0 +1,42 @@
# run yarn tauri build
yarn tauri build
yarn tauri build --debug
# rename the builds, "bili-shadowreplay" to "bili-shadowreplay-cpu"
Get-ChildItem -Path ./src-tauri/target/release/bundle/msi/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
Get-ChildItem -Path ./src-tauri/target/release/bundle/nsis/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
# rename the debug builds, "bili-shadowreplay" to "bili-shadowreplay-cpu"
Get-ChildItem -Path ./src-tauri/target/debug/bundle/msi/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
Get-ChildItem -Path ./src-tauri/target/debug/bundle/nsis/ | ForEach-Object {
$newName = $_.Name -replace 'bili-shadowreplay', 'bili-shadowreplay-cpu'
Rename-Item -Path $_.FullName -NewName $newName
}
# move the build to the correct location
Move-Item ./src-tauri/target/release/bundle/msi/* ./src-tauri/target/
Move-Item ./src-tauri/target/release/bundle/nsis/* ./src-tauri/target/
# rename debug builds to add "-debug" suffix
Get-ChildItem -Path ./src-tauri/target/debug/bundle/msi/ | ForEach-Object {
$newName = $_.Name -replace '\.msi$', '-debug.msi'
Rename-Item -Path $_.FullName -NewName $newName
}
Get-ChildItem -Path ./src-tauri/target/debug/bundle/nsis/ | ForEach-Object {
$newName = $_.Name -replace '\.exe$', '-debug.exe'
Rename-Item -Path $_.FullName -NewName $newName
}
# move the debug builds to the correct location
Move-Item ./src-tauri/target/debug/bundle/msi/* ./src-tauri/target/
Move-Item ./src-tauri/target/debug/bundle/nsis/* ./src-tauri/target/

78
cliff.toml Normal file
View File

@@ -0,0 +1,78 @@
# git-cliff ~ default configuration file
# https://git-cliff.org/docs/configuration
#
# Lines starting with "#" are comments.
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.
[changelog]
# template for the changelog header
# header = """"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} by @{{ commit.author.name }} - {{ commit.id }}\
{% endfor %}
{% endfor %}\n
"""
# template for the changelog footer
# footer = """"""
# remove the leading and trailing s
trim = true
# postprocessors
postprocessors = [
# { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
]
# render body even when there are no releases to process
# render_always = true
# output file path
# output = "test.md"
[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# Replace issue numbers
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

78
docs/.vitepress/config.ts Normal file
View File

@@ -0,0 +1,78 @@
import { defineConfig } from "vitepress";
import { withMermaid } from "vitepress-plugin-mermaid";
// https://vitepress.dev/reference/site-config
export default withMermaid({
title: "BiliBili ShadowReplay",
description: "直播录制/实时回放/剪辑/投稿工具",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
{
text: "Releases",
link: "https://github.com/Xinrea/bili-shadowreplay/releases",
},
],
sidebar: [
{
text: "开始使用",
items: [
{
text: "安装准备",
items: [
{
text: "桌面端安装",
link: "/getting-started/installation/desktop",
},
{
text: "Docker 安装",
link: "/getting-started/installation/docker",
},
],
},
{
text: "配置使用",
items: [
{ text: "账号配置", link: "/getting-started/config/account" },
{ text: "FFmpeg 配置", link: "/getting-started/config/ffmpeg" },
{ text: "Whisper 配置", link: "/getting-started/config/whisper" },
{ text: "LLM 配置", link: "/getting-started/config/llm" },
],
},
],
},
{
text: "说明文档",
items: [
{
text: "功能说明",
items: [
{ text: "工作流程", link: "/usage/features/workflow" },
{ text: "直播间管理", link: "/usage/features/room" },
{ text: "切片功能", link: "/usage/features/clip" },
{ text: "字幕功能", link: "/usage/features/subtitle" },
{ text: "弹幕功能", link: "/usage/features/danmaku" },
{ text: "Webhook", link: "/usage/features/webhook" },
],
},
{ text: "常见问题", link: "/usage/faq" },
],
},
{
text: "开发文档",
items: [
{
text: "DeepWiki",
link: "https://deepwiki.com/Xinrea/bili-shadowreplay",
},
],
},
],
socialLinks: [
{ icon: "github", link: "https://github.com/Xinrea/bili-shadowreplay" },
],
},
});

View File

@@ -0,0 +1,12 @@
# 账号配置
要添加直播间,至少需要配置一个同平台的账号。在账号页面,你可以通过添加账号按钮添加一个账号。
- B 站账号:目前支持扫码登录和 Cookie 手动配置两种方式,推荐使用扫码登录
- 抖音账号:目前仅支持 Cookie 手动配置登陆
## 抖音账号配置
首先确保已经登录抖音,然后打开[个人主页](https://www.douyin.com/user/self),右键单击网页,在菜单中选择 `检查Inspect`,打开开发者工具,切换到 `网络Network` 选项卡,然后刷新网页,此时能在列表中找到 `self` 请求(一般是列表中第一个),单击该请求,查看`请求标头`,在 `请求标头` 中找到 `Cookie`,复制该字段的值,粘贴到配置页面的 `Cookie` 输入框中,要注意复制完全。
![DouyinCookie](/images/douyin_cookie.png)

View File

@@ -0,0 +1,47 @@
# FFmpeg 配置
FFmpeg 是一个开源的音视频处理工具,支持多种格式的音视频编解码、转码、剪辑、合并等操作。
在本项目中FFmpeg 用于切片生成以及字幕和弹幕的硬编码处理,因此需要确保安装了 FFmpeg。
## MacOS
在 MacOS 上安装 FFmpeg 非常简单,可以使用 Homebrew 来安装:
```bash
brew install ffmpeg
```
如果没有安装 Homebrew可以参考 [Homebrew 官网](https://brew.sh/) 进行安装。
## Linux
在 Linux 上安装 FFmpeg 可以使用系统自带的包管理器进行安装,例如:
- Ubuntu/Debian 系统:
```bash
sudo apt install ffmpeg
```
- Fedora 系统:
```bash
sudo dnf install ffmpeg
```
- Arch Linux 系统:
```bash
sudo pacman -S ffmpeg
```
- CentOS 系统:
```bash
sudo yum install epel-release
sudo yum install ffmpeg
```
## Windows
Windows 版本安装后FFmpeg 已经放置在了程序目录下,因此不需要额外安装。

View File

@@ -0,0 +1,9 @@
# LLM 配置
![LLM](/images/model_config.png)
助手页面的 AI Agent 助手功能需要配置大模型,目前仅支持配置 OpenAI 协议兼容的大模型服务。
本软件并不提供大模型服务,请自行选择服务提供商。要注意,使用 AI Agent 助手需要消耗比普通对话更多的 Token请确保有足够的 Token 余额。
此外AI Agent 的功能需要大模型支持 Function Calling 功能,否则无法正常调用工具。

View File

@@ -0,0 +1,46 @@
# Whisper 配置
要使用 AI 字幕识别功能,需要在设置页面配置 Whisper。目前可以选择使用本地运行 Whisper 模型,或是使用在线的 Whisper 服务(通常需要付
费获取 API Key
> [!NOTE]
> 其实有许多更好的中文字幕识别解决方案,但是这类服务通常需要将文件上传到对象存储后异步处理,考虑到实现的复杂度,选择了使用本地运行 Whisper 模型或是使
> 用在线的 Whisper 服务,在请求返回时能够直接获取字幕生成结果。
## 本地运行 Whisper 模型
![WhisperLocal](/images/whisper_local.png)
如果需要使用本地运行 Whisper 模型进行字幕生成,需要下载 Whisper.cpp 模型,并在设置中指定模型路径。模型文件可以从网络上下载,例如:
- [Whisper.cpp国内镜像内容较旧](https://www.modelscope.cn/models/cjc1887415157/whisper.cpp/files)
- [Whisper.cpp](https://huggingface.co/ggerganov/whisper.cpp/tree/main)
可以跟据自己的需求选择不同的模型,要注意带有 `en` 的模型是英文模型,其他模型为多语言模型。
模型文件的大小通常意味着其在运行时资源占用的大小因此请根据电脑配置选择合适的模型。此外GPU 版本与 CPU 版本在字幕生成速度上存在**巨大差异**,因此
推荐使用 GPU 版本进行本地处理(目前仅支持 Nvidia GPU
## 使用在线 Whisper 服务
![WhisperOnline](/images/whisper_online.png)
如果需要使用在线的 Whisper 服务进行字幕生成,可以在设置中切换为在线 Whisper并配置好 API Key。提供 Whisper 服务的平台并非只有
OpenAI 一家,许多云服务平台也提供 Whisper 服务。
## 字幕识别质量的调优
目前在设置中支持设置 Whisper 语言和 Whisper 提示词,这些设置对于本地和在线的 Whisper 服务都有效。
通常情况下,`auto` 语言选项能够自动识别语音语言,并生成相应语言的字幕。如果需要生成其他语言的字幕,或是生成的字幕语言不匹配,可以手动配置指定的语言。
根据 OpenAI 官方文档中对于 `language` 参数的描述,目前支持的语言包括
Afrikaans, Arabic, Armenian, Azerbaijani, Belarusian, Bosnian, Bulgarian,
Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish,
French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Icelandic,
Indonesian, Italian, Japanese, Kannada, Kazakh, Korean, Latvian, Lithuanian,
Macedonian, Malay, Marathi, Maori, Nepali, Norwegian, Persian, Polish,
Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili,
Swedish, Tagalog, Tamil, Thai, Turkish, Ukrainian, Urdu, Vietnamese, and Welsh.
提示词可以优化生成的字幕的风格也会一定程度上影响质量要注意Whisper 无法理解复杂的提示词,你可以在提示词中使用一些简单的描述,让其在选择词汇时使用偏向于提示词所描述的领域相关的词汇,以避免出现毫不相干领域的词汇;或是让它在标点符号的使用上参照提示词的风格。

View File

@@ -0,0 +1,24 @@
# 桌面端安装
桌面端目前提供了 Windows、Linux 和 MacOS 三个平台的安装包。
由于程序会对账号等敏感信息进行管理,请从信任的来源进行下载;所有版本均可在 [GitHub Releases](https://github.com/Xinrea/bili-shadowreplay/releases) 页面下载安装。
对于 MacOS 用户,请先手动安装 FFmpeg详情见 [FFmpeg 配置](../config/ffmpeg.md)。
## Windows
由于程序内置 Whisper 字幕识别模型支持Windows 版本分为两种:
- **普通版本**:内置了 Whisper GPU 加速,字幕识别较快,体积较大,只支持 Nvidia 显卡
- **CPU 版本** 使用 CPU 进行字幕识别推理,速度较慢
请根据自己的显卡情况选择合适的版本进行下载。
## Linux
Linux 版本目前仅支持使用 CPU 推理,且测试较少,可能存在一些问题,遇到问题请及时反馈。
## MacOS
MacOS 版本内置 Metal GPU 加速;安装后首次运行,会提示无法打开从网络下载的软件,请在设置-隐私与安全性下,选择仍然打开以允许程序运行。

View File

@@ -0,0 +1,41 @@
# Docker 部署
BiliBili ShadowReplay 提供了服务端部署的能力,提供 Web 控制界面,可以用于在服务器等无图形界面环境下部署使用。
## 镜像获取
```bash
# 拉取最新版本
docker pull ghcr.io/xinrea/bili-shadowreplay:latest
# 拉取指定版本
docker pull ghcr.io/xinrea/bili-shadowreplay:2.5.0
# 速度太慢?从镜像源拉取
docker pull ghcr.nju.edu.cn/xinrea/bili-shadowreplay:latest
```
## 镜像使用
使用方法:
```bash
sudo docker run -it -d\
-p 3000:3000 \
-v $DATA_DIR:/app/data \
-v $CACHE_DIR:/app/cache \
-v $OUTPUT_DIR:/app/output \
-v $WHISPER_MODEL:/app/whisper_model.bin \
--name bili-shadowreplay \
ghcr.io/xinrea/bili-shadowreplay:latest
```
其中:
- `$DATA_DIR`:为数据目录,对应于桌面版的数据目录,
Windows 下位于 `C:\Users\{用户名}\AppData\Roaming\cn.vjoi.bilishadowreplay`;
MacOS 下位于 `/Users/{user}/Library/Application Support/cn.vjoi.bilishadowreplay`
- `$CACHE_DIR`:为缓存目录,对应于桌面版的缓存目录;
- `$OUTPUT_DIR`:为输出目录,对应于桌面版的输出目录;
- `$WHISPER_MODEL`:为 Whisper 模型文件路径,对应于桌面版的 Whisper 模型文件路径。

70
docs/index.md Normal file
View File

@@ -0,0 +1,70 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
hero:
name: "BiliBili ShadowReplay"
tagline: "直播录制/实时回放/剪辑/投稿工具"
image:
src: /images/icon.png
alt: BiliBili ShadowReplay
actions:
- theme: brand
text: 开始使用
link: /getting-started/installation/desktop
- theme: alt
text: 说明文档
link: /usage/features/workflow
features:
- icon: 📹
title: 直播录制
details: 缓存直播流,直播结束自动生成整场录播
- icon: 📺
title: 实时回放
details: 实时回放当前直播,不错过任何内容
- icon: ✂️
title: 剪辑投稿
details: 剪辑切片,封面编辑,一键投稿
- icon: 📝
title: 字幕生成
details: 支持 Wisper 模型生成字幕,编辑与压制
- icon: 📄
title: 弹幕支持
details: 直播间弹幕压制到切片,并支持直播弹幕发送和导出
- icon: 🌐
title: 多直播平台支持
details: 目前支持 B 站和抖音直播
- icon: 🔍
title: 云端部署
details: 支持 Docker 部署,提供 Web 控制界面
- icon: 🤖
title: AI Agent 支持
details: 支持 AI 助手管理录播,分析直播内容,生成切片
---
## 总览
![rooms](/images/summary.png)
## 直播间管理
![clip](/images/rooms.png)
![archives](/images/archives.png)
## 账号管理
![accounts](/images/accounts.png)
## 预览窗口
![livewindow](/images/livewindow.png)
## 封面编辑
![cover](/images/cover_edit.png)
## 设置
![settings](/images/settings.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
docs/public/images/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Binary file not shown.

31
docs/usage/faq.md Normal file
View File

@@ -0,0 +1,31 @@
# 常见问题
## 一、在哪里反馈问题?
你可以前往 [Github Issues](https://github.com/Xinrea/bili-shadowreplay/issues/new?template=bug_report.md) 提交问题,或是加入[反馈交流群](https://qm.qq.com/q/v4lrE6gyum)。
1. 在提交问题前,请先阅读其它常见问题,确保你的问题已有解答;
2. 其次,请确保你的程序已更新到最新版本;
3. 最后,你应准备好提供你的程序日志文件,以便更好地定位问题。
## 二、在哪里查看日志?
在主窗口的设置页面,提供了一键打开日志目录所在位置的按钮。当你打开日志目录所在位置后,进入 `logs` 目录,找到后缀名为 `log` 的文件,这便是你需要提供给开发者的日志文件。
## 三、无法预览直播或是生成切片
如果你是 macOS 或 Linux 用户,请确保你已安装了 `ffmpeg``ffprobe` 工具;如果不知道如何安装,请参考 [FFmpeg 配置](/getting-started/config/ffmpeg)。
如果你是 Windows 用户,程序目录下应当自带了 `ffmpeg``ffprobe` 工具,如果无法预览直播或是生成切片,请向开发者反馈。
## 四、添加 B 站直播间出现 -352 错误
`-352` 错误是由 B 站风控机制导致的,如果你添加了大量的 B 站直播间进行录制,可以在设置页面调整直播间状态的检查间隔,尽量避免风控;如果你在直播间数量较少的情况下出现该错误,请向开发者反馈。
## 五、录播为什么都是碎片文件?
缓存目录下的录播文件并非用于直接播放或是投稿,而是用于直播流的预览与实时回放。如果你需要录播文件用于投稿,请打开对应录播的预览界面,使用快捷键创建选区,生成所需范围的切片,切片文件为常规的 mp4 文件,位于你所设置的切片目录下。
如果你将 BSR 作为单纯的录播软件使用,在设置中可以开启`整场录播生成`这样在直播结束后BSR 会自动生成整场录播的切片。
![整场录播](/images/whole_clip.png)

View File

@@ -0,0 +1 @@
# 切片

View File

@@ -0,0 +1 @@
# 弹幕

View File

@@ -0,0 +1,40 @@
# 直播间
> [!WARNING]
> 在添加管理直播间前,请确保账号列表中有对应平台的可用账号。
## 添加直播间
### 手动添加直播间
你可以在 BSR 直播间页面,点击按钮手动添加直播间。你需要选择平台,并输入直播间号。
直播间号通常是直播间网页地址尾部的遗传数字,例如 `https://live.bilibili.com/123456` 中的 `123456`,或是 `https://live.douyin.com/123456` 中的 `123456`
抖音直播间比较特殊,当未开播时,你无法找到直播间的入口,因此你需要当直播间开播时找到直播间网页地址,并记录其直播间号。
抖音直播间需要输入主播的 sec_uid你可以在主播主页的 URL 中找到,例如 `https://www.douyin.com/user/MS4wLjABAAAA` 中的 `MS4wLjABAAAA`
### 使用 DeepLinking 快速添加直播间
<!-- MD033 -->
<video src="/videos/deeplinking.mp4" loop autoplay muted style="border-radius: 10px;"></video>
在浏览器中观看直播时,替换地址栏中直播间地址中的 `https://``bsr://` 即可快速唤起 BSR 添加直播间。
## 启用/禁用直播间
你可以点击直播间卡片右上角的菜单按钮,选择启用/禁用直播间。
- 启用后,当直播间开播时,会自动开始录制
- 禁用后,当直播间开播时,不会自动开始录制
## 移除直播间
> [!CAUTION]
> 移除直播间后,该直播间相关的所有录播都会被删除,请谨慎操作。
你可以点击直播间卡片右上角的菜单按钮,选择移除直播间。
<video src="/videos/room_remove.mp4" loop autoplay muted style="border-radius: 10px;"></video>

View File

@@ -0,0 +1 @@
# 字幕

View File

@@ -0,0 +1,245 @@
# Webhook
> [!NOTE]
> 你可以使用 <https://webhook.site> 来测试 Webhook 功能。
## 设置 Webhook
打开 BSR 设置页面,在基础设置中设置 Webhook 地址。
## Webhook Events
### 直播间相关
#### 添加直播间
```json
{
"id": "a96a5e9f-9857-4c13-b889-91da2ace208a",
"event": "recorder.added",
"payload": {
"room_id": "26966466",
"created_at": "2025-09-07T03:33:14.258796+00:00",
"platform": "bilibili",
"auto_start": true,
"extra": ""
},
"timestamp": 1757215994
}
```
#### 移除直播间
```json
{
"id": "e33623d4-e040-4390-88f5-d351ceeeace7",
"event": "recorder.removed",
"payload": {
"room_id": "27183290",
"created_at": "2025-08-30T10:54:18.569198+00:00",
"platform": "bilibili",
"auto_start": true,
"extra": ""
},
"timestamp": 1757217015
}
```
### 直播相关
> [!NOTE]
> 直播开始和结束,不意味着录制的开始和结束。
#### 直播开始
```json
{
"id": "f12f3424-f7d8-4b2f-a8b7-55477411482e",
"event": "live.started",
"payload": {
"room_id": "843610",
"room_info": {
"room_id": "843610",
"room_title": "登顶!",
"room_cover": "https://i0.hdslb.com/bfs/live/new_room_cover/73aea43f4b4624c314d62fea4b424822fb506dfb.jpg"
},
"user_info": {
"user_id": "475210",
"user_name": "Xinrea",
"user_avatar": "https://i1.hdslb.com/bfs/face/91beb3bf444b295fe12bae1f3dc6d9fc4fe4c224.jpg"
},
"total_length": 0,
"current_live_id": "",
"live_status": false,
"is_recording": false,
"auto_start": true,
"platform": "bilibili"
},
"timestamp": 1757217190
}
```
#### 直播结束
```json
{
"id": "e8b0756a-02f9-4655-b5ae-a170bf9547bd",
"event": "live.ended",
"payload": {
"room_id": "843610",
"room_info": {
"room_id": "843610",
"room_title": "登顶!",
"room_cover": "https://i0.hdslb.com/bfs/live/new_room_cover/73aea43f4b4624c314d62fea4b424822fb506dfb.jpg"
},
"user_info": {
"user_id": "475210",
"user_name": "Xinrea",
"user_avatar": "https://i1.hdslb.com/bfs/face/91beb3bf444b295fe12bae1f3dc6d9fc4fe4c224.jpg"
},
"total_length": 0,
"current_live_id": "",
"live_status": true,
"is_recording": false,
"auto_start": true,
"platform": "bilibili"
},
"timestamp": 1757217365
}
```
### 录播相关
#### 开始录制
```json
{
"id": "5ec1ea10-2b31-48fd-8deb-f2d7d2ea5985",
"event": "record.started",
"payload": {
"room_id": "26966466",
"room_info": {
"room_id": "26966466",
"room_title": "早安獭獭栞下播前抽fufu",
"room_cover": "https://i0.hdslb.com/bfs/live/user_cover/b810c36855168034557e905e5916b1dba1761fa4.jpg"
},
"user_info": {
"user_id": "1609526545",
"user_name": "栞栞Shiori",
"user_avatar": "https://i1.hdslb.com/bfs/face/47e8dbabb895de44ec6cace085d4dc1d40307277.jpg"
},
"total_length": 0,
"current_live_id": "1757216045412",
"live_status": true,
"is_recording": false,
"auto_start": true,
"platform": "bilibili"
},
"timestamp": 1757216045
}
```
#### 结束录制
```json
{
"id": "56fd03e5-3965-4c2e-a6a9-bb6932347eb3",
"event": "record.ended",
"payload": {
"room_id": "26966466",
"room_info": {
"room_id": "26966466",
"room_title": "早安獭獭栞下播前抽fufu",
"room_cover": "https://i0.hdslb.com/bfs/live/user_cover/b810c36855168034557e905e5916b1dba1761fa4.jpg"
},
"user_info": {
"user_id": "1609526545",
"user_name": "栞栞Shiori",
"user_avatar": "https://i1.hdslb.com/bfs/face/47e8dbabb895de44ec6cace085d4dc1d40307277.jpg"
},
"total_length": 52.96700000000001,
"current_live_id": "1757215994597",
"live_status": true,
"is_recording": true,
"auto_start": true,
"platform": "bilibili"
},
"timestamp": 1757216040
}
```
#### 删除录播
```json
{
"id": "c32bc811-ab4b-49fd-84c7-897727905d16",
"event": "archive.deleted",
"payload": {
"platform": "bilibili",
"live_id": "1756607084705",
"room_id": "1967212929",
"title": "灶台O.o",
"length": 9,
"size": 1927112,
"created_at": "2025-08-31T02:24:44.728616+00:00",
"cover": "bilibili/1967212929/1756607084705/cover.jpg"
},
"timestamp": 1757176219
}
```
### 切片相关
#### 切片生成
```json
{
"id": "f542e0e1-688b-4f1a-8ce1-e5e51530cf5d",
"event": "clip.generated",
"payload": {
"id": 316,
"room_id": "27183290",
"cover": "[27183290][1757172501727][一起看凡人修仙传][2025-09-07_00-16-11].jpg",
"file": "[27183290][1757172501727][一起看凡人修仙传][2025-09-07_00-16-11].mp4",
"note": "",
"length": 121,
"size": 53049119,
"status": 0,
"bvid": "",
"title": "",
"desc": "",
"tags": "",
"area": 0,
"created_at": "2025-09-07T00:16:11.747461+08:00",
"platform": "bilibili"
},
"timestamp": 1757175371
}
```
#### 切片删除
```json
{
"id": "5c7ca728-753d-4a7d-a0b4-02c997ad2f92",
"event": "clip.deleted",
"payload": {
"id": 313,
"room_id": "27183290",
"cover": "[27183290][1756903953470][不出非洲之心不下播][2025-09-03_21-10-54].jpg",
"file": "[27183290][1756903953470][不出非洲之心不下播][2025-09-03_21-10-54].mp4",
"note": "",
"length": 32,
"size": 18530098,
"status": 0,
"bvid": "",
"title": "",
"desc": "",
"tags": "",
"area": 0,
"created_at": "2025-09-03T21:10:54.943682+08:00",
"platform": "bilibili"
},
"timestamp": 1757147617
}
```

View File

@@ -0,0 +1,30 @@
# 工作流程
- 直播间:各个平台的直播间
- 录播:直播流的存档,每次录制会自动生成一场录播记录
- 切片:从直播流中剪切生成的视频片段
- 投稿:将切片上传到各个平台(目前仅支持 Bilibili
下图展示了它们之间的关系:
```mermaid
flowchart TD
A[直播间] -->|录制| B[录播 01]
A -->|录制| C[录播 02]
A -->|录制| E[录播 N]
B --> F[直播流预览窗口]
F -->|区间生成| G[切片 01]
F -->|区间生成| H[切片 02]
F -->|区间生成| I[切片 N]
G --> J[切片预览窗口]
J -->|字幕压制| K[新切片]
K --> J
J -->|投稿| L[Bilibili]
```

32
ffmpeg_setup.ps1 Normal file
View File

@@ -0,0 +1,32 @@
# download ffmpeg from https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
$ffmpegUrl = "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip"
$ffmpegPath = "ffmpeg-release-essentials.zip"
# download the file if it doesn't exist
if (-not (Test-Path $ffmpegPath)) {
Invoke-WebRequest -Uri $ffmpegUrl -OutFile $ffmpegPath
}
# extract the 7z file
Add-Type -AssemblyName System.IO.Compression.FileSystem
$extractPath = "ffmpeg"
# check if the directory exists, if not create it
if (-not (Test-Path $extractPath)) {
New-Item -ItemType Directory -Path $extractPath
}
[System.IO.Compression.ZipFile]::ExtractToDirectory($ffmpegPath, $extractPath)
# move the bin directory to the src-tauri directory
# ffmpeg/ffmpeg-*-essentials_build/bin to src-tauri
$ffmpegDir = Get-ChildItem -Path $extractPath -Directory | Where-Object { $_.Name -match "ffmpeg-.*-essentials_build" }
if ($ffmpegDir) {
$binPath = Join-Path $ffmpegDir.FullName "bin"
} else {
Write-Host "No ffmpeg directory found in the extracted files."
exit 1
}
$destPath = Join-Path $PSScriptRoot "src-tauri"
Copy-Item -Path "$binPath/*" -Destination $destPath -Recurse
# remove the extracted directory
Remove-Item $extractPath -Recurse -Force

View File

@@ -1,16 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BiliBili ShadowReplay</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<html lang="zh-cn">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BiliBili ShadowReplay</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

13
index_clip.html Normal file
View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>切片窗口</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main_clip.ts"></script>
</body>
</html>

63
index_live.html Normal file
View File

@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="zh-cn" class="dark">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="shaka-player/controls.css" />
<link rel="stylesheet" href="shaka-player/youtube-theme.css" />
<script src="shaka-player/shaka-player.ui.js"></script>
</head>
<body>
<div id="app"></div>
<script type="module" src="src/main_live.ts"></script>
<style>
input[type="range"]::-webkit-slider-thumb {
width: 12px;
/* 设置滑块按钮宽度 */
height: 12px;
/* 设置滑块按钮高度 */
border-radius: 50%;
/* 设置为圆形 */
}
html {
scrollbar-face-color: #646464;
scrollbar-base-color: #646464;
scrollbar-3dlight-color: #646464;
scrollbar-highlight-color: #646464;
scrollbar-track-color: #000;
scrollbar-arrow-color: #000;
scrollbar-shadow-color: #646464;
}
::-webkit-scrollbar {
width: 8px;
height: 3px;
}
::-webkit-scrollbar-button {
background-color: #666;
}
::-webkit-scrollbar-track {
background-color: #646464;
}
::-webkit-scrollbar-track-piece {
background-color: #000;
}
::-webkit-scrollbar-thumb {
height: 50px;
background-color: #666;
border-radius: 3px;
}
::-webkit-scrollbar-corner {
background-color: #646464;
}
</style>
</body>
</html>

3936
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,25 +1,50 @@
{
"name": "bili-shadowreplay",
"private": true,
"version": "0.0.4",
"version": "2.16.2",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"tauri": "tauri"
"tauri": "tauri",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"bump": "node scripts/bump.cjs"
},
"dependencies": {
"@tauri-apps/api": "^1.2.0"
"@langchain/core": "^0.3.64",
"@langchain/deepseek": "^0.1.0",
"@langchain/langgraph": "^0.3.10",
"@langchain/ollama": "^0.2.3",
"@tauri-apps/api": "^2.6.2",
"@tauri-apps/plugin-deep-link": "~2",
"@tauri-apps/plugin-dialog": "~2",
"@tauri-apps/plugin-fs": "~2",
"@tauri-apps/plugin-http": "~2",
"@tauri-apps/plugin-notification": "~2",
"@tauri-apps/plugin-os": "~2",
"@tauri-apps/plugin-shell": "~2",
"@tauri-apps/plugin-sql": "~2",
"lucide-svelte": "^0.479.0",
"marked": "^16.1.1",
"qrcode": "^1.5.4",
"socket.io-client": "^4.8.1",
"wavesurfer.js": "^7.11.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.0.0",
"@tauri-apps/cli": "^1.2.2",
"@tauri-apps/cli": "^2.4.1",
"@tsconfig/svelte": "^3.0.0",
"@types/node": "^18.7.10",
"@types/qrcode": "^1.5.5",
"autoprefixer": "^10.4.14",
"daisyui": "^2.51.5",
"flowbite": "^2.5.1",
"flowbite-svelte": "^0.46.16",
"flowbite-svelte-icons": "^1.6.1",
"mermaid": "^11.9.0",
"postcss": "^8.4.21",
"svelte": "^3.54.0",
"svelte-check": "^3.0.0",
@@ -27,7 +52,9 @@
"tailwindcss": "^3.3.0",
"ts-node": "^10.9.1",
"tslib": "^2.4.1",
"typescript": "^4.6.4",
"vite": "^4.0.0"
"typescript": "^5.0.0",
"vite": "^4.0.0",
"vitepress": "^1.6.3",
"vitepress-plugin-mermaid": "^2.0.17"
}
}
}

BIN
public/imgs/bilibili.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
public/imgs/donate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

BIN
public/imgs/douyin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

BIN
public/imgs/huya.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

BIN
public/imgs/huya_avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 KiB

View File

@@ -0,0 +1,983 @@
/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
.shaka-hidden {
display: none !important;
}
.shaka-video-container {
position: relative;
top: 0;
left: 0;
display: flex;
font-family: Roboto, sans-serif, TengwarTelcontar;
font-weight: 400;
-webkit-font-smoothing: antialiased;
user-select: none;
-webkit-user-select: none;
}
.shaka-video-container .material-svg-icon {
font-size: 24px;
}
.shaka-video-container:fullscreen {
width: 100%;
height: 100%;
background-color: #000;
}
.shaka-video-container:fullscreen .shaka-text-container {
font-size: 4.4vmin;
}
.shaka-video-container:-webkit-full-screen {
width: 100%;
height: 100%;
background-color: #000;
}
.shaka-video-container:-webkit-full-screen .shaka-text-container {
font-size: 4.4vmin;
}
.shaka-video-container:-moz-full-screen {
width: 100%;
height: 100%;
background-color: #000;
}
.shaka-video-container:-moz-full-screen .shaka-text-container {
font-size: 4.4vmin;
}
.shaka-video-container:-ms-fullscreen {
width: 100%;
height: 100%;
background-color: #000;
}
.shaka-video-container:-ms-fullscreen .shaka-text-container {
font-size: 4.4vmin;
}
.shaka-controls-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
z-index: 1;
}
.shaka-video-container:not([shaka-controls="true"]) .shaka-controls-container {
display: none;
}
.shaka-controls-container * {
flex-shrink: 0;
}
.shaka-controls-container[casting="true"] .shaka-fullscreen-button {
display: none;
}
.shaka-canvas-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.shaka-vr-canvas-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.shaka-bottom-controls {
width: 98%;
padding: 0;
z-index: 1;
}
.shaka-controls-button-panel {
padding: 0;
margin: 0;
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
overflow: hidden;
min-width: 48px;
font-size: 12px;
font-weight: 400;
font-style: normal;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
}
.shaka-controls-container[casting="true"] .shaka-controls-button-panel,
.shaka-controls-container[shown="true"] .shaka-controls-button-panel {
opacity: 1;
}
.shaka-controls-button-panel > * {
color: #fff;
height: 48px;
width: 48px;
line-height: 0.5;
padding: 0 2px;
background: 0 0;
border: 0;
cursor: pointer;
opacity: 0.9;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.1s;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.shaka-controls-button-panel > .shaka-fast-forward-button .material-svg-icon,
.shaka-controls-button-panel > .shaka-rewind-button .material-svg-icon,
.shaka-controls-button-panel > .shaka-skip-next-button .material-svg-icon,
.shaka-controls-button-panel > .shaka-skip-previous-button .material-svg-icon,
.shaka-controls-button-panel > .shaka-small-play-button .material-svg-icon {
font-size: 32px;
}
.shaka-controls-button-panel > .shaka-fullscreen-button .material-svg-icon {
font-size: 24px;
}
.shaka-controls-button-panel > .shaka-overflow-menu-button {
position: relative;
}
.shaka-controls-button-panel > .shaka-overflow-menu-button .material-svg-icon {
font-size: 24px;
}
.shaka-controls-button-panel > :hover {
opacity: 1;
}
.shaka-controls-button-panel .shaka-overflow-menu-only {
display: none;
}
.shaka-play-button-container {
margin: 0;
width: 100%;
height: 100%;
flex-shrink: 1;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
.shaka-statistics-container {
overflow-x: hidden;
overflow-y: auto;
scrollbar-color: white rgba(0, 0, 0, 0.5);
scrollbar-width: thin;
min-width: 300px;
color: #fff;
background-color: rgba(35, 35, 35, 0.9);
font-size: 14px;
padding: 5px 10px;
border-radius: 2px;
position: absolute;
z-index: 2;
left: 15px;
top: 15px;
max-height: calc(100% - 115px);
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
}
.shaka-controls-container[casting="true"] .shaka-statistics-container,
.shaka-controls-container[shown="true"] .shaka-statistics-container {
opacity: 1;
}
.shaka-statistics-container div {
display: flex;
justify-content: space-between;
}
.shaka-statistics-container span {
color: #969696;
}
.shaka-ad-statistics-container {
overflow-x: hidden;
overflow-y: auto;
scrollbar-color: white rgba(0, 0, 0, 0.5);
scrollbar-width: thin;
min-width: 150px;
color: #fff;
background-color: rgba(35, 35, 35, 0.9);
font-size: 14px;
padding: 5px 10px;
border-radius: 2px;
position: absolute;
z-index: 2;
right: 15px;
top: 15px;
max-height: calc(100% - 115px);
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
}
.shaka-controls-container[casting="true"] .shaka-ad-statistics-container,
.shaka-controls-container[shown="true"] .shaka-ad-statistics-container {
opacity: 1;
}
.shaka-ad-statistics-container div {
display: flex;
justify-content: space-between;
}
.shaka-ad-statistics-container span {
color: #969696;
}
.shaka-context-menu {
overflow-x: hidden;
overflow-y: auto;
white-space: nowrap;
background: rgba(28, 28, 28, 0.9);
border-radius: 2px;
min-width: 190px;
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
display: flex;
flex-direction: column;
align-items: stretch;
position: absolute;
z-index: 3;
}
.shaka-controls-container[casting="true"] .shaka-context-menu,
.shaka-controls-container[shown="true"] .shaka-context-menu {
opacity: 1;
}
.shaka-context-menu button {
font-size: 14px;
background: 0 0;
color: #fff;
border: none;
min-height: 30px;
padding: 10px;
display: flex;
align-items: center;
cursor: pointer;
}
.shaka-context-menu button:hover {
background: rgba(255, 255, 255, 0.1);
}
.shaka-context-menu button label {
cursor: pointer;
margin-left: 5px;
}
.shaka-keyboard-navigation .shaka-context-menu button:focus {
background: rgba(255, 255, 255, 0.1);
}
.shaka-context-menu button .shaka-current-selection-span {
display: none;
}
.shaka-scrim-container {
margin: 0;
width: 100%;
position: absolute;
left: 0;
right: 0;
bottom: 0;
flex-shrink: 1;
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
height: 61px;
background: linear-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.5) 100%);
}
.shaka-controls-container[casting="true"] .shaka-scrim-container,
.shaka-controls-container[shown="true"] .shaka-scrim-container {
opacity: 1;
}
.shaka-text-container {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
pointer-events: none;
bottom: 0;
width: 100%;
min-width: 48px;
transition: bottom cubic-bezier(0.4, 0, 0.6, 1) 0.1s;
transition-delay: 0.5s;
font-size: 20px;
line-height: 1.4;
color: #fff;
}
.shaka-text-container span.shaka-text-wrapper {
display: inline;
background: 0 0;
}
.shaka-controls-container[shown="true"] ~ .shaka-text-container {
transition-delay: 0s;
}
.shaka-spinner-container {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
flex-shrink: 1;
display: flex;
justify-content: center;
align-items: center;
}
.shaka-video-container:not([shaka-controls="true"]) .shaka-spinner-container {
display: none;
}
.shaka-hidden-fast-forward-container,
.shaka-hidden-rewind-container {
height: 100%;
width: 40%;
flex-shrink: 1;
z-index: 1;
}
.shaka-hidden-fast-forward-container {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
left: 60%;
}
.shaka-hidden-rewind-container {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.shaka-video-container.no-cursor {
cursor: none !important;
}
.shaka-video-container.no-cursor * {
cursor: none !important;
}
.shaka-play-button {
box-sizing: border-box;
padding: calc(15% / 2);
width: 0;
height: 0;
margin: 0;
border-radius: 50%;
box-shadow: rgba(0, 0, 0, 0.1) 0 0 20px 0;
border: none;
background-size: 50%;
background-repeat: no-repeat;
background-position: center center;
background-color: rgba(255, 255, 255, 0.9);
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
}
.shaka-controls-container[casting="true"] .shaka-play-button,
.shaka-controls-container[shown="true"] .shaka-play-button {
opacity: 1;
}
.shaka-play-button[icon="play"] {
background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%22%23000000%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M8%205v14l11-7z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E");
}
.shaka-play-button[icon="pause"] {
background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%22%23000000%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M6%2019h4V5H6v14zm8-14v14h4V5h-4z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E");
}
.shaka-play-button[icon="replay"] {
background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%22%231f1f1f%22%20height%3D%2224px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M480-80q-75%200-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440h80q0%20117%2081.5%20198.5T480-160q117%200%20198.5-81.5T760-440q0-117-81.5-198.5T480-720h-6l62%2062-56%2058-160-160%20160-160%2056%2058-62%2062h6q75%200%20140.5%2028.5t114%2077q48.5%2048.5%2077%20114T840-440q0%2075-28.5%20140.5t-77%20114q-48.5%2048.5-114%2077T480-80Z%22%2F%3E%0A%3C%2Fsvg%3E");
}
@media (prefers-reduced-transparency: no-preference) {
.shaka-controls-container[shown="true"] .shaka-play-button {
opacity: 0.75;
}
}
.shaka-current-time {
font-size: 14px;
color: #fff;
cursor: pointer;
width: auto;
padding: 0 5px;
}
.shaka-current-time[disabled] {
background-color: transparent;
color: #fff;
cursor: default;
}
.shaka-controls-container button:focus,
.shaka-controls-container input:focus {
outline: 1px solid Highlight;
}
.shaka-controls-container button:-moz-focus-inner,
.shaka-controls-container input:-moz-focus-outer {
outline: 0;
border: 0;
}
.shaka-controls-container:not(.shaka-keyboard-navigation) button:focus,
.shaka-controls-container:not(.shaka-keyboard-navigation) input:focus {
outline: 0;
}
.shaka-fast-forward-container,
.shaka-rewind-container {
height: 100%;
width: 100%;
flex-shrink: 1;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0;
border: none;
color: #fff;
background-color: rgba(0, 0, 0, 0.5);
cursor: default;
font-size: 20px;
opacity: 0;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.shaka-fast-forward-container {
border-radius: 40% 0 0 40%;
}
.shaka-rewind-container {
border-radius: 0 40% 40% 0;
}
.shaka-forward-rewind-container-icon {
font-size: 32px;
}
.shaka-range-container {
position: relative;
top: 0;
left: 0;
margin: calc((12px - 4px) / 2) 6px;
height: 4px;
border-radius: 4px;
background: #fff;
box-sizing: content-box;
}
.shaka-volume-bar-container {
width: 100px;
padding: 0;
transition-property: opacity, width;
transition-duration: 250ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}
.shaka-volume-bar-container:hover {
width: 100px !important;
opacity: 1 !important;
}
@media (max-width: 474px) {
.shaka-volume-bar-container {
width: 50px;
}
.shaka-volume-bar-container:hover {
width: 50px !important;
}
.shaka-mute-button:hover + .shaka-volume-bar-container-allow-hiding {
width: 50px;
opacity: 1;
}
}
.shaka-mute-button
+ .shaka-volume-bar-container-allow-hiding:not(:focus-within) {
width: 0;
opacity: 0;
}
@media (min-width: 475px) {
.shaka-mute-button:hover + .shaka-volume-bar-container-allow-hiding {
width: 100px;
opacity: 1;
}
}
.shaka-range-element {
-webkit-appearance: none;
background: 0 0;
cursor: pointer;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
height: 12px;
top: calc((4px - 12px) / 2);
z-index: 1;
}
.shaka-range-element::-webkit-slider-runnable-track {
width: 100%;
cursor: pointer;
height: 12px;
background: 0 0;
color: transparent;
border: none;
}
.shaka-range-element::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
border-radius: 12px;
height: 12px;
width: 12px;
background: #fff;
}
.shaka-range-element::-moz-range-track {
width: 100%;
cursor: pointer;
height: 12px;
background: 0 0;
color: transparent;
border: none;
}
.shaka-range-element::-moz-range-thumb {
-webkit-appearance: none;
border: none;
border-radius: 12px;
height: 12px;
width: 12px;
background: #fff;
}
.shaka-seek-bar-container {
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
top: 5px;
height: 5px;
margin-bottom: 0;
background-clip: padding-box !important;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
}
.shaka-controls-container[casting="true"] .shaka-seek-bar-container,
.shaka-controls-container[shown="true"] .shaka-seek-bar-container {
opacity: 1;
}
.shaka-seek-bar-container .shaka-seek-bar {
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 250ms;
opacity: 0;
}
.shaka-seek-bar-container:hover .shaka-seek-bar {
opacity: 1;
}
.shaka-ad-markers {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.shaka-spacer {
cursor: default;
flex-shrink: 1;
flex-grow: 1;
margin: 0;
}
.shaka-overflow-menu,
.shaka-settings-menu {
overflow-x: hidden;
overflow-y: auto;
scrollbar-color: white rgba(0, 0, 0, 0.5);
scrollbar-width: thin;
white-space: nowrap;
background: rgba(28, 28, 28, 0.9);
border-radius: 15px;
max-height: 250px;
min-width: 190px;
padding: 5px 0;
opacity: 0;
transition: opacity cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
display: flex;
flex-direction: column;
align-items: stretch;
position: absolute;
z-index: 2;
right: 15px;
bottom: 62px;
}
.shaka-controls-container[casting="true"] .shaka-overflow-menu,
.shaka-controls-container[casting="true"] .shaka-settings-menu,
.shaka-controls-container[shown="true"] .shaka-overflow-menu,
.shaka-controls-container[shown="true"] .shaka-settings-menu {
opacity: 1;
}
.shaka-overflow-menu button,
.shaka-settings-menu button {
font-size: 14px;
background: 0 0;
color: #fff;
border: none;
min-height: 30px;
padding: 10px;
display: flex;
align-items: center;
cursor: pointer;
}
.shaka-overflow-menu button:hover,
.shaka-settings-menu button:hover {
background: rgba(255, 255, 255, 0.1);
}
.shaka-overflow-menu button label,
.shaka-settings-menu button label {
cursor: pointer;
}
.shaka-keyboard-navigation .shaka-overflow-menu button:focus,
.shaka-keyboard-navigation .shaka-settings-menu button:focus {
background: rgba(255, 255, 255, 0.1);
}
.shaka-overflow-menu .material-svg-icon,
.shaka-settings-menu .material-svg-icon {
padding-left: 0;
padding-right: 10px;
}
.shaka-overflow-menu .material-svg-icon.shaka-chosen-item,
.shaka-settings-menu .material-svg-icon.shaka-chosen-item {
order: -1;
line-height: 17px;
font-size: 18px;
}
.shaka-overflow-menu.shaka-low-position,
.shaka-settings-menu.shaka-low-position {
bottom: 48px;
}
.shaka-overflow-menu span {
text-align: left;
}
.shaka-overflow-button-label {
position: relative;
display: flex;
flex-direction: column;
}
.shaka-overflow-button-label-inline {
box-sizing: border-box;
flex-direction: row;
justify-content: space-between;
width: calc(100% - 34px);
padding-right: 28px;
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgZmlsbD0iI2VlZWVlZSI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTguNTkgMTYuNTlMMTMuMTcgMTIgOC41OSA3LjQxIDEwIDZsNiA2LTYgNi0xLjQxLTEuNDF6Ii8+PC9zdmc+");
background-repeat: no-repeat;
background-position: right 5px center;
background-size: 24px 24px;
}
.shaka-simple-overflow-button-label-inline {
box-sizing: border-box;
flex-direction: row;
justify-content: space-between;
width: calc(100% - 50px);
}
.shaka-current-selection-span {
font-size: 12px;
padding-left: 10px;
}
.shaka-current-auto-quality {
margin-left: 5px;
font-size: 11px;
color: #ccc;
}
.shaka-current-quality-mark,
.shaka-quality-mark {
color: red;
margin-left: 2px !important;
font-size: 10px;
height: 17px;
}
.shaka-quality-mark {
line-height: 6px;
}
.shaka-overflow-playback-rate-mark,
.shaka-overflow-quality-mark {
background: red;
color: #fff;
border-radius: 2px;
font-family: Roboto, sans-serif, TengwarTelcontar;
font-size: 10px;
font-weight: 700;
line-height: 10px;
text-shadow: none;
padding: 1px;
position: absolute;
right: 4px;
top: 10px;
}
.shaka-settings-menu span {
margin-left: 28px;
}
.shaka-settings-menu span.shaka-chosen-item {
margin-left: 0;
}
.shaka-settings-menu .shaka-chapter {
margin-left: 10px;
}
.shaka-back-to-overflow-button {
border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.shaka-back-to-overflow-button span {
margin-left: 0;
}
.shaka-back-to-overflow-button .material-svg-icon {
padding-right: 10px;
font-size: 18px !important;
}
.shaka-back-to-overflow-button:hover {
background: 0 0 !important;
}
.shaka-controls-container[ad-active="true"] {
pointer-events: none;
}
.shaka-controls-container[ad-active="true"] .shaka-bottom-controls {
pointer-events: auto;
}
.shaka-client-side-ad-container,
.shaka-server-side-ad-container {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.shaka-video-container[shaka-controls="true"]
.shaka-client-side-ad-container
iframe,
.shaka-video-container[shaka-controls="true"]
.shaka-server-side-ad-container
iframe {
height: 90%;
}
.shaka-ad-controls {
display: flex;
flex-direction: row;
z-index: 1;
padding-bottom: 1%;
}
.shaka-video-container:not([shaka-controls="true"]) .shaka-ad-controls {
display: none;
}
.shaka-ad-controls button,
.shaka-ad-controls div {
color: #fff;
font-size: initial;
}
.shaka-ad-info {
font-size: 14px;
color: #fff;
width: auto;
padding: 0 5px;
}
.shaka-ad-info[disabled] {
background-color: transparent;
color: #fff;
cursor: default;
padding: 0;
}
.shaka-skip-ad-container {
position: relative;
right: calc((100% - 98%) / 2 * -1);
display: flex;
flex-direction: row;
margin: 0;
margin-left: auto;
}
.shaka-skip-ad-button {
padding: 5px 15px;
background: rgba(0, 0, 0, 0.7);
border: none;
cursor: pointer;
}
.shaka-skip-ad-button:disabled {
background: rgba(0, 0, 0, 0.3);
}
.shaka-skip-ad-counter {
padding: 5px;
background: rgba(0, 0, 0, 0.7);
margin: 0;
} /*!
* @license
* The tooltip is based on https://github.com/felipefialho/css-components/
* Local modifications have been performed.
*
* Copyright (c) 2017 Felipe Fialho
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
.shaka-tooltips-on {
overflow: visible;
}
.shaka-tooltips-on > .shaka-tooltip,
.shaka-tooltips-on > .shaka-tooltip-status {
position: relative;
}
.shaka-tooltips-on > .shaka-tooltip-status:active:after,
.shaka-tooltips-on > .shaka-tooltip-status:focus-visible:after,
.shaka-tooltips-on > .shaka-tooltip-status:hover:after,
.shaka-tooltips-on > .shaka-tooltip:active:after,
.shaka-tooltips-on > .shaka-tooltip:focus-visible:after,
.shaka-tooltips-on > .shaka-tooltip:hover:after {
content: attr(aria-label);
font-family: Roboto, sans-serif, TengwarTelcontar;
line-height: 20px;
white-space: nowrap;
font-size: 14px;
background: rgba(0, 0, 0, 0.5);
color: #fff;
border-radius: 2px;
padding: 2px 10px;
position: absolute;
bottom: 62px;
left: calc(48px / 2);
-webkit-transform: translateX(-50%);
-moz-transform: translateX(-50%);
-ms-transform: translateX(-50%);
-o-transform: translateX(-50%);
transform: translateX(-50%);
}
@media (prefers-reduced-transparency) {
.shaka-tooltips-on > .shaka-tooltip-status:active:after,
.shaka-tooltips-on > .shaka-tooltip-status:focus-visible:after,
.shaka-tooltips-on > .shaka-tooltip-status:hover:after,
.shaka-tooltips-on > .shaka-tooltip:active:after,
.shaka-tooltips-on > .shaka-tooltip:focus-visible:after,
.shaka-tooltips-on > .shaka-tooltip:hover:after {
background-color: rgba(0, 0, 0, 0.9);
}
}
.shaka-tooltips-on.shaka-tooltips-low-position > .shaka-tooltip:active:after,
.shaka-tooltips-on.shaka-tooltips-low-position
> .shaka-tooltip:focus-visible:after,
.shaka-tooltips-on.shaka-tooltips-low-position > .shaka-tooltip:hover:after {
bottom: 48px;
}
.shaka-tooltips-on > .shaka-tooltip-status:active:after,
.shaka-tooltips-on > .shaka-tooltip-status:focus-visible:after,
.shaka-tooltips-on > .shaka-tooltip-status:hover:after {
content: attr(aria-label) " (" attr(shaka-status) ")";
}
.shaka-tooltips-on button:first-child:active:after,
.shaka-tooltips-on button:first-child:focus-visible:after,
.shaka-tooltips-on button:first-child:hover:after {
left: 0;
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
}
.shaka-tooltips-on button:last-child:active:after,
.shaka-tooltips-on button:last-child:focus-visible:after,
.shaka-tooltips-on button:last-child:hover:after {
left: 48px;
-webkit-transform: translateX(-100%);
-moz-transform: translateX(-100%);
-ms-transform: translateX(-100%);
-o-transform: translateX(-100%);
transform: translateX(-100%);
}
#shaka-player-ui-thumbnail-container {
background-color: #000;
border: 1px solid #000;
box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.5);
min-width: 150px;
overflow: hidden;
position: absolute;
visibility: hidden;
width: 15%;
z-index: 1;
pointer-events: none;
}
#shaka-player-ui-thumbnail-container #shaka-player-ui-thumbnail-image {
position: absolute;
}
#shaka-player-ui-thumbnail-container #shaka-player-ui-thumbnail-time-container {
bottom: 0;
left: 0;
position: absolute;
right: 0;
display: flex;
justify-content: center;
}
#shaka-player-ui-thumbnail-container
#shaka-player-ui-thumbnail-time-container
#shaka-player-ui-thumbnail-time {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 14px;
color: #fff;
font-size: 14px;
padding: 0 5px;
}
@media (prefers-reduced-transparency) {
#shaka-player-ui-thumbnail-container
#shaka-player-ui-thumbnail-time-container
#shaka-player-ui-thumbnail-time {
background-color: rgba(0, 0, 0, 0.9);
}
}
#shaka-player-ui-thumbnail-container.portrait-thumbnail {
min-width: 75px;
width: 7.5%;
}
#shaka-player-ui-time-container {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 5px;
color: #fff;
display: flex;
font-size: 14px;
justify-content: center;
overflow: hidden;
padding: 0 3px;
position: absolute;
visibility: hidden;
z-index: 1;
}
@media (prefers-reduced-transparency) {
#shaka-player-ui-time-container {
background-color: rgba(0, 0, 0, 0.9);
}
}
.material-svg-icon {
display: inline-block;
fill: currentcolor;
width: 1em;
height: 1em;
}
@font-face {
font-family: Roboto;
font-style: normal;
font-weight: 400;
font-stretch: normal;
src: url(./fonts/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbVmUiA8.ttf)
format("truetype");
} /*# sourceMappingURL=controls.css.map */

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,288 @@
@font-face {
font-family: "Roboto";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(./fonts/KFOmCnqEu92Fr1Me5Q.ttf) format("truetype");
}
@font-face {
font-family: "Roboto";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(./fonts/KFOlCnqEu92Fr1MmEU9vAw.ttf) format("truetype");
}
.youtube-theme {
font-family: "Roboto", sans-serif;
}
.youtube-theme .shaka-bottom-controls {
width: 100%;
padding: 0;
padding-bottom: 0;
z-index: 1;
}
.youtube-theme .shaka-bottom-controls {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.youtube-theme .shaka-ad-controls {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.youtube-theme .shaka-controls-button-panel {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
height: 40px;
padding: 0 10px;
}
.youtube-theme .shaka-range-container {
margin: 4px 10px 4px 10px;
top: 0;
}
.youtube-theme .shaka-small-play-button {
-webkit-box-ordinal-group: -2;
-ms-flex-order: -3;
order: -3;
}
.youtube-theme .shaka-mute-button {
-webkit-box-ordinal-group: -1;
-ms-flex-order: -2;
order: -2;
}
.youtube-theme .shaka-controls-button-panel > * {
margin: 0;
padding: 3px 8px;
color: #eee;
height: 40px;
}
.youtube-theme .shaka-controls-button-panel > *:focus {
outline: none;
-webkit-box-shadow: inset 0 0 0 2px rgba(27, 127, 204, 0.8);
box-shadow: inset 0 0 0 2px rgba(27, 127, 204, 0.8);
color: #fff;
}
.youtube-theme .shaka-controls-button-panel > *:hover {
color: #fff;
}
.youtube-theme .shaka-controls-button-panel .shaka-volume-bar-container {
position: relative;
z-index: 10;
left: -1px;
-webkit-box-ordinal-group: 0;
-ms-flex-order: -1;
order: -1;
opacity: 0;
width: 0px;
-webkit-transition: width 0.2s cubic-bezier(0.4, 0, 1, 1);
height: 3px;
transition: width 0.2s cubic-bezier(0.4, 0, 1, 1);
padding: 0;
}
.youtube-theme .shaka-controls-button-panel .shaka-volume-bar-container:hover,
.youtube-theme .shaka-controls-button-panel .shaka-volume-bar-container:focus {
display: block;
width: 50px;
opacity: 1;
padding: 0 6px;
}
.youtube-theme .shaka-mute-button:hover + div {
opacity: 1;
width: 50px;
padding: 0 6px;
}
.youtube-theme .shaka-current-time {
padding: 0 10px;
font-size: 12px;
}
.youtube-theme .shaka-seek-bar-container {
height: 3px;
position: relative;
top: -1px;
border-radius: 0;
margin-bottom: 0;
}
.youtube-theme .shaka-seek-bar-container .shaka-range-element {
opacity: 0;
}
.youtube-theme .shaka-seek-bar-container:hover {
height: 5px;
top: 0;
cursor: pointer;
}
.youtube-theme .shaka-seek-bar-container:hover .shaka-range-element {
opacity: 1;
cursor: pointer;
}
.youtube-theme
.shaka-seek-bar-container
input[type="range"]::-webkit-slider-thumb {
background: #ff0000;
cursor: pointer;
}
.youtube-theme .shaka-seek-bar-container input[type="range"]::-moz-range-thumb {
background: #ff0000;
cursor: pointer;
}
.youtube-theme .shaka-seek-bar-container input[type="range"]::-ms-thumb {
background: #ff0000;
cursor: pointer;
}
.youtube-theme .shaka-video-container * {
font-family: "Roboto", sans-serif;
}
.youtube-theme .shaka-video-container .material-icons-round {
font-family: "Material Icons Sharp";
}
.youtube-theme .shaka-overflow-menu,
.youtube-theme .shaka-settings-menu {
border-radius: 2px;
background: rgba(28, 28, 28, 0.9);
text-shadow: 0 0 2px rgb(0 0 0%);
-webkit-transition: opacity 0.1s cubic-bezier(0, 0, 0.2, 1);
transition: opacity 0.1s cubic-bezier(0, 0, 0.2, 1);
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
right: 10px;
bottom: 50px;
padding: 8px 0;
min-width: 200px;
}
.youtube-theme .shaka-settings-menu {
padding: 0 0 8px 0;
}
.youtube-theme .shaka-settings-menu button {
font-size: 12px;
}
.youtube-theme .shaka-settings-menu button span {
margin-left: 33px;
font-size: 13px;
}
.youtube-theme .shaka-settings-menu button[aria-selected="true"] {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.youtube-theme .shaka-settings-menu button[aria-selected="true"] span {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
margin-left: 0;
}
.youtube-theme .shaka-settings-menu button[aria-selected="true"] i {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
font-size: 18px;
padding-left: 5px;
}
.youtube-theme .shaka-overflow-menu button {
padding: 0;
}
.youtube-theme .shaka-overflow-menu button i {
display: none;
}
.youtube-theme .shaka-overflow-menu button .shaka-overflow-button-label {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
cursor: default;
outline: none;
height: 40px;
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
}
.youtube-theme .shaka-overflow-menu button .shaka-overflow-button-label span {
-ms-flex-negative: initial;
flex-shrink: initial;
padding-left: 15px;
font-size: 13px;
font-weight: 500;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.youtube-theme .shaka-overflow-menu span + span {
color: #fff;
font-weight: 400 !important;
font-size: 12px !important;
padding-right: 8px;
padding-left: 0 !important;
}
.youtube-theme .shaka-overflow-menu span + span:after {
content: "navigate_next";
font-family: "Material Icons Sharp";
font-size: 20px;
}
.youtube-theme .shaka-overflow-menu .shaka-pip-button span + span {
padding-right: 15px !important;
}
.youtube-theme .shaka-overflow-menu .shaka-pip-button span + span:after {
content: "";
}
.youtube-theme .shaka-back-to-overflow-button {
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
font-size: 12px;
color: #eee;
height: 40px;
}
.youtube-theme .shaka-back-to-overflow-button .material-icons-round {
font-size: 15px;
padding-right: 10px;
}
.youtube-theme .shaka-back-to-overflow-button span {
margin-left: 3px !important;
}
.youtube-theme .shaka-overflow-menu button:hover,
.youtube-theme .shaka-settings-menu button:hover {
background-color: rgba(255, 255, 255, 0.1);
cursor: pointer;
}
.youtube-theme .shaka-overflow-menu button:hover label,
.youtube-theme .shaka-settings-menu button:hover label {
cursor: pointer;
}
.youtube-theme .shaka-overflow-menu button:focus,
.youtube-theme .shaka-settings-menu button:focus {
background-color: rgba(255, 255, 255, 0.1);
border: none;
outline: none;
}
.youtube-theme .shaka-overflow-menu button,
.youtube-theme .shaka-settings-menu button {
color: #eee;
}
.youtube-theme .shaka-captions-off {
color: #bfbfbf;
}
.youtube-theme .shaka-overflow-menu-button {
font-size: 18px;
margin-right: 5px;
}
.youtube-theme .shaka-fullscreen-button:hover {
font-size: 25px;
-webkit-transition: font-size 0.1s cubic-bezier(0, 0, 0.2, 1);
transition: font-size 0.1s cubic-bezier(0, 0, 0.2, 1);
}

58
scripts/bump.cjs Normal file
View File

@@ -0,0 +1,58 @@
#!/usr/bin/env node
const fs = require("fs");
const path = require("path");
function updatePackageJson(version) {
const packageJsonPath = path.join(process.cwd(), "package.json");
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
packageJson.version = version;
fs.writeFileSync(
packageJsonPath,
JSON.stringify(packageJson, null, 2) + "\n"
);
console.log(`✅ Updated package.json version to ${version}`);
}
function updateCargoToml(version) {
const cargoTomlPath = path.join(process.cwd(), "src-tauri", "Cargo.toml");
let cargoToml = fs.readFileSync(cargoTomlPath, "utf8");
// Update the version in the [package] section
cargoToml = cargoToml.replace(/^version = ".*"$/m, `version = "${version}"`);
fs.writeFileSync(cargoTomlPath, cargoToml);
console.log(`✅ Updated Cargo.toml version to ${version}`);
}
function main() {
const args = process.argv.slice(2);
if (args.length === 0) {
console.error("❌ Please provide a version number");
console.error("Usage: yarn bump <version>");
console.error("Example: yarn bump 3.1.0");
process.exit(1);
}
const version = args[0];
// Validate version format (simple check)
if (!/^\d+\.\d+\.\d+/.test(version)) {
console.error(
"❌ Invalid version format. Please use semantic versioning (e.g., 3.1.0)"
);
process.exit(1);
}
try {
updatePackageJson(version);
updateCargoToml(version);
console.log(`🎉 Successfully bumped version to ${version}`);
} catch (error) {
console.error("❌ Error updating version:", error.message);
process.exit(1);
}
}
main();

View File

@@ -1,5 +1,9 @@
# Generated by Cargo
# will have compiled files and executables
/target/
cache
output
tmps
clips
data
config.toml

7607
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,39 +1,157 @@
[workspace]
members = ["crates/danmu_stream", "crates/recorder"]
resolver = "2"
[package]
name = "bili-shadowreplay"
version = "0.0.3"
description = "A Tauri App"
version = "2.16.2"
description = "BiliBili ShadowReplay"
authors = ["Xinrea"]
license = ""
repository = ""
edition = "2021"
[lints.clippy]
correctness="deny"
suspicious="deny"
complexity="deny"
style="deny"
perf="deny"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.2", features = [] }
[dependencies]
tauri = { version = "1.2", features = ["dialog-all", "fs-all", "http-all", "protocol-asset", "shell-open", "system-tray"] }
danmu_stream = { path = "crates/danmu_stream" }
recorder = { path = "crates/recorder" }
serde_json = "1.0"
reqwest = { version = "0.11", features = ["blocking", "json"] }
reqwest = { workspace = true}
serde_derive = "1.0.158"
serde = "1.0.158"
sysinfo = "0.32.0"
m3u8-rs = "5.0.3"
async-std = "1.12.0"
futures = "0.3.27"
ffmpeg-sidecar = "0.3.3"
sqlite = "0.30.4"
chrono = "0.4.24"
async-ffmpeg-sidecar = "0.0.1"
chrono = { version = "0.4.24", features = ["serde"] }
toml = "0.7.3"
custom_error = "1.9.2"
felgens = "0.3.1"
regex = "1.7.3"
tokio = "1.27.0"
tokio = { version = "1.27.0", features = ["process"] }
platform-dirs = "0.3.0"
pct-str = "1.2.0"
md5 = "0.7.0"
hyper = { version = "0.14", features = ["full"] }
dashmap = "6.1.0"
urlencoding = "2.1.3"
log = "0.4.22"
simplelog = "0.12.2"
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] }
rand = "0.8.5"
base64 = "0.21"
mime_guess = "2.0"
async-trait = "0.1.87"
whisper-rs = "0.14.2"
hound = "3.5.1"
uuid = { workspace = true }
axum = { version = "0.7", features = ["macros", "multipart"] }
tower-http = { version = "0.5", features = ["cors", "fs"] }
futures-core = "0.3"
futures = "0.3"
tokio-util = { version = "0.7", features = ["io"] }
tokio-stream = "0.1"
clap = { version = "4.5.37", features = ["derive"] }
url = "2.5.4"
srtparse = "0.2.0"
thiserror = "2"
deno_core = "0.355"
sanitize-filename = "0.6.0"
socketioxide = "0.17.2"
scraper = "0.24.0"
[features]
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]
cuda = ["whisper-rs/cuda"]
headless = []
default = ["gui"]
gui = [
"tauri",
"tauri-plugin-single-instance",
"tauri-plugin-dialog",
"tauri-plugin-shell",
"tauri-plugin-fs",
"tauri-plugin-http",
"tauri-plugin-sql",
"tauri-utils",
"tauri-plugin-os",
"tauri-plugin-notification",
"tauri-plugin-deep-link",
"fix-path-env",
"tauri-build",
]
[dependencies.tauri]
version = "2"
features = ["protocol-asset", "tray-icon"]
optional = true
[dependencies.tauri-plugin-single-instance]
version = "2"
optional = true
features = ["deep-link"]
[dependencies.tauri-plugin-dialog]
version = "2"
optional = true
[dependencies.tauri-plugin-shell]
version = "2"
optional = true
[dependencies.tauri-plugin-fs]
version = "2"
optional = true
[dependencies.tauri-plugin-http]
version = "2"
optional = true
[dependencies.tauri-plugin-sql]
version = "2"
optional = true
features = ["sqlite"]
[dependencies.tauri-utils]
version = "2"
optional = true
[dependencies.tauri-plugin-os]
version = "2"
optional = true
[dependencies.tauri-plugin-notification]
version = "2"
optional = true
[dependencies.tauri-plugin-deep-link]
version = "2"
optional = true
[dependencies.fix-path-env]
git = "https://github.com/tauri-apps/fix-path-env-rs"
optional = true
[build-dependencies.tauri-build]
version = "2"
features = []
optional = true
[target.'cfg(windows)'.dependencies]
whisper-rs = { version = "0.14.2", default-features = false }
[target.'cfg(darwin)'.dependencies.whisper-rs]
version = "0.14.2"
features = ["metal"]
[workspace.dependencies]
reqwest = { version = "0.11", features = ["blocking", "json", "multipart", "gzip"] }
uuid = { version = "1.4", features = ["v4"] }

View File

@@ -1,3 +1,4 @@
fn main() {
tauri_build::build()
#[cfg(feature = "gui")]
tauri_build::build();
}

View File

@@ -0,0 +1,62 @@
{
"identifier": "migrated",
"description": "permissions that were migrated from v1",
"local": true,
"windows": ["main", "Live*", "Clip*"],
"permissions": [
"core:default",
"fs:allow-read-file",
"fs:allow-write-file",
"fs:allow-read-dir",
"fs:allow-copy-file",
"fs:allow-mkdir",
"fs:allow-remove",
"fs:allow-remove",
"fs:allow-rename",
"fs:allow-exists",
{
"identifier": "fs:scope",
"allow": ["**"]
},
"core:window:default",
"core:window:allow-start-dragging",
"core:window:allow-close",
"core:window:allow-minimize",
"core:window:allow-maximize",
"core:window:allow-unmaximize",
"core:window:allow-set-title",
"sql:allow-execute",
"shell:allow-open",
"dialog:allow-open",
"dialog:allow-save",
"dialog:allow-message",
"dialog:allow-ask",
"dialog:allow-confirm",
{
"identifier": "http:default",
"allow": [
{
"url": "https://*.*"
},
{
"url": "http://*.*"
}
]
},
"dialog:default",
"shell:default",
"fs:default",
"http:default",
"sql:default",
"os:default",
"notification:default",
"dialog:default",
"fs:default",
"http:default",
"shell:default",
"sql:default",
"os:default",
"dialog:default",
"deep-link:default"
]
}

View File

@@ -0,0 +1,16 @@
cache = "./cache"
output = "./output"
live_start_notify = true
live_end_notify = true
clip_notify = true
post_notify = true
auto_subtitle = false
subtitle_generator_type = "whisper_online"
whisper_model = "./whisper_model.bin"
whisper_prompt = "这是一段中文 你们好"
openai_api_key = ""
clip_name_format = "[{room_id}][{live_id}][{title}][{created_at}].mp4"
[auto_generate]
enabled = false
encode_danmu = false

View File

@@ -0,0 +1,48 @@
[package]
name = "danmu_stream"
version = "0.1.0"
edition = "2021"
[lib]
name = "danmu_stream"
path = "src/lib.rs"
[[example]]
name = "bilibili"
path = "examples/bilibili.rs"
[[example]]
name = "douyin"
path = "examples/douyin.rs"
[dependencies]
tokio = { version = "1", features = ["full"] }
tokio-tungstenite = { version = "0.27", features = ["native-tls"] }
futures-util = "0.3"
prost = "0.14"
chrono = "0.4"
log = "0.4"
env_logger = "0.11"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reqwest = { version = "0.12", features = ["json"] }
url = "2.4"
md5 = "0.8"
regex = "1.9"
deno_core = "0.355"
pct-str = "2.0"
thiserror = "2.0"
flate2 = "1.0"
scroll = "0.13"
scroll_derive = "0.13"
brotli = "8.0"
http = "1.0"
rand = "0.9"
urlencoding = "2.1"
gzip = "0.1.2"
hex = "0.4.3"
async-trait = "0.1"
uuid = { workspace = true}
[build-dependencies]
tonic-build = "0.14"

Some files were not shown because too many files have changed in this diff Show More