mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-03-02 22:57:11 -05:00
Generate storyboard on remote runners #5294
Labels
No labels
Component: Accessibility
Component: Administration
Component: Auth
Component: CLI
Component: Channels
Component: Chapters
Component: Comments
Component: Custom Markdown
Component: Docker 🐳
Component: Documentation 📚
Component: Email
Component: Embed
Component: Federation 🎡
Component: Import/Export
Component: Live
Component: Metadata
Component: Mobile
Component: Moderation :godmode:
Component: Notifications
Component: Object storage
Component: Observability
Component: PeerTube Plugin 📦
Component: Player ⏯️
Component: Playlist
Component: Recommendation
Component: Redundancy
Component: Registration
Component: Runners
Component: SEO
Component: Search
Component: Security
Component: Stats
Component: Studio
Component: Studio
Component: Subscriptions
Component: Subtitles 💬
Component: Transcoding
Component: Upload
Component: Video Import
Component: i18n 🔡
Priority: High
Priority: Low
Priority: Roadmap
Status: Blocked ✋
Status: In Progress 🔜
Status: To Reproduce
Status: Waiting for answer
Template not filled
Type: Bug 🐛
Type: Discussion 💭
Type: Discussion 💭
Type: Duplicate ➿
Type: Feature Request ✨
Type: Maintenance 👷♀️
Type: Performance
Type: Question
UI
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PeerTube#5294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Flagelmann on GitHub (Dec 21, 2023).
Describe the current behavior
I noticed the Peertube 6.x now, during the import phase on any video (I'm usually importing only MP4 Video files on my personal instance) on the backend the ffmpeg is always called and slowing the import process.
The transcoding is disabled globally but I still see that ffmpeg is being called. I have re-downloaded the video from the Perrtube web portal and I checked that the video file was not actually re-encoded at all, so no transcoding is happening but ffmpeg is still called anyway.
I suspect that this slowness is related to the generation of the storyboards using ffmpeg.
Is it possible to disable this behavior by adding even an additional option in the Peertube administration web section?
Steps to reproduce
2023-12-21 16:13:01.898 info: Processing generate storyboard of 206e171d-72e7-4980-9c5b-d4bb8f78aa1e in job 93774aa4-fca7-46fb-94c4-ff4ea8aec330.
Describe the expected behavior
I expected to see the same behavior as it was in Peertube 5.x, so no ffmpeg called during import phase if no transcoding is needed.
Additional information
PeerTube instance:
Browser name, version and platforms on which you could reproduce the bug: Chrome/Edge/Firefox
Link to server log if relevant (
journalctlor/var/www/peertube/storage/logs/): 2023-12-21 16:13:01.898 info: Processing generate storyboard of 206e171d-72e7-4980-9c5b-d4bb8f78aa1e in job 93774aa4-fca7-46fb-94c4-ff4ea8aec330.@dhk2 commented on GitHub (Dec 21, 2023):
I to have noticed this behavior on a few of the 2 and 3 vcpu instances I help with. Very noticeable with larger channel imports. It maxes out the CPU well above the levels considered considerate for a shared VPS as well. Otherwise since the implementation of remote runners these cheap instances have been doing surprisingly well
Since the storyboard process uses FFMPEG, I was thinking the best solution would be to have the storyboard generation done by a remote runner, perhaps in conjunction with the initial vod-web-video-transcoding to save the bandwidth of sending the whole video just for the storyboard. Hadn't considered there'd be people who'd prefer the feature disabled completely.
@Flagelmann commented on GitHub (Dec 22, 2023):
Well, actually it would be useful, I think, to have more chances to enable/disable most of the functionalities in Peertube software, as in that way the Peertube self-hosted instances could be tuned on different more or less powerful systems (like Raspberry Pi).
Specifically, for example, I do not need video storyboards so I would like to be able to enable/disable it based on my demand and not to be forced to use remote runners to offload the additional CPU computing just to be able to get a similar performance level of my self-hosted instance when storyboards were not available (Peertube 5.x).
So, finally, yes, it would be highly appreciated to be able to disable the storyboard generation process on new/imported videos.
@Chocobozzz commented on GitHub (Dec 27, 2023):
Agreed, it's done in
github.com/Chocobozzz/PeerTube@b9077c83fc@Flagelmann commented on GitHub (Jan 18, 2024):
Hello,
I've just upgraded to 6.0.3.
Just to be sure, the ability to disable storyboard generation is not included in this new version, right?
Many thanks
@Chocobozzz commented on GitHub (Jan 19, 2024):
Yes, it will be released in 6.1
@dannekrose commented on GitHub (Aug 19, 2025):
I vote for this feature! While I could disable storyboards during the event I have planned, it would be nice to be able to offload the storyboards via Runner so that as videos get published (it will be a multiple streamer, livestream parade event in 60 min segments), the storyboards are also available without having to stress the CPUs doing the livestream transcoding.