Repository navigation
libobs: Add handling for obs-ffmpeg-mux standard error output on POSIX systems - #10070
Merged
Merged
Conversation
6 tasks done
Contributor
|
Thanks for taking this over |
Transition from using popen() to using fork()/dup2()/execl() to provide a way to read stderr from ffmpeg. Co-Authored by: PatTheMav <[email protected]>
Member
Author
|
@kkartaltepe Did you have a chance to check this out? |
Collaborator
|
I just wanted to test it some on my system, the code all seemed fine to me (but im not familiar with posix_spawn limitations). |
norihiro
reviewed
Jan 10, 2024
Lain-B
approved these changes
Jan 14, 2024
6 tasks done
5 of 6 tasks
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
Adds support for standard error output from subprocesses spawned on POSIX systems, specifically for
obs-ffmpeg-mux.Updates and supersedes #3459.
Motivation and Context
obs-ffmpeg-muxprovides error messages that are ignored by the main application right now because of lack of support for the standard error output stream. The original PR added the necessary code to handle all required input and output streams, including the standard error output.How Has This Been Tested?
Tested on macOS 14.2.1 with modified
obs-ffmpeg-muxto fail early with an error message and checked that the return code as well as the error message was successfully displayed in the log.Types of changes
Checklist: