Corrupted AVI files

max-a1817 wrote on 5/4/2024, 8:02 AM

Hello there! I have a problem with AVI files captured via OBS when I'm working with it in Vegas. But when I capture video via Fraps, it looks fine. There are 2 problems actually:

1. Lagging and freezing when you trying to play different moments at time line.

2. Sound track in Vegas is larger than video track, and it always goes behind the video.

I made a video to describe my words. It actually starts at 1:08 and happens several times.

Comments

set wrote on 5/4/2024, 8:19 AM

Provide us the MediaInfo data about this Fraps-captured video.

https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

 

Setiawan Kartawidjaja
Bandung, West Java, Indonesia (UTC+7 Time Area)

Personal FB | Personal IG | Personal YT Channel
Chungs Video FB | Chungs Video IG | Chungs Video YT Channel
Personal Portfolios YouTube Playlist
Pond5 page: My Stock Footage of Bandung city

 

System 5-2021:
Processor: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
Video Card1: Intel UHD Graphics 630 (Driver 31.0.101.2127 (Feb 1 2024 Release date))
Video Card2: NVIDIA GeForce RTX 3060 Ti 8GB GDDR6 (Driver Version 551.23 Studio Driver (Jan 24 2024 Release Date))
RAM: 32.0 GB
OS: Windows 10 Pro Version 22H2 OS Build 19045.3693
Drive OS: SSD 240GB
Drive Working: NVMe 1TB
Drive Storage: 4TB+2TB

 

System 2-2018:
ASUS ROG Strix Hero II GL504GM Gaming Laptop
Processor: Intel(R) Core(TM) i7 8750H CPU @2.20GHz 2.21 GHz
Video Card 1: Intel(R) UHD Graphics 630 (Driver 31.0.101.2111)
Video Card 2: NVIDIA GeForce GTX 1060 6GB GDDR5 VRAM (Driver Version 537.58)
RAM: 16GB
OS: Win11 Home 64-bit Version 22H2 OS Build 22621.2428
Storage: M.2 NVMe PCIe 256GB SSD & 2.5" 5400rpm 1TB SSHD

 

* I don't work for VEGAS Creative Software Team. I'm just Voluntary Moderator in this forum.

Dexcon wrote on 5/4/2024, 8:26 AM

Though the OP didn't mention it, it looks like from the uploaded video that Vegas Pro 13 is being used. Rather important because back in VP13 days there was no File I/O 'Enable legacy AVC decoding' option.

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

set wrote on 5/4/2024, 8:37 AM

True. That's why MediaInfo data of this Fraps-captured video can help analyze the issue. In other case, I just checked the Fraps site, and the last update release was 2013.

Setiawan Kartawidjaja
Bandung, West Java, Indonesia (UTC+7 Time Area)

Personal FB | Personal IG | Personal YT Channel
Chungs Video FB | Chungs Video IG | Chungs Video YT Channel
Personal Portfolios YouTube Playlist
Pond5 page: My Stock Footage of Bandung city

 

System 5-2021:
Processor: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
Video Card1: Intel UHD Graphics 630 (Driver 31.0.101.2127 (Feb 1 2024 Release date))
Video Card2: NVIDIA GeForce RTX 3060 Ti 8GB GDDR6 (Driver Version 551.23 Studio Driver (Jan 24 2024 Release Date))
RAM: 32.0 GB
OS: Windows 10 Pro Version 22H2 OS Build 19045.3693
Drive OS: SSD 240GB
Drive Working: NVMe 1TB
Drive Storage: 4TB+2TB

 

System 2-2018:
ASUS ROG Strix Hero II GL504GM Gaming Laptop
Processor: Intel(R) Core(TM) i7 8750H CPU @2.20GHz 2.21 GHz
Video Card 1: Intel(R) UHD Graphics 630 (Driver 31.0.101.2111)
Video Card 2: NVIDIA GeForce GTX 1060 6GB GDDR5 VRAM (Driver Version 537.58)
RAM: 16GB
OS: Win11 Home 64-bit Version 22H2 OS Build 22621.2428
Storage: M.2 NVMe PCIe 256GB SSD & 2.5" 5400rpm 1TB SSHD

 

* I don't work for VEGAS Creative Software Team. I'm just Voluntary Moderator in this forum.

max-a1817 wrote on 5/4/2024, 8:51 AM

There are pretty the same issues in version 21, tested yesterday.

Though the OP didn't mention it, it looks like from the uploaded video that Vegas Pro 13 is being used. Rather important because back in VP13 days there was no File I/O 'Enable legacy AVC decoding' option.

 

max-a1817 wrote on 5/4/2024, 9:00 AM

Provide us the MediaInfo data about this Fraps-captured video.

