Product Chat / Video in Storyzone gets cut off at end

Author
Message
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 3rd Jan 2020 19:28
I made a short video cut scene, but noticed it was getting cut off at the end, which was 8 seconds exactly. It was crucial to the story, as it included the mission that had to be achieved at that level. I will have to add a few seconds of black screen at the end of my video for my cut scenes to work properly. Is this a bug, or is there some code I need to adjust in the in-line video player?
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 3rd Jan 2020 20:39 Edited at: 3rd Jan 2020 20:40
Is your audio file shorter than your video file perhaps?

AE
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 3rd Jan 2020 22:35
Interestingly, it was one second shorter. I fixed that to match, but the player still cut off 8 seconds of the audio and video files. I used Premiere Pro to make both, then converted the audio to OGG. I left the video Mp4. I got it to work, but it makes creating cut scenes a little less than optimal, as I do not know how long I will need to make the black space at the end of each scene.

For the record, I even rebooted to see if remnants of the files were still loading after making adjustments, to no avail. I simply did what so many people here do - created a workaround.
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 3rd Jan 2020 23:27
Does this video play at the very beginning of a level? I used to have problems even just playing a video if I spawned the player directly in a StoryZone, ended up having to use a hack to ForcePlayer the player a few units forward into the zone before the Fade In happens. This was allegedly fixed in the latest update though but perhaps your bug is related to that fix somehow?

AE
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 4th Jan 2020 05:56
No, this is after a player has been in a level for a minute or two. So you think it is a bug, huh? I wasn't sure. It is one of the easiest work arounds I have found so far, but I'm new, still.
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 4th Jan 2020 11:35
How long is the file supposed to be and have you actually checked the processed file is the expected length in another way outside of GG?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 4th Jan 2020 18:54
@smallg I changed the full length to 40 seconds, which allows my video to run 32 seconds. The sound is synched to my cuts. I also watched my video in VLC player and the full video is definitely there. GG seems to cut the video and audio by 8 seconds.

As I said, I can work around this, but I don't know yet if video of different lengths will be cut by the same amount. I suspect it will depend on the length of the video, but that is just a hunch.
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 5th Jan 2020 14:34
@jjumisko

Out of interest, what framerate is the video? Go with me on this, but Game Guru is full of little...er...idiosyncrasies... could it be that Game Guru is expecting a video at 29.97fps, and you're giving it one at 25fps so it's playing it back too quickly and getting to the end too soon? Or maybe the opposite is true; it's expecting a 32 second video at 25 fps (800 frames total), but your video is at 29.97fps (so 959 frames total), so it's getting to frame 800 thinking that's the end and dropping the last 159 frames? That would equate to around 5.3 seconds.

Also, do you have vsync set to 1 in the setup.ini (located in the Game Guru root folder)?

AE
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 5th Jan 2020 23:34
@Avenging Eagle -- Totally. I believe my video is at 29fps. Should it be at 25fps? I'll try it on my next one. I will check the setup.ini for the vsync settings, as well. Thank you!
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 6th Jan 2020 07:25 Edited at: 6th Jan 2020 07:30
Yep, I think it's a framerate issue. I just exported two blank 30 second test patterns with a timecode on them, one in 29.97 (NTSC) and 25fps (PAL). The NTSC one cut out around the 24 second mark, the PAL one made it almost to end, although weirdly still dropped the last 7 frames. So it looks like .mp4 files need to be 25fps to work properly, but you should still add a few extra frames on the end as a sort of buffer, just in case Game Guru cuts it short.

EDIT: lol, a 30-second 60fps video cuts out around the 12.5 second mark, and plays back noticeably slower, i.e. at 25fps. This makes sense, given that 30 seconds at 25fps is 750 frames total, and at 60fps you reach frame 750 at the 12.5 second mark.

AE
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 6th Jan 2020 09:21
I think the DX11 MP4 video codex runs at a default of 24fps, i'm sure i read that somewhere.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 6th Jan 2020 15:06
God I wish this just played them with sound and all like they used to
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 20th Jan 2020 00:27
I made another intro video this week and tried setting it to 24fps. Same issue. It was still cut off. Also, WMV doesn't seem to work at all for me. I have to use Mp4 for video and OGG for audio. I agree that it would be nice to just be able to upload video with audio attached so it would be simple to synch it up. Premiere Pro works well for this, but it takes a lot longer to do both files separately.

