Script to encrypt videos immediately after being created - prevent from editing

sta

New Member
Hello
OBS supports ALAC, FLAC and TrueHD. All lossless.

Hello,

Thank you for your reply.

Can you please clarify if the audio track, with a max of 320 kb bitrate (settings -> output -> audio tab -> advanced mode), since it has a lower bitrate compared with ffmepg pcm, doesn´t affect the video and audio recording (recording tab), in this case lowers the audio quality, and its bitrate.

I have selected 44khz, and mono channel in settings -> audio -> general.
I am not streaming, is a offline recording.
In the audio tab (settings -> output -> advanced mode), I have selected audio track 1 (maximum bitrate 320 kbp).
In the recording tab (settings -> output - > advanced mode), I have selected the following:
Recording format mkv, video encoder H264, audio encoder ffmepg pcm (16 bits).
Encoder settings: CBR. I am not sure if the bitrate only affects the video or also the audio.
If also affects the audio, I should select 705.6 kbps, so that can be matched with the audio bitrate, pcm, 44khz, mono, 16 bits?

Is there a way to increase the audio track bitrate, by changing the OBS files configuration?

Thank you
 

koala

Active Member
The audio bitrate is after compression with the audio encoder. Since different encoders have different compression ratios, you cannot compare audio bitrate across encoders. PCM has no compression at all, it's the raw audio, so it has the highest bitrate. Lossless encoders are able to about compress to 50% of the pcm bitrate, but the exact bitrate is specific to the actual encoder used. Lossy encoders such as aac are able to compress more, and here finally the bitrate defines the quality, because it defines how much audio "detail" needs to be removed to get down to the desired bitrate. And removed detail means distortion.

It is said that aac with bitrate 128 can be just barely distinguished by young and educated ears from the original. Bitrate 256 isn't distinguishable by the human ear from the original. Only analysis by audio processing tools can detect a difference. Bitrates above 320 allow audio postprocessing (mixing, editing) without human detectable distortion but isn't required if one don't intend to postprocess.

Since you still not give any information about the actual use case and don't tell us what you want to do with what OBS will create, there can not be a better answer, since without knowing the core of your questions, it's an XY-problem.
 
Last edited:

sta

New Member
Hello,

Can someone please answer directly to my 3 questions. I am not asking If one has a good ear or not.
I am not streaming, is a offline recording.

I noticed that the audio bit rate of the recorded video files, mono channel, pcm, 16 bits is 705.6 kbps, but if the audio input was previously compressed before recording because the audio track is 320kbps, the audio quality decreased, although is supposed to be lossless.

1. Can someone clarify if the audio track, with a max of 320 kb bitrate (settings -> output -> audio tab -> advanced mode), will affect the lossless bitrate of ffmepg pcm (16 bits) encoder, mono 705.6 kbps, when recording? Yes or no answer.

2. How can I increase the audio track bitrate, by changing the OBS configuration files, and since OBS is open source?

I have selected the following settings:
In settings -> audio -> general - 44khz, and mono channel.
In the audio tab (settings -> output -> advanced mode), I have selected audio track 1 (maximum bitrate 320 kbp).
In the recording tab (settings -> output - > advanced mode):
Recording format mkv, video encoder H264, audio encoder ffmepg pcm (16 bits).

About the encoder configuration (settings -> output - > advanced mode): I have selected CBR.
3. I have a question about the bitrate. Does the bitrate applies only to the video or also applies to the audio?

Thank you
 

Tomasz Góral

Active Member
doesn't matter.
You have wrong software.
OBS is for mixing and recording software.
PCM is not compressed, but if your source e.g. is file mp3 320kbits, your quality is lower like PCM because mp3 is loses data encoder.

To check integrity file you need: file video and hash (sha256 or better), hash must be save in secure place. Every time if you need check file compare to hash.

If some one reencode video file or cut and reencode output video file has change hash, if you only copy whole file hash be the same.

If you need some DRM, build own encoder and decoder. Own decoder can ask your server (in internet) to privileges to play file, own encoder guarantee no other modifying source, because only you have encoder engine. e.g. 15 years ago HikVision modify h.264, and only him software can play, they prepare player software.
 