https://www.vegascreativesoftware.info/us/forum/faq-how-to-post-mediainfo-and-vegas-pro-file-properties--104561/

 

I just did another 1min video via Fraps at the same game. Here is the comparison of OBS and Fraps captured videos.

set wrote on 5/4/2024, 9:34 AM

I'm not familiar with the codecs for AVI, especially from Fraps, but I think it is the specific additional codec 'fps1' added during installation?

How about the OBS alternative recording? is it stable?

Another I notice is Variable Bit Rate, and quite confusing number: Frame Rate 120 but minimum 24 and maximum 30?

Many recommendations around this is to rewrap it using Handbrake or Shutter Encoder, at least stabilizing the frame rate to become constant. Could be this issue that makes the screen recording read in flicker.

Last changed by set on 5/4/2024, 9:37 AM, changed a total of 2 times.

Setiawan Kartawidjaja
Bandung, West Java, Indonesia (UTC+7 Time Area)

Personal FB | Personal IG | Personal YT Channel
Chungs Video FB | Chungs Video IG | Chungs Video YT Channel
Personal Portfolios YouTube Playlist
Pond5 page: My Stock Footage of Bandung city

 

System 5-2021:
Processor: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
Video Card1: Intel UHD Graphics 630 (Driver 31.0.101.2127 (Feb 1 2024 Release date))
Video Card2: NVIDIA GeForce RTX 3060 Ti 8GB GDDR6 (Driver Version 551.23 Studio Driver (Jan 24 2024 Release Date))
RAM: 32.0 GB
OS: Windows 10 Pro Version 22H2 OS Build 19045.3693
Drive OS: SSD 240GB
Drive Working: NVMe 1TB
Drive Storage: 4TB+2TB

 

System 2-2018:
ASUS ROG Strix Hero II GL504GM Gaming Laptop
Processor: Intel(R) Core(TM) i7 8750H CPU @2.20GHz 2.21 GHz
Video Card 1: Intel(R) UHD Graphics 630 (Driver 31.0.101.2111)
Video Card 2: NVIDIA GeForce GTX 1060 6GB GDDR5 VRAM (Driver Version 537.58)
RAM: 16GB
OS: Win11 Home 64-bit Version 22H2 OS Build 22621.2428
Storage: M.2 NVMe PCIe 256GB SSD & 2.5" 5400rpm 1TB SSHD

 

* I don't work for VEGAS Creative Software Team. I'm just Voluntary Moderator in this forum.

max-a1817 wrote on 5/4/2024, 9:45 AM

I'm not familiar with the codecs for AVI, especially from Fraps, but I think it is the specific additional codec 'fps1' added during installation?

How about the OBS alternative recording? is it stable?

Another I notice is Variable Bit Rate, and quite confusing number: Frame Rate 120 but minimum 24 and maximum 30?

Many recommendations around this is to rewrap it using Handbrake or Shutter Encoder, at least stabilizing the frame rate to become constant. Could be this issue that makes the screen recording read in flicker.

Due to Fraps site, indeed, there is the specific additional codec 'fps1' added during installation. But you don't see it actually.

I did record in mp4, it works totally fine. Just have problems when recording in AVI.

About bitrate it's the same thing on both video, and the only one is lagging (OBS one), the 2nd one (fraps) is totally fine.

gorGaram wrote on 5/4/2024, 10:15 AM

Extract audio and video from the container and add them separately to the project. As an option.

CPU: AMD Ryzen 7 3700X

VideoCard: NVIDIA GeForce RTX 4060 Ti 16Gb

Memory: 128Gb

OS: Windows 10 (1809)

Drive C: (SSD-500Gb) - ONLY system

Drive D: (HDD 4Tb) - ProrgamFiles and Temp
Drive E: (HDD 4Tb) - Work drive

Vegas Pro: 20.411, 21.315, 22.122

mark-y wrote on 5/4/2024, 11:04 AM

The mediainfo on the left is codec salad.

  • AVI wrapper
  • .h264 AVC video
  • Dolby AC-3 audio
  • Variable Frame Rate
  • Level 6.1 (?!)

It's a hobbyist creation.

The components are mutually incompatible by any standard I am aware of. No, Vegas won't import it.

You "might" try Shutter Encoder or ffmpeg command line to unbake this one; otherwise, stick with mainstream formats going forward.

max-a1817 wrote on 5/4/2024, 3:20 PM

The mediainfo on the left is codec salad.

  • AVI wrapper
  • .h264 AVC video
  • Dolby AC-3 audio
  • Variable Frame Rate
  • Level 6.1 (?!)

It's a hobbyist creation.

The components are mutually incompatible by any standard I am aware of. No, Vegas won't import it.