BTW, someone asked if you can have the video start immediately as the level is loaded. The answer is yes, but make sure your Start marker is in the center of your Story marker. I had my start marker slightly toward one edge of the story marker and it required me to move the player to trigger the movie.
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM
Kitakazi
17
Years of Service
User Offline
Joined: 9th Feb 2007
Location:
Posted: 26th Jan 2020 13:28
In the Setup.ini make sure you have
videoprecacheframes=8
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 15th Feb 2020 20:31
@Syncromesh;
oops "/CUSSING AND SWEARING/ I wish this just played them with sound
and all like they used to "

For sure!
So Question, has anyone posted the audio not playing with the video onto
GitHub so we can have it listed as a bug and fixed?! Thanks, just wanted
to bring this up, haven't heard from anyone having asked Lee if this would
be tackled...?? One day I might want to make a game too...
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 15th Feb 2020 20:57
Quote: "So Question, has anyone posted the audio not playing with the video onto
GitHub so we can have it listed as a bug and fixed?"

No because its not actually a bug. Its just a video player only
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 15th Feb 2020 23:06
As synchromesh said, it's not a bug, it's working as intended, the video player in DX11 by default without extra plugins is video only, to play both sound and video at once Lee has had to seperate them, you place the video in the video slot and the audio in the audio slot in properties, to get it to use a video with embedded sound he would have had to have purchased an additional license for a third party plugin.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Cylo
Game Guru Backer
13
Years of Service
User Offline
Joined: 2nd Jun 2010
Location:
Posted: 23rd Feb 2020 21:32
Guys, I have another kind of problem with a video in Storyzone.

It usually works normally, I split video and audio in MP4 and OGG, and put them in the slots... all fine.

But there's a video that lasts almost 2 minutes, I checked and both audio and video files are the same exact length, but it's like the video slows down so that they're not aligned!
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 23rd Feb 2020 21:56
Quote: "God I wish this just played them with sound and all like they used to"


Same here. DX11 was supposed to be an upgrade after all. I haven't bothered with video since the update personally. It's not what I would call easy to use.

Frames per second causes all sorts of issues in GG. One reason why I never quite finished my Xmas game Vital parts ran at different speeds on different systems and completely broke my balloon ride section.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 23rd Feb 2020 23:19
Quote: "DX11 was supposed to be an upgrade after all."

Its the DX11 player that's the problem .. MS didn't cater for sound apparently . Its video only
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 24th Feb 2020 07:41
Quote: "But there's a video that lasts almost 2 minutes, I checked and both audio and video files are the same exact length, but it's like the video slows down so that they're not aligned!"


What is the framerate of your video?

AE
Cylo
Game Guru Backer
13
Years of Service
User Offline
Joined: 2nd Jun 2010
Location:
Posted: 24th Feb 2020 16:49
Quote: "What is the framerate of your video?

AE
"


29.97 fps, says VLC.

And it slows down in GG player, so that audio ends much sooner than video.
PM
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 24th Feb 2020 19:41
It needs to be 25fps or it won't work properly. Game Guru will play back a 29.97fps video at 25fps, so it will last 19.88% longer than your audio.

AE
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 25th Feb 2020 04:26
"Game Guru will play back a 29.97fps video at 25fps, so it will last 19.88% longer than your audio."

Is this saying that GG plays ALL videos regardless at 25 fps?
Thanks for the info, if so.
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 25th Feb 2020 05:05
BTW, is DX going to go the way of Flash Player? (Belly up)
If so, wonder what the backup plan is?
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 25th Feb 2020 10:47
@GubbyBlips. Can't see it myself as MS use it to make PC and Xbox dev easier. AGK Studio has (or has planned) an open gl engine so I imagine that would be the backup if it came to it. Which it won't ;p At least not anytime soon.

If Avenging Eagle is right and there's no reason he wouldn't be, sounds like 25fps is the set playback speed.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 25th Feb 2020 10:50
Quote: "Is this saying that GG plays ALL videos regardless at 25 fps?"


Based on my limited research, yes.
Remember, Game Guru is developed in the UK and PAL (25fps) is the standard here, not NTSC (29.97) like our American and Japanese cousins. No idea why that makes a difference to DirectX and why it isn't smart enough to handle different frame rates, but that's the way things are right now.

AE

Login to post a reply

Server time is: 2024-04-24 07:28:00
Your offset time is: 2024-04-24 07:28:00