Repository navigation
Conversation
tt2468
force-pushed
the
enhancement/ffmpeg-output-path-refactor
branch
from
April 24, 2023 04:40
cd11ea0 to
7178b73
Compare
PatTheMav
reviewed
Apr 25, 2023
tt2468
force-pushed
the
enhancement/ffmpeg-output-path-refactor
branch
from
May 21, 2023 00:20
7178b73 to
9455c51
Compare
tt2468
force-pushed
the
enhancement/ffmpeg-output-path-refactor
branch
from
May 5, 2024 03:06
9455c51 to
3ee0bd8
Compare
Refactors parts of the mux outputs which deal with file paths. This allows us to optionally move path generation to the output, away from the UI. This has benefits, notable for code deduplication and also for synchronizing behavior. It is also required for other features like inserting the part number into a file name for file splitting. General idea: - Allows the `path` settings field to be unset, provided the appropriate `directory`, `format`, and `extension` fields have been set - If `path` is not set, it will generate its own initial file name - Moves general path storage to `stream->path` - Gets rid of a lot of unnecessary passing around of path strings between functions - Adds a `last_file` field to the `file_changed` output signal for future usage by the UI for auto-remux and other features when file splitting is enabled
tt2468
force-pushed
the
enhancement/ffmpeg-output-path-refactor
branch
from
May 5, 2024 03:07
3ee0bd8 to
ac77c10
Compare
Member
|
I'm currently going through stale PRs and this looks like something potentially worth reviving. |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Refactors parts of the mux outputs which deal with file paths.
General idea:
pathsettings field to be unset, provided the appropriatedirectory,format, andextensionfields have been setpathis not set, it will generate its own initial file namestream->pathlast_filefield to thefile_changedoutput signal for future usage by the UI for auto-remux and other features when file splitting is enabledMotivation and Context
This allows us to optionally move path generation to the output, away from the UI. This has benefits, notable for code deduplication and also for synchronizing behavior. It is also required for other features like inserting the part number into a file name for file splitting.
How Has This Been Tested?
Unfortunately, this does touch a lot of code paths with little immediate user-facing benefits. I've done the best I can do testing this and I am not seeing any changed behavior, crashes, or memory leaks- so that's good I guess.
Types of changes
Checklist: