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
obs-studio: add support for srt protocol #116173
Conversation
thanks @SuperSandro2000 for your support!
@@ -24395,7 +24395,9 @@ in | |||
|
|||
oberon-risc-emu = callPackage ../misc/emulators/oberon-risc-emu { }; | |||
|
|||
obs-studio = libsForQt5.callPackage ../applications/video/obs-studio { }; | |||
obs-studio = libsForQt5.callPackage ../applications/video/obs-studio { | |||
ffmpeg = ffmpeg-full.override { srt = srt; }; |
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.
Did we already check if inherit srt works here?
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.
I tried it and it did not work. As I have absolutely no idea how to debug the error message i switched back to the override version.
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 906e90a8249..6f9433dace7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24395,7 +24395,9 @@ in
oberon-risc-emu = callPackage ../misc/emulators/oberon-risc-emu { };
- obs-studio = libsForQt5.callPackage ../applications/video/obs-studio { };
+ obs-studio = libsForQt5.callPackage ../applications/video/obs-studio {
+ ffmpeg = ffmpeg-full { inherit srt; };
+ };
obs-wlrobs = callPackage ../applications/video/obs-studio/wlrobs.nix { };
[nix-shell:~/Code/nixpkgs]$ nix-build -A obs-studio --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'obs-studio-26.1.2' at /home/obs/Code/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11:
while evaluating 'getOutput' at /home/obs/Code/nixpkgs/lib/attrsets.nix:482:23, called from undefined position:
while evaluating anonymous function at /home/obs/Code/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:143:17, called from undefined position:
attempt to call something which is not a function but a set, at /home/obs/Code/nixpkgs/pkgs/top-level/all-packages.nix:24399:14
@SuperSandro2000 I was going to submit a patch that changes the build inputs of obs-studio from However, obs-studio isn't the only package effected by this. So is
You can then use obs-studio to stream to this by putting the following in as a stream url:
Maybe we should just be compiling |
Essentially, this patch should be added to |
@ofborg eval |
That would cleanup the package a bit and we could also do this here.
I am not sure if this is needed in the default ffmpeg and if that feature is widely used. ffmpeg is probably pretty big already and we should only include it if it is a common feature expected to work. |
I marked this as stale due to inactivity. → More info |
SRT support in ffmpeg is now enabled by default: #120577 |
Motivation for this change
https://obsproject.com/wiki/ advertises support of SRT Protocol, and the nixos package, but the nix package does not include support for the SRT Protocol.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
obs
in./result/bin/
nix path-info -S
before and after)