Created attachment 213123 [details] A patch that adds a message describing how to fix local recording. Because it seems like obs-studio (specifically, obs-ffmpeg-mux) is expecting /bin/sh to be /bin/bash and uses file descriptors for obs-ffmpeg-mux, "sh: permission denied" can be seen in the log file, and local recording doesn't work. This patch adds a message for when obs-studio is installed, so that people will know where to fix it so that local recording works on FreeBSD again. This issue pertains to bug 245299 which seems to have cropped up again, and should hopefully fix it for good.
(In reply to Daniel Ebdrup Jensen from comment #0) Could you please add steps to reproduce the problem? Thanks, Yuri
On my system it records in the "Simple" mode without a problem: info: --------------------------------- info: [x264 encoder: 'simple_h264_stream'] preset: veryfast info: [x264 encoder: 'simple_h264_stream'] settings: rate_control: CBR bitrate: 2500 buffer size: 2500 crf: 0 fps_num: 60 fps_den: 1 width: 1148 height: 646 keyint: 250 info: libfdk_aac encoder created info: libfdk_aac bitrate: 160, channels: 2 info: ==== Recording Start =============================================== info: [ffmpeg muxer: 'simple_file_output'] Writing file '/home/yuri/2020-04-06 09-37-02.mkv'... [matroska @ 0x80416c000] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [matroska @ 0x80416c000] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. info: [ffmpeg muxer: 'simple_file_output'] Output of file '/home/yuri/2020-04-06 09-37-02.mkv' stopped info: Output 'simple_file_output': stopping info: Output 'simple_file_output': Total frames output: 1083 info: Output 'simple_file_output': Total drawn frames: 879 (1109 attempted) info: Output 'simple_file_output': Number of lagged frames due to rendering lag/stalls: 230 (20.7%) info: ==== Recording Stop ================================================ info: libfdk_aac encoder destroyed info: ==== Shutting down ==================================================
With obs-studio-25.0.1 when I click "Start Recording" (with all settings left at out-of-the-box defaults) I get: info: --------------------------------- info: [x264 encoder: 'simple_h264_stream'] preset: veryfast info: [x264 encoder: 'simple_h264_stream'] settings: rate_control: CBR bitrate: 2500 buffer size: 2500 crf: 0 fps_num: 30 fps_den: 1 width: 1280 height: 720 keyint: 60 info: libfdk_aac encoder created info: libfdk_aac bitrate: 128, channels: 2 info: ==== Recording Start =============================================== info: [ffmpeg muxer: 'simple_file_output'] Writing file '/home/emaste/2020-04-06 13-54-35.mkv'... sh: : Permission denied warning: [ffmpeg muxer: 'simple_file_output'] os_process_pipe_write for packet data failed info: [ffmpeg muxer: 'simple_file_output'] Output of file '/home/emaste/2020-04-06 13-54-35.mkv' stopped info: Output 'simple_file_output': stopping info: Output 'simple_file_output': Total frames output: 4 info: Output 'simple_file_output': Total drawn frames: 31 info: ==== Recording Stop ================================================ info: libfdk_aac encoder destroyed and the GUI says "An unspecified error occurred while recording."
(In reply to Ed Maste from comment #3) obs-studio-25.0.1 is outdated. Could you please try it with the current obs-studio-25.0.4? Thanks, Yuri
Need feedback: confirmation that the failure occurs with the version 25.0.4 If the problem exists in 25.0.4, please also attach the kernel syscall log fragment showing the failing system call. I can't reproduce the failure on my system.
(In reply to Yuri Victorovich from comment #5) I've tested with 25.0.4, it works fine. The issue was fixed by bug245299 and bug245403.
*** This bug has been marked as a duplicate of bug 245299 ***