Suslik V

Active Member
1. ...320 kb bitrate (settings -> output -> audio tab -> advanced mode), will affect the lossless bitrate of ffmepg pcm (16 bits)
No. It should not. But see info below.

2. How can I increase the audio track bitrate
OBS Settings > Output > Audio Bitrate (entry) , for Output Mode: Simple *
or
OBS Settings > Output > Audio (tab) > Audio Bitrate (entry) , for Output Mode: Advanced *
or
OBS Settings > Output > Recording (tab) > Audio Bitrate (entry) , for Output Mode: Advanced, Type: Custom Output (FFmpeg) *

In regular OBS you cannot select 16-bit PCM uncompressed encoder until you set "Custom Output (FFmpeg)" for Advanced output mode. Maybe you are using fork of OBS that is acts differently. Official download page of original OBS was here: https://obsproject.com/download

* was valid for OBS v28.0

3. ...Does the bitrate applies only to the video or also applies to the audio?
Audio and video bitrate settings are independent in OBS, and should be added if you need to calculate final file size.
 

sta

New Member
No. It should not. But see info below.


OBS Settings > Output > Audio Bitrate (entry) , for Output Mode: Simple *
or
OBS Settings > Output > Audio (tab) > Audio Bitrate (entry) , for Output Mode: Advanced *
or
OBS Settings > Output > Recording (tab) > Audio Bitrate (entry) , for Output Mode: Advanced, Type: Custom Output (FFmpeg) *

In regular OBS you cannot select 16-bit PCM uncompressed encoder until you set "Custom Output (FFmpeg)" for Advanced output mode. Maybe you are using fork of OBS that is acts differently. Official download page of original OBS was here: https://obsproject.com/download

* was valid for OBS v28.0


Audio and video bitrate settings are independent in OBS, and should be added if you need to calculate final file size.
Hello,

Thank you for your reply.

After clicking settings > output > selected the advanced output mode, 4 tabs appear: streaming, recording, audio and reply buffer

Regarding the audio tab: the maximum audio bitrate for each audio track is 320 Kbps. How can I increase the audio bitrate for each audio track to 705.6 kbps?
If it is not possible to change inside OBS, how can I change, and which files should be changed, located in OBS installation folder C:\Program Files\obs-studio\bin\64bit, since OBS is open source?

Regarding the recording tab: in the section "encoder settings", after the "rate control", there is an input box labelled "bitrate". This bitrate refers to both video and audio bitrate or just video bitrate?

Thank you
 

Suslik V

Active Member
...recording tab: in the section "encoder settings", after the "rate control", there is an input box labelled "bitrate". This bitrate refers to both video and audio bitrate or just video bitrate?
only video.
Encoder Settings group box are for the encoder that was selected few strings above - at the Recording Settings group box, at option: Encoder.

If you think that UI in this part requires some improvements then try to write about your new ideas in: https://ideas.obsproject.com/
(I did it in p.4 of the https://github.com/obsproject/obs-studio/pull/5174#issuecomment-1163443509)

Regarding the audio tab: the maximum audio bitrate for each audio track is 320 Kbps. How can I increase the audio bitrate for each audio track to 705.6 kbps?
Only by using Output Mode: Advanced, Type: Custom Output (FFmpeg)
 

sta

New Member
Only by using Output Mode: Advanced, Type: Custom Output (FFmpeg)
Hello,
Thank you for your reply.
I have used Output Mode: Advanced, Type: Custom Output (FFmpeg), but is not possible to record videos and split them by time, only in standard output.
Can you please specify which file(s) should I change in the OBS installation folder C:\Program Files\obs-studio\bin\64bit, to add or increase the audio track from 320 kpbs to 705.6kbps?

Thank you for your patience
 

Suslik V

Active Member
Can you please specify which file(s) should I change in the OBS installation folder... to add or increase the audio track from 320 kpbs to 705.6kbps?
There are no simple workarounds. You need to modify source code of OBS and build your own application for your special needs.

Example (one of the places in the code where the limit for AAC is set):

Or, you already know it: "...by using Output Mode: Advanced, Type: Custom Output (FFmpeg)".
 
Top