MP4 Video from VirtualDub crashed Vegas 21

Mykee wrote on 6/12/2024, 3:48 AM

I have an MP4 video that I have pre-processed in VirtualDub. I use x264vfw for my videos. Any parameter I export the video with as I paste it into Vegas, the program freezes.

Here's the MediaInfo for this file and I'm wondering which part Vegas doesn't like:

General
Complete name                            : J:\Videók\QVR_2024_06_07_17_17_47_denoised.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 30.3 MiB
Duration                                 : 9 s 62 ms
Overall bit rate                         : 28.0 Mb/s
Frame rate                               : 119.629 FPS
Writing application                      : Lavf57.79.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings                          : 3 Ref Frames
Format settings, CABAC                   : No
Format settings, Reference frames        : 3 frames
Format settings, Slice count             : 17 slices per frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 9 s 62 ms
Bit rate                                 : 28.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 119.629 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.113
Stream size                              : 30.3 MiB (100%)
Writing library                          : x264 core 159 r2991 1771b55
Encoding settings                        : cabac=0 / ref=3 / deblock=0:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=17 / lookahead_threads=16 / sliced_threads=1 / slices=17 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=17.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box                  : avcC

 

If I open the same file in AviDemux and simply save it, Vegas does not crash. This is the MediaInfo of it:

General
Complete name                            : J:\Videók\QVR_2024_06_07_17_17_47_denoised_dmx.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 30.3 MiB
Duration                                 : 9 s 53 ms
Overall bit rate                         : 28.1 Mb/s
Frame rate                               : 119.632 FPS
Writing application                      : Lavf58.76.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings                          : 3 Ref Frames
Format settings, CABAC                   : No
Format settings, Reference frames        : 3 frames
Format settings, Slice count             : 17 slices per frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 9 s 53 ms
Bit rate                                 : 28.1 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 119.632 FPS
Original frame rate                      : 119.629 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.113
Stream size                              : 30.3 MiB (100%)
Writing library                          : x264 core 159 r2991 1771b55
Encoding settings                        : cabac=0 / ref=3 / deblock=0:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=17 / lookahead_threads=16 / sliced_threads=1 / slices=17 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=17.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box                  : avcC

Only the Overall bitrate and Duration are different, all other parameters are correct. The rest is the same. Is the VfW codec not saving the file from VirtualDub correctly? But if it was wrong, AviDemux wouldn't open it or other players.

Comments

mark-y wrote on 6/12/2024, 8:06 AM

x264vfw encodes AVC inside a constrained AVI wrapper, so your first MediaInfo seems to be for something else.

That said, were you using the 64 bit version of x264vfw, and is it installed as a Windows system codec, not just within the VDub program folder?

Background: because of the older architecture, x264vfw is severely limited in what it will do; it won't support b-frames or vbr audio, so it has no real compression advantage over encoding to MPEG-PS, for example. I don't think it has been developed in some time. I would find a more current alternative in VDub.

john_dennis wrote on 6/12/2024, 4:27 PM

@Mykee

  • Try these Vegas Pro 21 settings.
  • Restart Vegas Pro.
  • Load your problem file.
  • Report.

Howard-Vigorita wrote on 6/12/2024, 8:10 PM

@Mykee If you're using the original VirtualDub, that's pretty old. Using VirtualDub2 64-bit, I can render directly to avc/mp4 using ffmpeg-x264 which Vegas reads fine. Btw, the frame rate is kind of high... unless its for slow motion you might want go with 60fps max. Also, is there an audio stream?

Mykee wrote on 6/13/2024, 1:34 AM

I will answer you all at once and thank you for your help so far!

- I use VirtualDub2 64-bit

- I haven't found the ffmpeg-x264 encoder in VirtualDub yet, I'll look it up and how to set it up

- if I turn off the "Hardware Decoder To Use" option, it disables opening the file, so there's the problem (I have an RTX 3090)

- x264vfw codec is installed with its own installer.

john_dennis wrote on 6/13/2024, 9:33 AM

Tell us about how your video "crashed Vegas 21".

Windows View Reliability History Log

Howard-Vigorita wrote on 6/13/2024, 11:09 AM

@Mykee Here are the vdub options I used for ffmpeg avc to approximate your bitrate:

If you want mp4, you should select ffmpeg-AAC audio by doing File/Save Audio/Configure first. Make sure you select full processing mode for both audio and video. I chose a mov container for compatibility with doing a stream-copy of the pcm audio in the footage I was editing.

Btw, you might want to look at ShutterEncoder if you haven't completely worked out the Vdub way of doing things. It's also an ffmpeg gui but is more intuitive to navigate and more regularly updated.

Mykee wrote on 6/14/2024, 3:12 PM

Tell us about how your video "crashed Vegas 21".

Windows View Reliability History Log

Simply as I drag the file onto the timeline, it just hourglasses and that's it. If I drag in a good MP4 file, it shows up without error, so Vegas dies on decode.

 

Leírás
A problem caused this program to stop interacting with Windows.
A hibát okozó alkalmazás elérési útja:    C:\Program Files\VEGAS\VEGAS Pro 21.0\vegas210.exe

Probléma-aláírás
Problémaesemény neve:     AppHangB1
Application Name:    vegas210.exe
Application Version:    21.0.0.315
Application Timestamp:    664631c2
Hang Signature:    6efa
Hang Type:    134217728
Operációs rendszer verziója:    10.0.19045.2.0.0.256.48
Területibeállítás-azonosító:    1038
Additional Hang Signature 1:    6efa87b1d6bd9bdc584680a61e85175c
Additional Hang Signature 2:    9950
Additional Hang Signature 3:    9950e661bc4ba70dbfa1ac21b307c488
Additional Hang Signature 4:    6efa
Additional Hang Signature 5:    6efa87b1d6bd9bdc584680a61e85175c
Additional Hang Signature 6:    9950
Additional Hang Signature 7:    9950e661bc4ba70dbfa1ac21b307c488
 

 

@Mykee Here are the vdub options I used for ffmpeg avc to approximate your bitrate:

If you want mp4, you should select ffmpeg-AAC audio by doing File/Save Audio/Configure first. Make sure you select full processing mode for both audio and video. I chose a mov container for compatibility with doing a stream-copy of the pcm audio in the footage I was editing.

Btw, you might want to look at ShutterEncoder if you haven't completely worked out the Vdub way of doing things. It's also an ffmpeg gui but is more intuitive to navigate and more regularly updated.

Here are my settings, this is the newer version, supposedly the latest version. I haven't used ShutterEncoder yet.