garry’s blog
I spent fucking ages coding a whole cloud workflow to process videos on Azure Media Services. Like, a week or something, making it so when you uploaded a video it got turned into a thumbnail, a thumbnail video, and 3 different sized of video, then uploaded to our CDN. 

I was really happy to get it working, I was really happy that I could press a button and re-process 300 videos within a few minutes.

Then literally a month after I finished, I got this email
Oh nice one. So all I did was made the videos get processed with FFMpegCore, and although it was slower.. it works and is a much more fool proof system.
FFMpegArguments args = FFMpegArguments.FromUrlInput( new Uri( url ) );

var output = args.OutputToFile( tempFile, false, options =>
{
	options
		.WithDuration( maxDuration )
		.WithVideoCodec( VideoCodec.LibX264 )
		.WithVideoBitrate( bitrate )
		.WithFramerate( frameRate )
		.WithConstantRateFactor( crf )
		.WithSpeedPreset( Speed.Fast )
		.WithFastStart();
} );

await output.ProcessAsynchronously();
I was hesitant to do this because it's processing as an Azure function, so the hardware is really low power.. but for now it works. 

If it gets to be a problem in the future we can probably make a server in the office to work its way through a video processing queue.

Comments 13

Matias Barros
I hate cloud services so much for this kind of crap
So frustrating, but at the end of the day processing with FFMpeg is going to ensure you don't have to worry about this for a long, long time :)
Eventlessgaming
Wait i heard you got DMCAd  by Dafukboom what happened
Chapter One
Hey Gary, 

I'm taking a shot in the dark here and was wondering if you had time to sit down and evaluate my indie game that i've worked on in my free time for the last 6ish years. I don't want to take up too much of your time. Ideally, nothing more than 30 minutes. Just looking for a brief evaluation and hopefully some insight/guidance you might have for us based on your experience as a game developer.

The game is called Echoes of Ednus. If you'd be willing to entertain this request, you can dm me on insta @echoesofednus or email us at chapteronerpg@gmail.com.

Thank You,
Alex
Day 1 of waiting for an answer from senpai Garry
Shadowfinder Studios
Btw, have you checked out the new tigris service, they just started operating earlier this year. Their pricing is crazy good and they eliminate the need for a cdn while still automatically locating your data close to your customers using fly.io. It is pretty exciting, you could practically start your very own youtube or twitch service with it. And, the guys over at algora did just that and released their source code under MIT license. Pretty freaking awesome.


https://www.tigrisdata.com/
https://github.com/algora-io/tv
Shadowfinder Studios
Apologies AGPL license.
Nentityn 1
Garry, I hope you are your team are happy with Rust. It will be dead. It was good 2 years ago. Now you are killing yourself, and the game, and the people. A game should be stayed to around the same. If many updates keep on coming, it will mess the game, and the players. It is true, you are just too dumb to realize this. I myself found Rust very interesting to mess around with, many things possible in it. But a game should stay a game and not change over time. It is why games come and die, the developers are too dumb to realize this. But there is still some games. Anyways I hope your decisions didn't lead to this, you know. What goes around comes around. You and your team made bad further actions.
Taylor Snyder
oh my got Nentityn shut up
Good day, you are the best person, you gave Gmod, I bought it a long time ago on Steam and let me know you are the best, thanks for this half life 2 but the sandbox
Wasted 29 years making video games. You are doing not so bad, lmao
Hello, you should sell player behaviour data collected from rust, possibly to other game developers, i think you guys are geniuses in that matter. thank you for reading.

Add a Comment

Sign in with Google to leave a comment.

An error has occurred. Please reload the page. Reload πŸ—™