Couple of audio questions HOS

Musicvid wrote on 1/31/2019, 6:48 PM

1. Can I pass through or fast frame copy existing AC3 5.1 using Render Plus?

2. If I download one AAC compressor, should it be FDK or Nero?

Comments

wwaag wrote on 1/31/2019, 8:04 PM

1. For 5.1, there are 2 options. From Vegas, you can render 5.1 directly using Dolby Pro for early versions or Dolby Studio in the Magix versions. The rendered ac3 file will be added to the video during render. Or, you can render a 6 channel wave file and encode to 5.1 using FFmpeg. If the 5.1 file already exists, it would be easy to simply remux using an FFmpeg command line. Simply render the video without audio and then add the ac3 file afterward.

2. Of the two, Fraunhofer FDK is considered the best, although finding an executable can be difficult. Licensing prohibits its distribution with HOS even though the "hooks" are there for both FDK and Nero. Of the two, I'd search for FDK.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 1/31/2019, 11:40 PM

Found a couple of fdk autobuild packages for Win.

If I have to re-encode audio, I just as well keep it playable and good quality. PCM 6ch exceeds size limit for my 3 hr. shows.

wwaag wrote on 2/1/2019, 11:26 AM

@Musicvid

During the night, I got to thinking that it would be pretty easy to add an option to pass-thru an existing audio file. Rather than mux a file rendered from inside of Vegas that is created at runtime, simply load a pre-rendered file. That way you could render your audio using Dolby Pro in V13 and then add it during video rendering inside of V14 or whatever. That would also enable one to easily add audio delay corrections if necessary.

Just looked at the R+ Encoder Settings dialog, and there is room for such an addition (Appearance is everything-Ha!). Let me know if you're interested in testing a pre-release version.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 2/1/2019, 1:48 PM

Of course. I love this stuff.

Musicvid wrote on 2/22/2019, 11:05 AM

@wwaag

I'm not looking in the right place for placing fdkaac.exe in a Tools folder as in the tooltip.

Is that folder something I need to create myself?

wwaag wrote on 2/22/2019, 11:23 AM

Simply paste here. "C:\Program Files\HappyOtterScripts". Perhaps I need to change that tooltip to make it clearer.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 2/22/2019, 11:41 AM

Oh, that was easy, thanks, back soon with results.

Musicvid wrote on 2/22/2019, 2:03 PM

@wwaag @rraud

Ok, I have successfully installed and tested fdkaac in Render +

Notes:

  • f****c.exe v2.0 64 bit here. This will save Wayne any concerns over discussing such things on his own thread tooics.
  • Output is 48/16 LC stereo in vbr or cbr, which is perfect for my use. It should also be perfect for streaming and youtube, better than anything from Handbrake currently..
  •  
  • Bitrate is 5 levels in vbr, higher is better. But at Level 5, bitrate is 700kbps, which is exactly Overkill x 2. A list of fixed cbr rates including 320, which is merely healthy hyperparanoia..
  • Place your compiled fdkaac.exe in  "C:\Program Files\HappyOtterScripts".

This may become the quickest option available for converting personal DVD rips containing AC3 audio to mp4/AAC for streaming or media servers. [Edited /]

Not to worry, a face-off with Handbrake is in the works

Note that Wayne's scripts do not decrypt rips from store-bought dvds, There are tools for that, and in deference to my own previous statements, I have removed the name of one. [Edited /]

wwaag wrote on 2/22/2019, 2:51 PM

@Musicvid

"Surround encoder is not enabled in R+."

Yes, it is. For 5.1, a 6 channel wave file is rendered and then encoded using fdk_aac. You can also verify if you look at "C:\ProgramData\HappyOtterScripts\Magix Vegas Pro\RenderPlus\LastRenderLogFile.txt" which is the FFmpeg log file.

Here's the timeline:

HOS Render Settings:

MediaInfo:

BTW, other audio bit rate options can be easily added.

Last changed by wwaag on 2/22/2019, 2:52 PM, changed a total of 1 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 2/22/2019, 3:39 PM

I will test using a different .vob siurce be right back.

Musicvid wrote on 2/22/2019, 4:04 PM

It's the way Vegas imports the ac3 audio. Got a couple of good paths to test through Import Assist.

Musicvid wrote on 2/22/2019, 5:03 PM

The quick trick appears to be to import the Video_TS folder using the Gary James method.

Ran into a roadblock in Import Assist, but will keep digging.

Musicvid wrote on 2/22/2019, 6:25 PM

Current roadblock is the .wav intermediate which would be too large.

Can this be changed to W64 or FLAC?

wwaag wrote on 2/22/2019, 6:58 PM

R+ supports both W64 and FLAC. W64 has 5.1 templates and you can render from Vegas successfully. However, fdk doesn't support w64 inputs. Flac doesn't have 5.1 templates and I have no idea whether fdk will read such files anyway.

Backing up a bit, what is the problem with how Vegas imports the ac3 audio?

In the event you haven't seen it, if you check "Select Vegas Audio Template" and click the blue gears icon, you'll get this dialog where you can select Vegas templates.

I might add that this whole area is pretty buggy. I hadn't tried a w64 render until today--your version will probably crash. It should, however, work if there is no video to be rendered--just audio.

