Screeching sound in Vegas Pro in imported video

kjx365 wrote on 8/14/2022, 6:39 PM

I'm running Vegas Pro 19 on Windows 11. When I import videos captured by a BlackVue 900X Plus dashcam (4K, 30 fps), the accompanying audio track is a painful screech inside Vegas Pro.

This has never been a problem in any other application capable of playing or editing videos on the same PC. I've tried the Ctrl+Shift method to reset Vegas Pro and had also previously tried various 'remedies' for this issue posted online to no avail.

A video for example is exactly 60 seconds long but Vegas Pro appears to think the accompanying audio track is 5 seconds long (and it's then silence afterwards while the video continues playing). When I right-click and check Properties > Media on the audio track it says:

- Stream: Audio 1

- Format: Unknown

- Attributes: 11,025 Hz, Mono, 00:01:00;02

The video format is AVC.

VLC Media Player detects the audio as being MP3, Mono, 11025 Hz, 32 bits per sample, 64 kb /s.

 

Comments

fr0sty wrote on 8/14/2022, 11:02 PM

that's some incredibly low quality audio... if no other workaround is available, try this:

Open VLC media player.

From the toolbar select Media, then Convert/Save.

Next in the File Selection box click Add and select your MP4 file.

Then click Convert/Save.

Next from the Profile dropdown box select Audio - MP3

Finally, in the destination box select Browse and then the location you want the MP3 file to get saved. Don't forget to delete the .mp4 file extension from the end of the file name, before saving.

Click Start.

Then import the resulting file it creates into VEGAS and see if that audio is still messed up. If not, replace the original video's audio with that.

rraud wrote on 8/15/2022, 9:33 AM

The audio attributes are a bit low as @fr0sty stated, but screeching type sounds is usually not associated with low bit and sample rates. That said, many folks have experienced screeching sounds in Vegas and other apps with audio when Sound Forge Audio Studio is installed. Which by default installed the Magix 2016 Low Latency driver, so that may be suspect. See this thread

rraud, Magix forums moderator

kjx365 wrote on 8/15/2022, 9:52 PM

So, converting just the audio out of the video in VLC first (exactly as @fr0sty stated) and then adding it as a separate track in Vegas Pro works just fine. It's not clear why that works, but at least Vegas Pro is not a lost cause for me in this use case. Realistically though, it's not really scalable given how dashcams record videos in 1-minute files and there are a ton of them that need to be stitched, spliced and remixed together to get a desired output.

I definitely do not (and never had) Sound Forge Audio Studio installed. Regardless, I did try looking for the regkey - there was an empty ASIO key (no Magix Low Latency driver entry inside it), and I deleted that any way. I also did the Ctrl+Shift reset with cached file deletion for good measure. Still no luck in this method.

I'm fairly new to Vegas Pro but I'd assume there's some way to get software logs (for customer support) to determine what decoded the audio on my system and with a sample video, to reproduce the issue at Magix's end if needed, determine where either the bug (in Vegas Pro) or misconfiguration (on my system?) is. From a content creation perspective, my system's bog standard aside from Vegas Pro so I'd not really expect there's much there unless professionals who use it routinely install codec packs and such (which I don't have).

fr0sty wrote on 8/15/2022, 10:31 PM

Something with the original format's audio isn't decoding right, VLC converts that audio to mp3, which is why vegas was able to open that. the easiest way to reproduce the bug for the developers would be a sample clip uploaded to google drive or dropbox.

kjx365 wrote on 8/15/2022, 11:01 PM

I'll open a ticket with support - but for easy reference if anyone wants to see if they have better luck, here's a sample file for download: https://1drv.ms/v/s!AoDYmmKzs5h2hMgXu1z-bZ8L-6RXLg?e=U4F4mx

john_dennis wrote on 8/16/2022, 12:19 AM

@kjx365

This is the type of non-sense that programs like VideoReDo TV Suite do so well.

Former user wrote on 8/16/2022, 1:04 AM

The problem is the audio, so you just need to re-encode the audio, and copy the video. you can do that with free Shutter Encoder. It is a batch transcoder so it's possible to load all your clips and press start with the following setting

EricLNZ wrote on 8/16/2022, 4:48 AM

Of interest here's the MediaInfo:

