Repository navigation
Stream v3 #14042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shimonewman
wants to merge
205
commits into
main
Choose a base branch
from
__stream_v3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Stream v3 #14042
Changes from 1 commit
Commits
Show all changes
205 commits
Select commit
Hold shift + click to select a range
329c43f
view template
shimonewman e97957d
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 56545a7
restore
shimonewman aa6ff51
restore
shimonewman 100fb73
view template
shimonewman 6491cea
restore
shimonewman c8c282a
restore
shimonewman d6007b2
refactor worker flow
shimonewman c753476
refactor worker flow
shimonewman c89b028
refactor worker flow
shimonewman 48320d4
Merge remote-tracking branch 'origin/__stream' into __stream
shimonewman bb172f8
refactor worker flow
shimonewman c2e5992
big file
shimonewman e48e1da
small fix
shimonewman 5e903da
small fix
shimonewman 01eaa65
small fix
shimonewman dc38b63
small fix
shimonewman bc43989
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman d8f4d09
updated dependencies
shimonewman 6c7c5c1
small fix
shimonewman ec8eaa1
gitignore large file
shimonewman 9f4ebcf
logger moved to App::shutdown
shimonewman 4089b81
Added labels, rebuilt specs
Meldiron 33d942c
hls master name change
shimonewman 7f44f45
hls master name change
shimonewman 4efbc92
metadata collecting
shimonewman aeebbbe
metadata collecting
shimonewman 86b7215
metadata collecting
shimonewman a7d7879
metadata collecting
shimonewman 2a02784
profiles crud
shimonewman 817793a
subtitles crud
shimonewman cb0ab3c
subtitles crud
shimonewman fbe63a8
hls stream
shimonewman 076f333
update
shimonewman 5b01232
update
shimonewman 8340198
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 1bcd2d6
draft
shimonewman 6896ff3
restore
shimonewman e232f2b
dash
shimonewman b403a82
dash
shimonewman fe6a472
mpeg-dash-stream
shimonewman 49f8eae
mpeg-dash-stream
shimonewman fd3a4fd
e2e tests
shimonewman 2f1a116
video scopes
shimonewman 6ca361d
dash subtitles
shimonewman e8c96e8
dash manifest
shimonewman f2fbdf8
transcoding gop
shimonewman b9bca60
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman d6dc025
sync with 0.16
shimonewman 9ffd52d
tests
shimonewman 93d777a
Update src/Appwrite/Event/Transcoding.php
shimonewman e843c00
Update src/Appwrite/Extend/Exception.php
shimonewman 5db53f7
Update src/Appwrite/Resque/Worker.php
shimonewman 59b1887
Update src/Appwrite/Resque/Worker.php
shimonewman ebe7949
addressing comments
shimonewman ed93e54
addressing comments
shimonewman 6d2d115
addressing comments
shimonewman 33e608e
Multi audio tracks
shimonewman b26a28d
Multi audio tracks
shimonewman 735072f
m3u8 tidy
shimonewman fcd29ba
m3u8 tidy
shimonewman b13c9f5
audio tracks
shimonewman 115b032
hls-playlist
shimonewman ca0017c
streamId
shimonewman 9060d86
test adjustments
shimonewman 53b020f
test adjustments
shimonewman 1aed3a1
Merge branch '0.16.x' of github.com:appwrite/appwrite into __stream
shimonewman aef8c1b
sync with 0.16
shimonewman baea836
sync with 0.16
shimonewman c9b0c6f
sync with 0.16
shimonewman 110c38d
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 104bd58
audit
shimonewman 59c5c03
audit
shimonewman de6359c
audit
shimonewman 19a38cd
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 0172a6c
bla
shimonewman c555995
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 5546de1
aligning with master
shimonewman 19ad991
updates
shimonewman 89f325f
updates
shimonewman 7daa198
updates
shimonewman 19388cc
updates
shimonewman 7ea6959
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 2bb45c3
compose.lock
shimonewman 403e1c2
compose.lock
shimonewman 1af48bd
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman e4972cc
compose.lock
shimonewman 7c81a1e
compose.lock
shimonewman 331c907
compose.lock
shimonewman f1fa22c
usage test
shimonewman f7a1cb1
bla
shimonewman 65a1921
bla
shimonewman edaa939
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 3d1228b
sync with master
shimonewman 1b6adce
realtime events
shimonewman e2df63b
realtime events
shimonewman f71f180
realtime events
shimonewman 4ac062e
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman d1c0e0d
realtime events
shimonewman ca90711
realtime events
shimonewman d26aabb
realtime events
shimonewman a1918d1
video tests
shimonewman b9fa699
video tests
shimonewman 4b227c7
video tests
shimonewman cfb53be
metadata extraction ffmpeg -> mediainfo
shimonewman 8d496d6
metadata extraction ffmpeg -> mediainfo
shimonewman 81ca8a5
metadata extraction ffmpeg -> mediainfo
shimonewman 7a0255d
Updates
shimonewman d6d6a77
Updates
shimonewman dbad8c2
Updates
shimonewman 26251e9
Updates
shimonewman 658cfee
Updates
shimonewman 92f75bd
Updates
shimonewman 9f94560
Updates
shimonewman 5785145
Updates
shimonewman 7340968
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman cb217b4
Updates
shimonewman 883d48c
subtitle lan code
shimonewman 8a8a2d3
subtitle lan code
shimonewman aa8334e
subtitle lan code
shimonewman 22b4555
subtitle lan code
shimonewman 61e3faa
Update languages.php
shimonewman 4a8ef12
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman bccd1a9
timeline
shimonewman 053d688
Merge remote-tracking branch 'origin/__stream' into __stream
shimonewman 2b60b18
timeline
shimonewman c09f600
transcoding -> videos
shimonewman 9f6589d
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman fc991e8
transcoding -> videos
shimonewman 4cd273e
updates
shimonewman 1830138
updates
shimonewman 14575a7
updates
shimonewman db4506b
updates
shimonewman 741a87f
updates
shimonewman d6e1d0f
updates
shimonewman dbd5896
updates
shimonewman 578c8d9
tests
shimonewman 89dfbfb
Update hls-master.phtml
shimonewman 38c6499
Update videos.php
shimonewman 60098d7
adjustments
shimonewman a187aa4
bug fixes
shimonewman 6af8fd6
bug fixes
shimonewman 927bead
bug fixes
shimonewman 3c69c21
added internalIds to collections
shimonewman f3508e1
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman af80acc
added internalIds to collections
shimonewman 767b5c8
added internalIds to collections
shimonewman e28cbce
small updates
shimonewman e0f4673
re-working worker flow
shimonewman d347503
api cache fix
shimonewman d28803e
Merge branch 'master' of github.com:appwrite/appwrite into __stream
shimonewman 7d6375f
composer
shimonewman da53a50
sync with master
shimonewman 6d69a3c
chore: merge origin/main into __stream
shimonewman 23d0e85
feat(videos): re-wire videos infrastructure onto main's architecture
shimonewman 10dde4e
feat(videos): add Videos platform module with 26 HTTP endpoints
shimonewman b139e2b
fix(videos): keep the videos service non-optional for now
shimonewman ce72243
fix(videos): worker dev image, guest scope leak, and profile seeding
shimonewman 883280d
test(videos): rewrite the e2e suite against the current API
shimonewman d4d5bc4
feat(videos): enhance video profiles and storage limits
shimonewman 31694b5
refactor(videos): update dependencies and improve video processing
shimonewman 03f560d
feat(videos): add CMAF support and improve subtitle handling
shimonewman 31daa38
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman 78aef91
fix(videos): ensure consistent string handling for video and subtitle…
shimonewman 8e7cc34
refactor(videos): update escaping method for video and subtitle templ…
shimonewman 5d9199f
chore(dependencies): update composer.lock for package versions and PH…
shimonewman 278c5e7
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman a5d20f4
chore(env): update environment variables and Docker configurations
shimonewman 3568dfd
chore(composer): add alias for utopia-php/console in composer.lock
shimonewman 77743ce
chore(composer): add shimonewman/streaming and captioning dependencies
shimonewman e80ef46
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman 2b0a827
feat(videos): introduce temporary video storage and ffmpeg integration
shimonewman 772b6ca
feat(videos): refactor video processing with new download mechanism
shimonewman 0b1cf79
feat(videos): enhance video management with new deletion and update f…
shimonewman b287db8
feat(videos): enhance video error handling and management features
shimonewman e5a94cf
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman 9d4a95a
feat(videos): implement video rendition management and cleanup tasks
shimonewman 054bdfe
feat(videos): enhance video processing and subtitle management
shimonewman 6ee0164
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman 18ec4e3
refactor(videos): improve workspace management and error handling
shimonewman 021b5af
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman f941bf3
refactor(videos): update rendition status terminology from 'waiting' …
shimonewman 65d4df8
chore(composer): remove video package and update source URL
shimonewman ce74bfa
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman 956c12e
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman 4c863d2
chore(docker): update console URL scheme and Traefik rules; add envir…
shimonewman ab3f932
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v2
shimonewman d86920b
feat(videos): add support for video codecs and enhance profiles
shimonewman 6c4fd92
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v3
shimonewman 7043270
refactor(videos): clarify codec handling and update documentation
shimonewman a6f2e97
feat(videos): enhance rendition and source handling
shimonewman 0d147ad
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v3
shimonewman d171dfe
refactor(publisher): rename enqueue methods to publish and add getFai…
shimonewman 1e191c2
refactor(videos): clean up rendition creation logic
shimonewman d111959
refactor(videos): remove deprecated video source handling and clean u…
shimonewman 74d7b61
feat(videos): implement video profile seeding
shimonewman cc4fab6
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v3
shimonewman 3374fcc
refactor(videos): remove create-timeline endpoint and update video cr…
shimonewman 745dd6a
refactor(videos): remove unused 2160p video profile
shimonewman 160641b
refactor(projects): restructure video profile management and update p…
shimonewman 69c4485
refactor(videos): enhance subtitle handling during video creation
shimonewman 8c2f9a4
feat(videos): add caption management endpoints and documentation
shimonewman 5b6f5cc
refactor(videos): rename subtitles to captions and update related con…
shimonewman dcb5f34
refactor(videos): standardize segment duration for video processing
shimonewman 29d6495
Merge branch 'main' of github.com:appwrite/appwrite into __stream_v3
shimonewman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(videos): implement video rendition management and cleanup tasks
- Added new environment variables for managing video processing intervals and retention. - Enhanced video rendition creation to prevent duplicates based on profile and output. - Introduced a sweeper task for cleaning up stale video resources. - Updated Docker configuration to include new environment variables and volumes for video processing. - Improved error handling for video states, including handling of aborted and error statuses. - Added tests to ensure proper functionality of new features and error handling.
- Loading branch information
commit 9d4a95a0c5ab8775c55973ba7e51fd4d6b2319ab
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
|
|
||
| exec php /usr/src/code/app/cli.php clean-stale-videos-resources "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?php | ||
|
|
||
| namespace Appwrite\Platform\Modules\Videos\Services; | ||
|
|
||
| use Appwrite\Platform\Modules\Videos\Tasks\CleanStaleVideosResources; | ||
| use Utopia\Platform\Service; | ||
|
|
||
| class Tasks extends Service | ||
| { | ||
| public function __construct() | ||
| { | ||
| $this->type = Service::TYPE_TASK; | ||
| $this->addAction(CleanStaleVideosResources::getName(), new CleanStaleVideosResources()); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retain recovery for interrupted rendition jobs
Removing the cleanup task also removes recovery for renditions left
started,ended, oruploadingby a worker crash or container restart. Encode redelivery rejects every non-pending row, andfinallycannot clean up a killed process, so these renditions stay stuck and their downloaded workspaces remain on the persistent volume; please retain stale-encode recovery even without shared sources.Prompt To Fix With AI
🟡 Minor · error-handling · Reply if this doesn't apply.