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
Jan

Camera : Pan X900,GoPro Hero7 Hero Black
Desktop :AsRock Z270 Pro4, W10 , i7 7700K 4.2Ghz,16 DDR4 GB RAM, Gef. GTX 1050 Ti.
Laptop  :Asus ROG GL753VD, W10 home, version 1903 build 18.362,295 CPU i7 7700HQ, 16 GB RAM, GeF. GTX 1050 (2 GB) + Int. HD Graphics 630(2GB).VP 10,12,13,14,15,16,17 and VMS PL 10,13,14,15,16 are installed
Both Nvidia GPU's have driver version 431.70 Studio Drivers
TV      :LG 4K 55EG960V

Dutch video tutorials for beginners

My slogan is: BE OR BECOME A STEMCELL DONOR !!!

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
Jan

Camera : Pan X900,GoPro Hero7 Hero Black
Desktop :AsRock Z270 Pro4, W10 , i7 7700K 4.2Ghz,16 DDR4 GB RAM, Gef. GTX 1050 Ti.
Laptop  :Asus ROG GL753VD, W10 home, version 1903 build 18.362,295 CPU i7 7700HQ, 16 GB RAM, GeF. GTX 1050 (2 GB) + Int. HD Graphics 630(2GB).VP 10,12,13,14,15,16,17 and VMS PL 10,13,14,15,16 are installed
Both Nvidia GPU's have driver version 431.70 Studio Drivers
TV      :LG 4K 55EG960V

Dutch video tutorials for beginners

My slogan is: BE OR BECOME A STEMCELL DONOR !!!

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
Jan

Camera : Pan X900,GoPro Hero7 Hero Black
Desktop :AsRock Z270 Pro4, W10 , i7 7700K 4.2Ghz,16 DDR4 GB RAM, Gef. GTX 1050 Ti.
Laptop  :Asus ROG GL753VD, W10 home, version 1903 build 18.362,295 CPU i7 7700HQ, 16 GB RAM, GeF. GTX 1050 (2 GB) + Int. HD Graphics 630(2GB).VP 10,12,13,14,15,16,17 and VMS PL 10,13,14,15,16 are installed
Both Nvidia GPU's have driver version 431.70 Studio Drivers
TV      :LG 4K 55EG960V

Dutch video tutorials for beginners

My slogan is: BE OR BECOME A STEMCELL DONOR !!!

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
Jan

Camera : Pan X900,GoPro Hero7 Hero Black
Desktop :AsRock Z270 Pro4, W10 , i7 7700K 4.2Ghz,16 DDR4 GB RAM, Gef. GTX 1050 Ti.
Laptop  :Asus ROG GL753VD, W10 home, version 1903 build 18.362,295 CPU i7 7700HQ, 16 GB RAM, GeF. GTX 1050 (2 GB) + Int. HD Graphics 630(2GB).VP 10,12,13,14,15,16,17 and VMS PL 10,13,14,15,16 are installed
Both Nvidia GPU's have driver version 431.70 Studio Drivers
TV      :LG 4K 55EG960V

Dutch video tutorials for beginners

My slogan is: BE OR BECOME A STEMCELL DONOR !!!

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.