General
Complete name                  : D:\Sundry Folders\Downloads\20220728_090131_NF.mp4
Format                         : MPEG-4
Format profile                 : Base Media / Version 2
Codec ID                       : mp42 (mp42/mp42)
File size                      : 185 MiB
Duration                       : 1 min 0 s
Overall bit rate               : 25.8 Mb/s
Encoded date                   : UTC 2022-07-28 16:02:31
Tagged date                    : UTC 2022-07-28 16:02:31

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L5.1
Format settings                : CABAC / 1 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 1 frame
Format settings, GOP           : M=1, N=15
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 1 min 0 s
Source duration                : 1 min 0 s
Bit rate                       : 24.9 Mb/s
Width                          : 3 840 pixels
Height                         : 2 160 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Variable
Frame rate                     : 29.970 (29970/1000) FPS
Minimum frame rate             : 28.571 FPS
Maximum frame rate             : 30.303 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.100
Stream size                    : 178 MiB (96%)
Source stream size             : 178 MiB (96%)
Language                       : English
Encoded date                   : UTC 2022-07-28 16:02:31
Tagged date                    : UTC 2022-07-28 16:02:31
Color range                    : Full
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709
mdhd_Duration                  : 60035
Codec configuration box        : avcC

Audio
ID                             : 2
Format                         : MPEG Audio
Format version                 : Version 2.5
Format profile                 : Layer 3
Codec ID                       : .mp3
Duration                       : 59 s 976 ms
Source duration                : 1 min 0 s
Bit rate mode                  : Constant
Bit rate                       : 64.0 kb/s
Channel(s)                     : 1 channel
Channel layout                 : C
Sampling rate                  : 11.025 kHz
Compression mode               : Lossy
Stream size                    : 469 KiB (0%)
Source stream size             : 469 KiB (0%)
Writing library                : LAME3.100
Language                       : English
Encoded date                   : UTC 2022-07-28 16:02:31
Tagged date                    : UTC 2022-07-28 16:02:31
mdhd_Duration                  : 59976

 

rraud wrote on 8/16/2022, 9:29 AM

Have you tried resetting VP and clearing the cache. This has been known to resolve MP3 audio issues in Vegas and Sound Forge in prior versions
Otherwise, I do not see anything abnormal in the audio attributes and I have never experienced problems with LAME encoded MP3.

john_dennis wrote on 8/16/2022, 11:59 AM

@rraud

There may not be anything inherently wrong with .mp3, but this conglomeration in an mp4 wrapper throws the following error when FFMPEG attempts to extract the audio from the wrapper.

Executive Summary

  Stream #0:1[0x2](eng): Audio: mp3 (.mp3 / 0x33706D2E), 11025 Hz, mono, fltp, 64 kb/s (default)
    Metadata:
      creation_time   : 2022-07-28T16:02:31.000000Z
      handler_name    : PittaSoft Sound Media Handler
      vendor_id       : [0][0][0][0]
[mp4 @ 000002df403bec00] track 0: muxing mp3 at 11025hz is not standard, to mux anyway set strict to -1

TL:DR

Command: -hwaccels"

cuda
dxva2
qsv
d3d11va

Command: -threads 0 -i "C:\Users\John\Downloads\20220728_090131_NF.mp4" -vn -sn -c:a copy -map a:1? -y "C:\Users\John\Downloads\20220728_090131_NF_Audio_2.mp4"

ffmpeg version N-107068-gab544cafd8 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration:  --disable-static --enable-shared --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --disable-autodetect --disable-debug --disable-w32threads --enable-sdl2 --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-amf --enable-schannel --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-libs=-liconv --shlibdir=/local64/bin-video
  libavutil      57. 26.100 / 57. 26.100
  libavcodec     59. 33.100 / 59. 33.100
  libavformat    59. 24.100 / 59. 24.100
  libavdevice    59.  6.100 / 59.  6.100
  libavfilter     8. 40.100 /  8. 40.100
  libswscale      6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc    56.  5.100 / 56.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002df41b98440] Found duplicated MOOV Atom. Skipped it
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\John\Downloads\20220728_090131_NF.mp4':
  Metadata:
    creation_time   : 2022-07-28T16:02:31.000000Z
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42mp42
  Duration: 00:01:00.04, start: 0.000000, bitrate: 25796 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 3840x2160, 24876 kb/s, 29.97 fps, 29.97 tbr, 1k tbn (default)
    Metadata:
      creation_time   : 2022-07-28T16:02:31.000000Z
      handler_name    : PittaSoft Video Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: mp3 (.mp3 / 0x33706D2E), 11025 Hz, mono, fltp, 64 kb/s (default)
    Metadata:
      creation_time   : 2022-07-28T16:02:31.000000Z
      handler_name    : PittaSoft Sound Media Handler
      vendor_id       : [0][0][0][0]