You "might" try Shutter Encoder or ffmpeg command line to unbake this one; otherwise, stick with mainstream formats going forward.

Why do OBS doing this salad then :c Maybe there is something wrong with settings?

mark-y wrote on 5/4/2024, 5:17 PM

@max-a1817

Why do OBS doing this salad then :c Maybe there is something wrong with settings?

That has to be the best question asked on the forum this year. Welcome to the discussions.

Without too much backstory, there are Licensed and Open Source Encoders.

OBS uses open source code and encoders. By the time you jumble all the possible flavors of free codecs and various containers, there is only a small chance of actually getting something "right" for Vegas, which historically uses licensed commercial encoders.

So the outfit that licenses the codecs to commercial users, called MPEG-LA, and the ones that issues various open source "licenses" are often at odds with each other, mainly over the exchange of money.

  • Open Source projects like OBS, VLC, ffmpeg, Shadowplay, etc. generally allow you to do anything. The chances of concocting something that Vegas' decoders won't like is pretty huge.
  • Vegas is maybe a little pickier than others about "playing by the book" when it comes to codecs.

The solution for your OBS settings is simple:

The h264_nvenc encoder will never support the AVI wrapper you chose, because it does not use VFW/AVI architecture, which preceded the NVENC (Nvidia) hardware encoder by 20 years or so.

h264, a registered standard format supports MP4 and MOV delivery wrappers, for most purposes.

Don't expect to understand it all overnight; in a way, hobbyists who use open source solutions face a bigger learning curve and more choices than those who start and stick with registered formats, such as prosumer videographers.

On the other hand, don't expect the guys who write this stuff for free to make smart choices for you; if the defaults don't work, check back in and Search the Forums. Plenty of discussion about OBS.

mark-y wrote on 5/4/2024, 5:30 PM

Maybe the Fraps fv1 codec you downloaded shows up in the OBS dropdown list of encoders. Worth a look.

 

RogerS wrote on 5/4/2024, 6:37 PM

Also don't think level 6.1 can be GPU decoded, at least by NVIDIA, so this choice of settings is really counterproductive.

mark-y wrote on 5/4/2024, 7:16 PM

I agree.

john_dennis wrote on 5/4/2024, 8:08 PM

Unless one is working with 3840x2160 or greater, there is no expectation that one would be using Level 6.2.

Reference: Advanced Video Coding - Wikipedia

Oh! There's the 800 Mb/s consideration, too.

Many of us mortals who use cameras manage to squeak by with Level 5.1 or so.

General
Complete name                            : E:\2024-04-20 Baseball\2024-04-20-001.MP4
Format                                   : XAVC
Codec ID                                 : XAVC (XAVC/mp42/iso2)
File size                                : 1.48 GiB
Duration                                 : 2 min 10 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 97.7 Mb/s
Frame rate                               : 29.970 FPS
Encoded date                             : 2024-04-20 19:04:09 UTC
Tagged date                              : 2024-04-20 19:04:09 UTC

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings                          : CABAC / 2 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 2 frames
Format settings, Slice count             : 8 slices per frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 min 10 s
Bit rate mode                            : Variable
Bit rate                                 : 95.8 Mb/s
Maximum bit rate                         : 100.0 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.385
Stream size                              : 1.45 GiB (98%)
Encoded date                             : 2024-04-20 19:04:09 UTC
Tagged date                              : 2024-04-20 19:04:09 UTC
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : xvYCC
Matrix coefficients                      : BT.709
Metas                                    : 3
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Big / Signed
Codec ID                                 : twos
Duration                                 : 2 min 10 s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 23.8 MiB (2%)
Encoded date                             : 2024-04-20 19:04:09 UTC
Tagged date                              : 2024-04-20 19:04:09 UTC

Other
ID                                       : 3
Type                                     : meta
Format                                   : Sony Real Time Metadata
Codec ID                                 : rtmd
Duration                                 : 2 min 10 s
Bit rate mode                            : Constant
Time code of first frame                 : 00:00:06;00
Encoded date                             : 2024-04-20 19:04:09 UTC
Tagged date                              : 2024-04-20 19:04:09 UTC
TransferCharacteristics_FirstFrame       : xvYCC
ColorPrimaries_FirstFrame                : BT.709
MatrixCoefficients_FirstFrame            : BT.709
IrisFNumber_FirstFrame                   : 6.300191
AutoExposureMode_FirstFrame              : Manual
AutoFocusSensingAreaSetting_FirstFrame   : Center Sensitive Auto
ShutterSpeed_Time_FirstFrame             : 1/250 s
CameraMasterGainAdjustment_FirstFrame    : 0.00 dB
ISOSensitivity_FirstFrame                : 100
ElectricalExtenderMagnification_FirstFra : 100%
AutoWhiteBalanceMode_FirstFrame          : Preset
ExposureIndexofPhotoMeter_FirstFrame     : 100

 

