Media length incorrect using So4 Compound Reader

mickhardy wrote on 7/16/2019, 2:48 AM

My plugin loads media into empty events and adjusts the event length to match. This process is currently broken in Vegas 15 (Build 416) and in Vegas 16 (Build 424). Disabling the So4 Compound Reader completely rectifies this issue.

This is what happens to processed videos. The media loops due to the incorrectly reported media length but it's intermittent, usually just one or two or none of the ten clips are compromised but this shows how bad it can be.

Comments

j-v wrote on 7/16/2019, 3:22 AM

I made already a lot of video's , timelapses a.s.o. with my GOPro 7 in HEVC and AVC of 2K, 2,7 K,4K in Wide, extreem Wide , Narrow and Lineair but never saw such things when placed on the timeline. So something has maybe been donewith those files.
Can you give the MediaInfo of such a faulty file?
These are my timeline and properties

BTW. What plugin loads yourmedia to empty events? For me very strange so to enter events to a time line, I do it by dragging or doubleclick from the explorer.

Last changed by j-v on 7/16/2019, 3:25 AM, changed a total of 1 times.

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 23H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
555.85 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2127
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 555.99 and Intel UHD Graphics 630 with driver 31.0.101.2127
Vegas software: VP 10 to 21 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

mickhardy wrote on 7/16/2019, 3:33 AM

This is in scripting. The media loads fine but "new Media(fullName).Length" is incorrect.

I wrote the plugin.

j-v wrote on 7/16/2019, 3:47 AM

And what happens if you drag such a file in a new project to an empty timeline?

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 23H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
555.85 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2127
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 555.99 and Intel UHD Graphics 630 with driver 31.0.101.2127
Vegas software: VP 10 to 21 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

mickhardy wrote on 7/16/2019, 3:49 AM

The media loads fine.

j-v wrote on 7/16/2019, 4:02 AM

And what is that saying about that media and the used plugin to read that file?

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 23H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
555.85 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2127
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 555.99 and Intel UHD Graphics 630 with driver 31.0.101.2127
Vegas software: VP 10 to 21 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

mickhardy wrote on 7/16/2019, 5:01 AM

I've reproduced the error with a GoPro 3 file so I've edited the post to remove the GoPro 7 references.

This is all the same file. Before inserting it, the length is 17 seconds but after inserting it, the length is 14 seconds. It should be 14 seconds as Media Info reports it to be. It's the initial length from the Vegas Media object in code that's causing me grief.

As stated in the initial post, disabling the So4 Compound Reader completely fixes this.

mickhardy wrote on 7/16/2019, 5:56 AM

I'm pretty sure some kind of caching is going on. The files are different but the file names are the same. When the incorrect length is reported, it's the length of the file that was previously in that location.

j-v wrote on 7/16/2019, 6:09 AM

What are the videoproperties stating using the So4 compound plug in Vegas of such a dragged file?

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 23H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
555.85 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2127
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 555.99 and Intel UHD Graphics 630 with driver 31.0.101.2127
Vegas software: VP 10 to 21 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

mickhardy wrote on 7/18/2019, 1:44 AM

After investigating this issue for several days, I can't find a workaround. Once the decoder is confused, it always returns the old file details. Even if the file is deleted or renamed, new Media(fileName) will incorrectly load the non existent file from it's cache and give the incorrect length.

Closing the current project and starting a new one, which usually clears the media pool doesn't help. The media pool is empty but the decoder still loads the old file from somewhere.

Disabling the So4 Compound Reader rectifies the issue.

I'm going to have to rebuild a significant section of my plugin to ensure unique file names between videos to workaround this bug.

I appreciate your time @j-v but we're not on the same page. This is a scripting issue.

This may still be a GoPro 7 issue as the cached file I've been using to reproduce the issue is a GoPro 7 file.