Vegas 18 - Preview (Full) = blackscreen, Preview (Half) = OK WHY?

4sol-n wrote on 7/9/2021, 7:15 PM

Hey,

I'm recording my source via OBS to .mp4, no problems with that when editing in Vegas, but this time I recorded a specific window with different resolution

https://pastebin.com/Y2FTfg34

I opening Vegas and just drag and drop my file, creating a new project.
While the preview is set to FULL I can see only a black screen in the preview window.
Once I switch it to half, the video is showing up and everything is OK

Why is that and how can I fix it?

Comments

JN- wrote on 7/10/2021, 6:07 AM

@4sol-n As best I understand it, when previewing in half you are using say proxie of the original.

Ok, I see your link gives mediainfo of the file. Can you supply a downloadable sample for other users to test.

Its possible that vp cannot handle the odd frame size. By odd I do mean odd, not even, just a guess.

It's easier for users who wish to help you if you post the mediainfo here in this thread, without the external link.

Last changed by JN- on 7/10/2021, 6:20 AM, changed a total of 4 times.

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Benchmarking Continued thread + link to zip here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

 

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080

4sol-n wrote on 7/10/2021, 7:09 AM

@4sol-n As best I understand it, when previewing in half you are using say proxie of the original.

Ok, I see your link gives mediainfo of the file. Can you supply a downloadable sample for other users to test.

Its possible that vp cannot handle the odd frame size. By odd I do mean odd, not even, just a guess.

It's easier for users who wish to help you if you post the mediainfo here in this thread, without the external link.

Here it is:

https://filebin.net/xh7gpr9c7jdr3mxo

So the issue file - I used a special plugin to record a specific window (drawing app) which will crop your resolution to the resolution of the window of that app.

In normal state (normal file) the same recording options is capturing the whole screen.

Issue.mp4 have black screen
nomral.mp4 is OK

JN- wrote on 7/10/2021, 10:04 AM

Ok, the "Normal" file doesn't download properly, I tried twice, both different sizes, neither VLC or MPC cannot play.

The "Issue" file plays in both those players but crashes VP18.

It plays with a black preview screen in VP17 and plays ok in VP16.

Will try later, heading out now, but can you try unchecking everything in options/preferences/file I/O, and anything else you can think of.

Last changed by JN- on 7/10/2021, 10:13 AM, changed a total of 2 times.

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Benchmarking Continued thread + link to zip here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

 

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080

Howard-Vigorita wrote on 7/10/2021, 5:59 PM

@4sol-n I don't use obs enough to tell you how to configure it to fix the problem but it looks like the issue-video has an unusual gop config. That's easy to fix with ffmpeg... just re-encode it and specify the same frame size. I used this ffmpeg command and the resultant new.mp4 clip plays just fine in Vegas 18:

ffmpeg  -i "ISSUE_FILE.mp4" -c:v libx264  -vf scale=1248x1108 new.mp4

For reference, MediaInfo says this about the new.mp4:

General
Complete name                            : C:\Users\hv\Downloads\gop adjust\new.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 281 KiB
Duration                                 : 8 s 967 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 257 kb/s
Writing application                      : Lavf59.2.102

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 8 s 967 ms
Bit rate                                 : 245 kb/s
Width                                    : 1 248 pixels
Height                                   : 1 108 pixels
Display aspect ratio                     : 1.126
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.006
Stream size                              : 268 KiB (95%)
Writing library                          : x264 core 163 r3059 b684ebe
Encoding settings                        : cabac=1 / ref=3 / deblock=1: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=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

While your issue clip looks like this... notice the GOP stuff missing above. And also the very limited cabac info specified in the issue-clip.

Complete name                            : C:\Users\hv\Downloads\ISSUE_FILE.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 9.67 MiB
Duration                                 : 9 s 0 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 9 012 kb/s
Writing application                      : Lavf58.29.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Format settings, GOP                     : M=3, N=60
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 9 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 9 000 kb/s
Width                                    : 1 247 pixels
Original width                           : 1 248 pixels
Height                                   : 1 107 pixels
Original height                          : 1 108 pixels
Display aspect ratio                     : 1.126
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.217
Stream size                              : 9.66 MiB (100%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Also looks like your OBS is using ffmpeg libs (Lavf58.29.100) that are a bit older than what I used (Lavf59.2.102).

JN- wrote on 7/10/2021, 8:41 PM

@4sol-n I managed to download the "Normal" file, is ok in VP18.

I still think that the issue is the odd frame size, 1247 and 1107, in the "Issue" file. For some reason, VP16 handles it fine but VP17 and VP18 not so.

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Benchmarking Continued thread + link to zip here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

 

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080

4sol-n wrote on 7/11/2021, 3:53 AM

So it's not something with Vegas or codecs as I received the following developer feedback:

odd frame sizes are not supported by all type of encoders, try making the source 1 pixel larger or smaller

4sol-n wrote on 7/11/2021, 4:07 AM

@4sol-n I don't use obs enough to tell you how to configure it to fix the problem but it looks like the issue-video has an unusual gop config. That's easy to fix with ffmpeg... just re-encode it and specify the same frame size. I used this ffmpeg command and the resultant new.mp4 clip plays just fine in Vegas 18:

ffmpeg  -i "ISSUE_FILE.mp4" -c:v libx264  -vf scale=1248x1108 new.mp4

For reference, MediaInfo says this about the new.mp4:

General
Complete name                            : C:\Users\hv\Downloads\gop adjust\new.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 281 KiB
Duration                                 : 8 s 967 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 257 kb/s
Writing application                      : Lavf59.2.102

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 8 s 967 ms
Bit rate                                 : 245 kb/s
Width                                    : 1 248 pixels
Height                                   : 1 108 pixels
Display aspect ratio                     : 1.126
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.006
Stream size                              : 268 KiB (95%)
Writing library                          : x264 core 163 r3059 b684ebe
Encoding settings                        : cabac=1 / ref=3 / deblock=1: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=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

While your issue clip looks like this... notice the GOP stuff missing above. And also the very limited cabac info specified in the issue-clip.

Complete name                            : C:\Users\hv\Downloads\ISSUE_FILE.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 9.67 MiB
Duration                                 : 9 s 0 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 9 012 kb/s
Writing application                      : Lavf58.29.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Format settings, GOP                     : M=3, N=60
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 9 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 9 000 kb/s
Width                                    : 1 247 pixels
Original width                           : 1 248 pixels
Height                                   : 1 107 pixels
Original height                          : 1 108 pixels
Display aspect ratio                     : 1.126
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.217
Stream size                              : 9.66 MiB (100%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Also looks like your OBS is using ffmpeg libs (Lavf58.29.100) that are a bit older than what I used (Lavf59.2.102).

What program do you use and where should I type

ffmpeg  -i "ISSUE_FILE.mp4" -c:v libx264  -vf scale=1248x1108 new.mp4