Strange Lag When Dragging Certain MP4 Files in Vegas Pro 21

fabian-b wrote on 8/3/2024, 5:12 PM

Hi everyone,

I'm hoping someone can assist me with an issue I'm experiencing in Vegas Pro 21.0. Whenever I try to move around certain MP4 files in the timeline, I notice a strange lag. Specifically, when I "grab" one of these files to move it, it stays frozen for about 3 to 4 seconds before I can move it normally. This doesn't happen with all MP4 files, only with some specific ones.

Has anyone else encountered a similar issue or have any idea how to fix this? Any help would be greatly appreciated.

Thanks in advance!

Best regards.

---------

Operating System
  Platform: Windows 11.0 (64-bit)
  Version: 10.00.22631
  Language: English
  System locale: English
  User locale: Spanish

Processor
  Class: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
  Identifier: AuthenticAMD
  Number of processors: 16
  MMX available: Yes
  SSE available: Yes
  SSE2 available: Yes
  SSE3 available: Yes
  SSSE3 available: Yes
  SSE4.1 available: Yes
  SSE4.2 available: Yes

Display
  Primary: 2560x1440x32

Memory
  Physical memory: 32.039,0 MB
  Paging memory available: 114.178,9 MB

Comments

mark-y wrote on 8/3/2024, 6:20 PM

 This doesn't happen with all MP4 files, only with some specific ones.

OK. Tell us what is different about the specific ones.

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

bvideo wrote on 8/3/2024, 6:26 PM

Where were the bad ones vs good ones created?

fabian-b wrote on 8/3/2024, 6:43 PM

 This doesn't happen with all MP4 files, only with some specific ones.

OK. Tell us what is different about the specific ones.

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

 

Many thanks for your reply! The "bad ones" are from a Sony ZV1 camera. These are the file properties.
 

Name: 20240803_C0809.MP4
  Folder: D:\YOUTUBE\_TMP\mo
  Type: MAGIX AVC
  Size: 14,72 GB (15.071.321.115 bytes)
  Created: 03 August 2024, 18:34:17
  Modified: 03 August 2024, 19:12:09
  Accessed: 04 August 2024, 01:25:02
  Attributes: Archive

Streams
  Video: 00:37:50,880, 50,000 fps progressive, 1920x1080x32, Sony XAVC-S - AVC
  Audio: 00:37:50,880, 48.000 Hz; Stereo, PCM

ACID information
  ACID chunk: no
  Stretch chunk: no
  Stretch list: no
  Stretch info2: no
  Beat markers: no
  Detected beats: no

Other metadata
  Regions/markers: no
  Command markers: no

Media manager
  Media tags: no

Plug-In
  Name: mxcompoundplug.dll
  Folder: C:\Program Files\VEGAS\VEGAS Pro 21.0\FileIO Plug-Ins\mxcompoundplug
  Format: MAGIX AVC
  Version: Version 21.0 (Build 315)
  Company: MAGIX Computer Products Intl. Co.

The "good ones" come from various sources. Some of them fail, most of them work just fine. But the file above is really making my life very miserable.

 

 

 

mark-y wrote on 8/3/2024, 7:21 PM

Not enough information. There is nothing remarkable about your basic file information. Please consider downloading MediaInfo per the recommendation and providing the complete MediaInfo readout here for one of your Sony files, thanks.

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

There is enough information for me to offer one suggestion. Change your decoder to Legacy AVC in Options-Preferences-File I/O, restart Vegas, and see if you notice a change.

Also, please consider uploading a short actual Sony camera file to Drive or Dropbox (not Youtube or this forum), and post the link here, so that others may test your observations on their own systems.

I hope you will help to clear this up, and perhaps pass a trouble report to the program developers, thanks again

fabian-b wrote on 8/3/2024, 7:50 PM

Not enough information. There is nothing remarkable about your basic file information. Please consider downloading MediaInfo per the recommendation and providing the complete MediaInfo readout here for one of your Sony files, thanks.

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

There is enough information for me to offer one suggestion. Change your decoder to Legacy AVC in Options-Preferences-File I/O, restart Vegas, and see if you notice a change.

Also, please consider uploading a short actual Sony camera file to Drive or Dropbox (not Youtube or this forum), and post the link here, so that others may test your observations on their own systems.

I hope you will help to clear this up, and perhaps pass a trouble report to the program developers, thanks again

