Can't adjust audio level, recode not happening

Fentropic

Member
Trying to increase the volume on this. Simple cut at beginning and end, bring up profile options and adjust gain. Says audio recode required but when I save it just does a fast frame copy.
Source file info
Code:
 File:                                     Name : Sea Shadow.ts
                                           Size : 0.721 GB
                                       Duration : 00:31:17.84
                                       Mux type : TS Stream
                                    TS mux rate : 4.291 Mbps
 Video:                                Encoding : H.264
                                  VideoStreamID : x1E1
                                     Frame rate : 29.97 fps
                                Frame rate flag : Constant
                                  Encoding size : 1920 x 1080
                                   Aspect ratio : 16:9
                                Header bit rate : 4.000 Mbps
                                     VBV buffer : 976 KBytes
                                        Profile : High/4.0
                                    Progressive :  Progressive
                                         Chroma : 4:2:0
                                   Entropy mode : CABAC
                                       Bit rate : 2.951 Mbps
                                     Captioning : EIA 608/708
 Audio Stream: 1 (Primary)                Codec : AAC
                                         Format : ADTS
                                       Channels : 2.0
                                       Language : eng
                                            PID : x1EC
                                  PES Stream Id : xC1
                                  Sampling rate : 48000
                                    Sample size : 16 bits
Output profile
3131
 

jmc

Active member
I do "transitions" with audio and I do get audio recode while it says "Fast Frame copy".
Check your CPU use. I think mine uses 10% +/- or something.
 

Dan203

Senior Developer
Staff member
It's probably just a messaging thing like jmc suggested. The internal processing code uses the exact same same function as that icon does to decide if the audio needs recoding, so it's pretty much impossible that it would show the icon but not recode. Have you actually compared the original to the output file to see if the audio is actually any louder?
 

Fentropic

Member
Yes, that's the problem. It's not increasing the audio gain. I set it to double (6.0 db).
I first tried using the menu option Tools -> Adjust Audio Output Volume 6.0db (2.0x), saved the project and then saved the video. When that didn't work I modified the output profile.
I Save Video using the default Profile Transport Stream, Codec=Match Source, Container=Transport Stream, Output Mode=Intelligent and I select Profile Options and change the Audio like I showed.

Now that I walked through the steps again with the same file, it appears to be working?

How can I tell by viewing the log if it adjusted the audio gain. If it's in there it's not obvious?
 

Dan203

Senior Developer
Staff member
Honestly I don't think it's possible for it not to work. As I said above the exact same function that sets the icon in the save dialog is used by the internal code to setup the output thread. So it's really not possible for the icon to show it's being recoded and then it not get recoded. Now there could be some sort of bug in the level adjustment code that's causing it to not be increased for some reason, but if you see the icon then the audio will be recoded.

Now if there is a bug in the gain adjustment we're going to need some steps that can reproduce it. I tried it here using a file with the same specs as those in your original post and it worked fine for me. So I'd need some way to consistently reproduce the issue before I can fix it.
 

Fentropic

Member
Honestly I don't think it's possible for it not to work. As I said above the exact same function that sets the icon in the save dialog is used by the internal code to setup the output thread. So it's really not possible for the icon to show it's being recoded and then it not get recoded. Now there could be some sort of bug in the level adjustment code that's causing it to not be increased for some reason, but if you see the icon then the audio will be recoded.

Now if there is a bug in the gain adjustment we're going to need some steps that can reproduce it. I tried it here using a file with the same specs as those in your original post and it worked fine for me. So I'd need some way to consistently reproduce the issue before I can fix it.
Thanks for the reply.

It's driving me crazy because I can't repro it. Which is a good thing!
If & when it happens again, I'll post here.

Could be the original recording I reported on had a volume so low that doubling it wasn't perceivable.
Increasing the gain using the menu option Tools -> Adjust Audio Output Volume 6.0db (2.0x) and saving the project, then selecting Profile Options and adjusting the gain to 6.0db there maybe quadrupled the volume?
I don't know, like I said it's driving me crazy trying to reproduce it.

Is there anything in the log that says it adjusted audio gain? If so, at what verbosity level logging?
 

Dan203

Senior Developer
Staff member
Thanks for the reply.

It's driving me crazy because I can't repro it. Which is a good thing!
If & when it happens again, I'll post here.

Could be the original recording I reported on had a volume so low that doubling it wasn't perceivable.
Increasing the gain using the menu option Tools -> Adjust Audio Output Volume 6.0db (2.0x) and saving the project, then selecting Profile Options and adjusting the gain to 6.0db there maybe quadrupled the volume?
I don't know, like I said it's driving me crazy trying to reproduce it.

Is there anything in the log that says it adjusted audio gain? If so, at what verbosity level logging?
Actually that scenario you posted with adjusting the gain in the profile and in the audio dialog would have quadrupled the volume. The UI volume adjustment is just added to whatever is already in the profile.

I don't know if there is any useful information in the log. Looking at the logging calls in the gain adjustment module I don't think there is. It's mainly just error checking stuff.
 
Top Bottom