Last changed by wwaag on 2/22/2019, 7:00 PM, changed a total of 2 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 2/22/2019, 8:02 PM

Yes, I'm ahead of myself.

Source: Unencrypted DVD video_ts folder with 5.1 ac3, 2.5 hours

Goal: x264 mp4 with fdk AAC 5.1

Import: Gary James method, giving us a properly muxed video track with discrete 5.1 audio tracks in 5.1 project.

Problem: render+ internal render to .wav fails to file size limitation. Aborts gracefully.

Problem: import assist does not reveal fdk-AAC encoder.

Problem: timeline render to w64 6ch discrete fails as external audio Import in render+

Problem: import assist will not accept .IFO (GJ method)

Problem: add pcm is a nonstarter.

I think if internal conversion was to W64 instead of WAV (or to 1.98GB chunks), it might work. The W64 rendered from timeline is 5.4 GB.

I'm just not familiar enough with the interface to notice the obvious yet

wwaag wrote on 2/22/2019, 8:28 PM

Like I said before, fdk does NOT support w64--it give the error message "Unsupported Input File". It must be a wav input. Can Vegas render out multiple wav files to overcome the 2GB limitation? Presumably not, and that is the problem.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 2/22/2019, 8:49 PM

I think it will, if we render to avi1.0 and render + accepts that folder as Source.

However that would make it slower than Handbrake, I fear. An in-house alternative in Vegas would be quite a convenience to people with DVD collections. I hit a wall importing MKV rips as well, but haven't focused on it as much.

Will revisit tomorrow with fresh brain.

wwaag wrote on 2/22/2019, 9:03 PM

@Musicvid

I think I have the solution or at least something for you to try. Divide your 2.5 hr program into 2 regions--preferably finding a break point where there is silence. Then do a regions render with the option ticked to join. Each region will be rendered and then joined afterward. I tried it on a short sample and it works OK with the fdk encoder. During my initial testing, the joining was frame accurate.

I have also written an mp4 file joiner app that gives the user a number of different joining options.

 

Last changed by wwaag on 2/22/2019, 9:04 PM, changed a total of 1 times.

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 2/22/2019, 9:23 PM

Will try first tomorrow, thanks!

rraud wrote on 2/23/2019, 8:57 AM

Thanks MV, I had downloaded the fdkaac_autobuild-master from Github but can't find the fdkaac.exe anywhere or a way to install it. I added the Nero AAC.exe encoder file a week or so ago and that works in HOS Render +

Musicvid wrote on 2/23/2019, 9:34 AM

@rraud

f****c.exe 64 bit

Musicvid wrote on 2/23/2019, 10:10 AM

Looks like a success with the regions and join method. Now rendering region 2 of 3. Times actually look comparable to Handbrake.

[Update] the joiner got stuck at 250Mb. Starting again, maybe pebcak.

rraud wrote on 2/23/2019, 6:52 PM

@rraud

f****c.exe 64 bit


Thanks again MV !

Musicvid wrote on 2/23/2019, 7:41 PM

@wwaag

I can report considerable success with the regions render, and noticed some things.

The "joining in progress" does not work, but stalls out with ffmpeg running on for hours. VideoRedo does it in 2 min. from the .ts files. I will try your mp4 joiner next.

Also, front and rear 5.1 channels appear to be swapped front to back. I'll check it in the project.

When you see this in MediaInfo from any x264, it is not variable framerate:

Frame rate mode :Variable

Frame rate :23.976 fps

Minimum frame rate :23.974 fps

Maximum frame rate :23.981 fps

It is the way MediaInfo treats irrational numbers, which [(24(1000/1001)) / 90000] is. Merely jitter from 90khz clock in x264. It is constant bitrate, 23.976 as far as the world is concerned.

General

Complete name :C:\Users\Administrator\Desktop\HOBBITVRD.mp4

Format :MPEG-4

Format profile :Base Media

Codec ID :isom

File size :1.58 GiB

Duration :2h 49mn

Overall bit rate :1 335 Kbps

Writing application :VideoReDo (Lavf56.25.101)

 

Video

ID :1

Format :AVC

Format/Info :Advanced Video Codec

Format profile :High@L3

Format settings, CABAC :Yes

Format settings, ReFrames :4 frames

Format settings, GOP :M=2, N=15

Codec ID :avc1

Codec ID/Info :Advanced Video Coding

Duration :2h 49mn

Bit rate :1 027 Kbps

Width :720 pixels

Height :480 pixels

Display aspect ratio :3:2

Frame rate mode :Variable

Frame rate :23.976 fps

Minimum frame rate :23.974 fps

Maximum frame rate :23.981 fps

Color space :YUV

Chroma subsampling :4:2:0

Bit depth :8 bits

Scan type :Progressive

Bits/(Pixel*Frame) :0.124

Stream size :1.21 GiB (77%)

 

Audio

ID :2

Format :AAC

Format/Info :Advanced Audio Codec

Format profile :LC

Codec ID :40

Duration :2h 49mn

Duration_LastFrame :-21ms

Bit rate mode :Constant

Bit rate :301 Kbps

Channel(s) :2 channels

Channel(s)_Original :6 channels

Channel positions :Front: L C R, Side: L R, LFE

Sampling rate :48.0 KHz

Compression mode :Lossy

Stream size :364 MiB (23%)