Thanks!
I do not have access to the camera at the moment, hence I cannot upload a test file, but here's the mediainfo file.
 

General
Complete name                            : D:\YOUTUBE\_TMP\mo\20240803_C0809.MP4
Format                                   : XAVC
Codec ID                                 : XAVC (XAVC/mp42/iso2)
File size                                : 14.0 GiB
Duration                                 : 37 min 50 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 53.1 Mb/s
Frame rate                               : 50.000 FPS
Encoded date                             : 2024-08-03 15:34:17 UTC
Tagged date                              : 2024-08-03 15:34:17 UTC

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.2
Format settings                          : CABAC / 2 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 2 frames
Format settings, Slice count             : 4 slices per frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 37 min 50 s
Bit rate mode                            : Variable
Bit rate                                 : 49.5 Mb/s
Maximum bit rate                         : 60.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 50.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.477
Stream size                              : 13.1 GiB (93%)
Encoded date                             : 2024-08-03 15:34:17 UTC
Tagged date                              : 2024-08-03 15:34:17 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                                 : 37 min 50 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                              : 416 MiB (3%)
Encoded date                             : 2024-08-03 15:34:17 UTC
Tagged date                              : 2024-08-03 15:34:17 UTC

Other
ID                                       : 3
Type                                     : meta
Format                                   : Sony Real Time Metadata
Codec ID                                 : rtmd
Duration                                 : 37 min 50 s
Bit rate mode                            : Constant
Time code of first frame                 : 13:33:53;14
Encoded date                             : 2024-08-03 15:34:17 UTC
Tagged date                              : 2024-08-03 15:34:17 UTC
TransferCharacteristics_FirstFrame       : xvYCC
ColorPrimaries_FirstFrame                : BT.709
MatrixCoefficients_FirstFrame            : BT.709
IrisFNumber_FirstFrame                   : 3.500044
FocusPositionFromImagePlane_FirstFrame   : 1.100 m
AutoExposureMode_FirstFrame              : Full Auto
AutoFocusSensingAreaSetting_FirstFrame   : Full Screen Sensing Auto
CaptureFrameRate_FirstFrame              : 50.000 fps
ShutterSpeed_Time_FirstFrame             : 1/100 s
CameraMasterGainAdjustment_FirstFrame    : 3.00 dB
ISOSensitivity_FirstFrame                : 160
ElectricalExtenderMagnification_FirstFra : 100%
AutoWhiteBalanceMode_FirstFrame          : Automatic
ExposureIndexofPhotoMeter_FirstFrame     : 160

 

mark-y wrote on 8/3/2024, 11:57 PM

Are your graphics drivers up to date?

Have you tried the legacy AVC decoder?

Nothing very remarkable about your file, except 50 fps is a little harder to work with in real time.

fabian-b wrote on 8/4/2024, 1:24 AM

Are your graphics drivers up to date?

Have you tried the legacy AVC decoder?

Nothing very remarkable about your file, except 50 fps is a little harder to work with in real time.

Thanks for your reply. Yes, drivers are up to date, and I've checked/unchecked both "Enlable elegay AVC decoding" and the experimental HEV decoding options without impact in the performance. Also, I understand 50 fps could be difficult to render or to play, but my problem is to move the take around the timeline, trimming it, etc.

bvideo wrote on 8/4/2024, 11:03 AM

Something mediainfo doesn't tell us is GOP length. A very long GOP can make a program take a very long time if it is trying to seek to somewhere in the file. Anyone know of a program that can survey GOPs?

mark-y wrote on 8/4/2024, 11:25 AM

Something mediainfo doesn't tell us is GOP length. A very long GOP can make a program take a very long time if it is trying to seek to somewhere in the file. Anyone know of a program that can survey GOPs?

Since it is XAVC-S, the GOP length itself shouldn't be a problem. However, that is just one of the things we will check when we get that camera sample from the OP. Until then . . .

@bvideo Shutter Encoder will give a graphic of the first GOP, I use ffprobe and an Excel database, there is discussion on the forum.

 

Jessariah67 wrote on 8/4/2024, 12:36 PM

This is happening to me with MXF files from a Canon XA50. I've noticed funky artifacts since a few months ago - around the time that my footage was brought in as four mono channels - instead of just a single, stereo channel.

Oddly enough, it's like it gets "stuck." I noticed that "jitters" that seemed to cache during playback actually rendered. I played with frame rates and everything. Finally, I just ried to render it as "BEST" and itnot only fixed the problem, it rendered in HALF THE TIME!

