[IDEA] Make a video out of a chess game.

Sort:
b10fu3l

My idea is to be able to make a video out of a chess game, as if you were just pressing the right arrow key in the game analysis page. It will use MoviePy, a Python library, to make the videos. It will be on a website, so anyone can use it immediately. On the website, you can also give it an analysis link, and it will show the move classifications as well. Or maybe I'll write a chess engine in JS and have it do the analysis for you. The point is, chess YouTubers can make videos more easily as it creates the video for you. It will also give a ZIP file containing all the images used.

Just to be clear, this is only a concept (for now), but I MIGHT make it a reality.

Threexk

ffmpeg can make video out of gif (that is already an option), so what's wrong with that?

GM_Salzi

You can already create a video out of a game if you press the share button when you opened the game and then you can choose animated gif.

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

Martin_Stahl
GM_Salzi wrote:

You can already create a video out of a game if you press the share button when you opened the game and then you can choose animated gif.

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

There is a JS version of Stockfish and I'm pretty sure that it's being used for the browser based engines here.

b10fu3l
Threexk wrote:

ffmpeg can make video out of gif (that is already an option), so what's wrong with that?

1. I have no idea on how to get FFMpeg to work.

2. Wait, what??

b10fu3l
GM_Salzi wrote:

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

Fair point.

b10fu3l

Also did I mention it will have sound effects? And this isn't meant to be useful, it's just for me to practice my Python skills (specifically the parts I'm bad at and the parts that I want to learn).

GM_Salzi
Martin_Stahl wrote:
GM_Salzi wrote:

You can already create a video out of a game if you press the share button when you opened the game and then you can choose animated gif.

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

There is a JS version of Stockfish and I'm pretty sure that it's being used for the browser based engines here.

I know, but the we talked about writing a engine in js, not using a finished js library.

I personally would recommend C or C++ to write a Engine. Stockfish is also written in C++

b10fu3l
GM_Salzi wrote:
Martin_Stahl wrote:
GM_Salzi wrote:

You can already create a video out of a game if you press the share button when you opened the game and then you can choose animated gif.

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

There is a JS version of Stockfish and I'm pretty sure that it's being used for the browser based engines here.

I know, but the we talked about writing a engine in js, not using a finished js library.

I personally would recommend C or C++ to write a Engine. Stockfish is also written in C++

Yes, but how would I get that on a web page. Don't say WASM, it doesn't work well.

Attack_Always_Attack
GM_Salzi wrote:
Martin_Stahl wrote:
GM_Salzi wrote:

You can already create a video out of a game if you press the share button when you opened the game and then you can choose animated gif.

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

There is a JS version of Stockfish and I'm pretty sure that it's being used for the browser based engines here.

I know, but the we talked about writing a engine in js, not using a finished js library.

I personally would recommend C or C++ to write a Engine. Stockfish is also written in C++

Stockfish: stack or heap memory?

b10fu3l

Also this is meant to be like a bunch of snippets that I can Ctrl-C if I need it, such as the engine, the video maker (for automated editing), etc.

b10fu3l
Attack_Always_Attack wrote:
GM_Salzi wrote:
Martin_Stahl wrote:
GM_Salzi wrote:

You can already create a video out of a game if you press the share button when you opened the game and then you can choose animated gif.

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

There is a JS version of Stockfish and I'm pretty sure that it's being used for the browser based engines here.

I know, but the we talked about writing a engine in js, not using a finished js library.

I personally would recommend C or C++ to write a Engine. Stockfish is also written in C++

Stockfish: stack or heap memory?

What's that?

b10fu3l

I found a chess engine tutorial here: https://www.youtube.com/playlist?list=PLZ1QII7yudbc-Ky058TEaOstZHVbT-2hg (from Build Your Own X)

GM_Salzi
b10fu3l wrote:
Attack_Always_Attack wrote:
GM_Salzi wrote:
Martin_Stahl wrote:
GM_Salzi wrote:

You can already create a video out of a game if you press the share button when you opened the game and then you can choose animated gif.

Also, i do not think writing a chess engine in JS is a good idea, because it is a very slow language

There is a JS version of Stockfish and I'm pretty sure that it's being used for the browser based engines here.

I know, but the we talked about writing a engine in js, not using a finished js library.

I personally would recommend C or C++ to write a Engine. Stockfish is also written in C++

Stockfish: stack or heap memory?

What's that?

in basic terms stack memory is managed by your os, because the things that are saved in it are very short-lived. The heap memory are managed by the program itself, because the objects are saved longer. Also the heap is more practical to build custom data structures

@Attack_Always_Attack I think stockfish uses a combination like every other program does. I do not think it is a good idea to safe the transposition table in the stack neither saving the function calls for searching the game tree in the heap (I do not even know if that would be possible)

Attack_Always_Attack

@GM_Salzi; thank you for the clarification. Your explanation makes a lot of sense. It's nice to see Jeet Kune Do's practicality in programming

b10fu3l

@GM_Salzi Thanks for the clarification!

dawgisgreat
b10fu3l hat geschrieben:

My idea is to be able to make a video out of a chess game, as if you were just pressing the right arrow key in the game analysis page. It will use MoviePy, a Python library, to make the videos. It will be on a website, so anyone can use it immediately. On the website, you can also give it an analysis link, and it will show the move classifications as well. Or maybe I'll write a chess engine in JS and have it do the analysis for you. The point is, chess YouTubers can make videos more easily as it creates the video for you. It will also give a ZIP file containing all the images used.

Just to be clear, this is only a concept (for now), but I MIGHT make it a reality.

learn too write hello world first lol

b10fu3l

Python: print("Hello, world!")

JavaScript: console.log("Hello, world!");

Java:

public class HelloWorld {

public static void main(String[] args) {

System.out.println("Hello, world!");

}

}

C/C++:

#include <stdio.h>

int main() {

printf("Hello, world!");

return 0;

}

Swift: print("Hello, world!")

Let me know if you want me to write Hello World in other languages! Also, you're meant to use the word "to" instead of "too", but I'm being a little picky, aren't I?

Danke, dass du das gelesen hast! (Thanks for reading this!)

Attack_Always_Attack

Yikes, looks like that's what happens when there's an unbacked opinion...

Well defended, @b10fu3l.

b10fu3l
Attack_Always_Attack wrote:

Yikes, looks like that's what happens when there's an unbacked opinion...

Well defended, @b10fu3l.

Thanks!