[mp4 @ 000002df403bec00] track 0: muxing mp3 at 11025hz is not standard, to mux anyway set strict to -1
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 -- 
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
    Last message repeated 1 times

Command: -threads 0 -i "C:\Users\John\Downloads\20220728_090131_NF.mp4" -vn -sn -c:a copy -map a:0? -y "C:\Users\John\Downloads\20220728_090131_NF_Audio_1.mp4"

ffmpeg version N-107068-gab544cafd8 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration:  --disable-static --enable-shared --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --disable-autodetect --disable-debug --disable-w32threads --enable-sdl2 --enable-gpl --enable-version3 --enable-fontconfig --enable-iconv --enable-libass --enable-libdav1d --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libxvid --enable-libgsm --enable-libsvtav1 --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-amf --enable-schannel --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-libs=-liconv --shlibdir=/local64/bin-video
  libavutil      57. 26.100 / 57. 26.100
  libavcodec     59. 33.100 / 59. 33.100
  libavformat    59. 24.100 / 59. 24.100
  libavdevice    59.  6.100 / 59.  6.100
  libavfilter     8. 40.100 /  8. 40.100
  libswscale      6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc    56.  5.100 / 56.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000027662038440] Found duplicated MOOV Atom. Skipped it
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\John\Downloads\20220728_090131_NF.mp4':
  Metadata:
    creation_time   : 2022-07-28T16:02:31.000000Z
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42mp42
  Duration: 00:01:00.04, start: 0.000000, bitrate: 25796 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 3840x2160, 24876 kb/s, 29.97 fps, 29.97 tbr, 1k tbn (default)
    Metadata:
      creation_time   : 2022-07-28T16:02:31.000000Z
      handler_name    : PittaSoft Video Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: mp3 (.mp3 / 0x33706D2E), 11025 Hz, mono, fltp, 64 kb/s (default)
    Metadata:
      creation_time   : 2022-07-28T16:02:31.000000Z
      handler_name    : PittaSoft Sound Media Handler
      vendor_id       : [0][0][0][0]
[mp4 @ 000002766085ec00] track 0: muxing mp3 at 11025hz is not standard, to mux anyway set strict to -1
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 -- 
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
    Last message repeated 1 times

 

kjx365 wrote on 8/16/2022, 10:41 PM

Have you tried resetting VP and clearing the cache. This has been known to resolve MP3 audio issues in Vegas and Sound Forge in prior versions
Otherwise, I do not see anything abnormal in the audio attributes and I have never experienced problems with LAME encoded MP3.

Yes, I have done the Ctrl+Shift reset several times. At least with the sample video linked earlier ( https://1drv.ms/v/s!AoDYmmKzs5h2hMgXu1z-bZ8L-6RXLg?e=U4F4mx ), at least @john_dennis has reproduced it at his end (evident in his embedded video in this thread). It's something specific to Vegas Pro and his last analysis of the issue may help with the support ticket I've opened as of yesterday. The video(s) work fine everywhere else including Windows Media Player, VLC and even the built-in Windows 11 Video Editor app.

Former user wrote on 8/17/2022, 12:00 AM

@kjx365 Resolve plays a small amount of audio then nothing, like Vegas, but no horrendous noise. Premiere Pro and Adobe Audition doesn't load the audio. Magix movie editor Pro does not load the file at all. Windows video editor loads video and audio fine.

None of the paid software plays audio correctly, only the free one. If there's an option to change the audio settings on the dashcam, that would be easiest. Your current audio setting is unusually bad (for 2022)

john_dennis wrote on 8/17/2022, 9:55 AM

@kjx365

Don't mistake my curiosity for advocacy. I wouldn't have the Vegas Pro development team spend 30 seconds working on non-standard audio from security (and security-like) cameras. There are too many new cameras producing 10 bit 422 video and LPCM audio that should be handled first.

As @Former user suggested, batch rewrapping all your media from this camera in the free Shutter Encoder is a very quick and easy solution for you if you like to use the camera.

TANSTAAFL

Shutter Encoder is not free for everybody. I threw some money at the author.

kjx365 wrote on 8/17/2022, 8:36 PM

@john_dennis I understand.. The information both you and @Former user shared about Shutter Encoder is very helpful and is a scalable solution to this problem, and also allows for Vegas Pro to be used for my needs without too much pain. Thank you!

To a different question on options on the device producing audio - there are no other options for audio unfortunately.