Go figure that one out.

fabian-b wrote on 8/4/2024, 2:22 PM

Mhmhmhm, I have interesting news.

As promised, I recorded a test file and tried to open it in Vegas Pro. It worked marvelously. In case you want to check it out, here it is:
https://sendgb.com/AqkcoL86ite
Absolutely no problem at all movig it, trimming it...

So I went back to my base project. I have a simple template file with named layers, and a few recurrent files I use constantly in a section in my Youtube channel (backgrounds, music, sound effects and so on). I started like every day, adding the first files of my talking head, and started adding the effects. For audio, I normally use Acon Deverberate, Volume, Graphic EQ, Wave Hammer Surround. For video, I usually add NewBlue V2 Chroma Key, White Balance, Brightrness and Contrast... and BOOM! Now the editing is lagging.


At first I thought it could be one effect and played with each one, trying to move around the files every time I added a new effect, but I don't see the problem appearing when I add a particular one. The problem just seems to appear (and grow) as I add complexity and more effects to my project. It's odd because I can preview quite well the project with all the effects, and rendering isn't very slow. Just the editing is pure agony.

Thanks for your time!

mark-y wrote on 8/4/2024, 3:05 PM

For video, I usually add NewBlue V2 Chroma Key, White Balance, Brightrness and Contrast... and BOOM! Now the editing is lagging.

New Blue fx are GPU accelerated, both in preview, and in the render. Make sure the right GPU is selected in Options->Preferences->Video->GPU Acceleration of Video Processing. If your AMD graphics are selected and the box is checked, that's probably the best you are going to do.

Feel free to mark one of the responses as The Solution, if you wish.

fabian-b wrote on 8/5/2024, 1:11 AM

For video, I usually add NewBlue V2 Chroma Key, White Balance, Brightrness and Contrast... and BOOM! Now the editing is lagging.

New Blue fx are GPU accelerated, both in preview, and in the render. Make sure the right GPU is selected in Options->Preferences->Video->GPU Acceleration of Video Processing. If your AMD graphics are selected and the box is checked, that's probably the best you are going to do.

Feel free to mark one of the responses as The Solution, if you wish.

Hi there and thank you for your reply. The GPU card selected was Nvida GefForce RTYX4070. I changfed it to AMD but nothing really changed, the lag was still there, maybe a bit worse in the previewing.

mark-y wrote on 8/5/2024, 9:08 AM

If I were you, I would report my findings to New Blue; personally I have found their plugins to be very taxing on my system. Good luck; let us know if you find an improvement.

fabian-b wrote on 8/14/2024, 5:29 AM

I have found a solution that works for ME and possibly no one else, but in any case, I’d like to share it with you in case it might be useful.

The problem in my case occurred when I added a chain of effects to a very long file and then started cutting it. As I kept cutting more and more, the editing accumulated more lag. After around 30 cuts, dragging that file along the timeline meant waiting 10-15 seconds each time I tried to move one of its cuts.

The solution was to place that long file by itself on a layer and apply the effects TO THE LAYER. This doesn’t cause any major issues in my case because that long file is the main narration of the video. The only drawback of my method is that since I later apply pan/crop, there’s a slight one-pixel line that I used to fix by applying the chroma key before the pan/crop, something I can’t do now. But, in any case, there is no more lag.

I won't mark it as a solution because it really isn't.

Reyfox wrote on 8/14/2024, 5:44 AM

@Jessariah67 the issues you posted are not related to this thread. Start a new one with the problem including a link to a sample footage to test.

@fabian-b when you have that long delay, how much RAM is being used by your computer?

Last changed by Reyfox on 8/14/2024, 5:45 AM, changed a total of 1 times.

Newbie😁

Vegas Pro 22 (VP18-21 also installed)

Win 11 Pro always updated

AMD Ryzen 9 5950X 16 cores / 32 threads

32GB DDR4 3200

Sapphire RX6700XT 12GB Driver: 22.5.1, testing 24.7.1

Gigabyte X570 Elite Motherboard

fabian-b wrote on 8/14/2024, 5:47 AM

@Jessariah67 the issues you posted are not related to this thread. Start a new one with the problem including a link to a sample footage to test.

@fabian-b when you have that long delay, how much RAM is being used by your computer?

I will open one of the problematic edits and let you know.