Since I have more disk space than brains, I use Apple Pro Res for my screen captures.

General
Complete name                            : E:\OBS Captures\2024-05-02 23-25-38.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 4.12 GiB
Duration                                 : 3 min 21 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 176 Mb/s
Frame rate                               : 29.970 FPS
Writing application                      : Lavf60.16.100

Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422
Codec ID                                 : apcn
Duration                                 : 3 min 21 s
Bit rate mode                            : Variable
Bit rate                                 : 173 Mb/s
Width                                    : 2 560 pixels
Height                                   : 1 440 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 1.566
Stream size                              : 4.05 GiB (98%)
Writing library                          : fmpg
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : PCM
Format settings                          : Big / Signed
Codec ID                                 : twos
Duration                                 : 3 min 20 s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 36.6 MiB (1%)
Default                                  : Yes
Alternate group                          : 1

Audio #2
ID                                       : 3
Format                                   : PCM
Format settings                          : Big / Signed
Codec ID                                 : twos
Duration                                 : 3 min 20 s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 36.6 MiB (1%)
Default                                  : No
Alternate group                          : 1

 

max-a1817 wrote on 5/5/2024, 3:22 AM

Maybe the Fraps fv1 codec you downloaded shows up in the OBS dropdown list of encoders. Worth a look.

 

Thank you Mark for such a big answer above! Unfortunately, I don't have Fraps codec called FPS1 in OBS :C I guess it uses only internal codecs.

In this way, if I want to record in AVI and edit it in Vegas, I should choose the correct codec, right? What is it, then? Seems like not everything is working since I tried several of them. There is a list of supported codecs in OBS below. I chose "Show all codecs (even if potentially incompatible)" just to see everything OBS can offer.

mark-y wrote on 5/5/2024, 12:12 PM

Of the VFW / AVI codecs in your list, I have marked four common ones. I would test MagicYUV, since it is still maintained and has a version for Vegas. There are other Video For Windows AVI codecs you can install on your system.

If I wasn't fully retired from teaching, I would ask why you feel compelled to record in AVI? Something you saw on the internet maybe?

Remember that VFW codec architecture is now 30 years old, and captures files that are many times the size of their LGOP interframe counterparts.

It seems that most gaming enthusiasts are using the Hardware AVC and HEVC encoders for speedy captures, such as your Nvidia NVENC, in their appropriate containers, of course ;?)

max-a1817 wrote on 5/5/2024, 1:17 PM

Of the VFW / AVI codecs in your list, I have marked four common ones. I would test MagicYUV, since it is still maintained and has a version for Vegas. There are other Video For Windows AVI codecs you can install on your system.

If I wasn't fully retired from teaching, I would ask why you feel compelled to record in AVI? Something you saw on the internet maybe?

Remember that VFW codec architecture is now 30 years old, and captures files that are many times the size of their LGOP interframe counterparts.

It seems that most gaming enthusiasts are using the Hardware AVC and HEVC encoders for speedy captures, such as your Nvidia NVENC, in their appropriate containers, of course ;?)

I just tested codecs you mentioned and non of them are working :C I can't add them to Vegas due to red stop circle instead of my cursor. Three of them are lagging even when watching the video, and the only utvideo codec is not lagging.

The reason why I wanted to record in avi is the picture itself. Many years ago I saw the game video and liked it a lot. Since then I'm trying to catch that picture. I don't know how to describe, but seems like it has more contrast, deeper, some kind of grain. MP4 is more smooth anyway, even if you try to match up the color.

mark-y wrote on 5/6/2024, 8:23 PM

The image on the left above is clipped, giving the appearance of increased contrast and saturation.

It is probably the result of someone not correcting the RGB levels of their AVI capture during editing to REC 709 for output delivery.

But it's not necessary to record your gameplay in AVI at RGB levels in order to make it stand out like that.

If you like that "effect," you can easily duplicate it by adding a "Studio->Computer RGB" fx filter to your right hand image as I've shown in the video below.

You're not alone if you prefer the contrasty image, but it has 16% less dynamic range than the one on the right, which was captured and edited correctly at REC 709 levels.

https://www.vegascreativesoftware.info/us/forum/pc-to-tv-levels-a-comedy-of-errors--107325/

Lots to learn, and it doesn't always make sense, you almost had to be alive in 1965 to understand the history of teevee and video fully. It's covered in this article, which is worth reading in full.

 

 

mark-y wrote on 5/10/2024, 2:25 PM

Same demonstration as above, with clipping indicators added.