Webm in a animation?

Can i call webm to play in a middle of an animation, per example freespecials?

Is there a script or something?

That will save lots of time! (better than animated gif... frame by frame...)
 
Sorry for bringing back to life this post, but while spawning a video like this in a per frame basis animation in side, for example, a type Text entity, well it works, but after it plays, the stage music stops and it doesn't resume. is that intentional or am I missing something? I actually want the stage music to keep being played while the video is on the screen
 
You can resume the stage music after, but you can't play during. Video and music files are both streamed live from the pak data - it's impossible to do both at the same time.
 
Damon Caskey said:
You can resume the stage music after, but you can't play during. Video and music files are both streamed live from the pak data - it's impossible to do both at the same time.

SO, how to resume the music after the video? :D
 
Hi, I tried to play a webm video in anim freespecial like bWWd suggested:
Code:
@cmd playwebm "data/scenes/demo.webm" 1
just before a frame but the video is not played (I tested as an intro cutscene and the video works properly).

Does anyone else try to add a webm in a character anim?
 
I did, i copied what you wrote, and it works, i used it in 3rd anim frame in attack1

Code:
anim	attack1
	loop	0
	offset	288 159
	bbox	217 87 140 71
	delay	1
	fastattack	1
	forcedirection	-1
	sound	data/chars/manda/a.wav
	frame	data/chars/manda/a1.gif
	sound	data/sounds/a1.wav

	frame	data/chars/manda/a2.gif
@cmd playwebm "data/scenes/hem.webm" 1
	frame	data/chars/manda/a3.gif
	frame	data/chars/manda/a4.gif
	attack	89 47 116 42 10 0 1 0 9 0
 
I see what you mean. Why not click on that gear icon next to the down arrow? Once you click that, you will see one option box popping up for a customized video size. Put the numbers for your resolution you desire and click on the checkmark button. (It closed down on me a while ago after I put it, but you try it out to see it for yourself. I don't want this part of my opinion to make you worry what to do. Just do it and see if it works.)
 
Code:
@cmd playwebm "data/webm/tdeath.webm" 1

tncK! I didn't notice your path is wrong! It's not in the scenes folder? You wrote it where you think it is, but somehow you're not checking the path itself. Where is it located within in your data folder? (Not webm folder?)
 
Tried it and it works for me well.

Code:
anim	freespecial11
	delay	7
	offset	337 290
#	custknife	FireB
#	throwframe	4
	@cmd stop
	frame	data/chars/lau/fireb00.png
	frame	data/chars/lau/fireb01.png
	frame	data/chars/lau/fireb02.png
	frame	data/chars/lau/fireb03.png
	frame	data/chars/lau/fireb04.png
		@cmd spawnAndThrow "FireB" 80 0 70 1.1 NULL() NULL() #spawnAndThrow {projectilename} {x} {z} {y} {vx} {vz} {vy}
	frame	data/chars/lau/fireb05.png
	@cmd playwebm "data/scenes/demotest.webm" 1
	frame	data/chars/lau/fireb06.png

Is it because the file does not have the exact same name from what you declared?
 
It works for me in death anim so video qualities (poor or smooth) after conversion have nothing to do with the problem. (tdeath.webm is already in the webm folder, right? If so, then okay.) What build/version are you using that causes not to play webm?

WARNING: If you play a webm in character's death anim or any anim, the music won't play anymore after webm finishes.
 
Edit: Evidently you CAN stream music and webm at once. That should be technically impossible, and I still wouldn't advise trying it on a machine that doesn't have very fast loading speed, but as you can see below it can be done.

As I recall, there is a way to continue music exactly where you left off. I'm traveling again and can't dig around much ATM, but it's here in the forum somewhere.

DC

 
nsw25 said:
thats a shame. it makes it virtually useless... I will just have to use my old way of taking screenshots of key frames... it just would look a whole lot better as webm. ( i recall someone talking about a program that took screenshots from video files automatically like every few seconds or whatever you defined ?)

No way to reinstate music, even if just from the start again, some command like alwaysupdate or something ? so as soon as its interrupted for whatever reason it will start again (loop ?)

people have jukeboxes in levels where they can control music starting and stopping etc so im sure its possible somehow (a hidden entity with some script?)
Hi nsw25. Is this what you are looking for? I made a quick test here and apparently just stopped the crowd sound effects, but the music continues
This Senile webm has no music, I removed it with XMedia Recode program.

Here's the link:
https://www.xmedia-recode.de/download.php

https://www.youtube.com/watch?v=hAK_RhFbA5g
 
Back
Top Bottom