lichess.org
Donate

PGN to video

Hello,

how is it possible to convert a chess game in PGN format to a video file?

Could you please recommend me a software or a script?

Thanks!
@tors42 said in #2:
> Hi!
> You can make an animated GIF of a game
>
> Chess on!

How to set a time delay between moves? Thanks
@Tamyrys said in #3:
> How to set a time delay between moves? Thanks

Maybe you can search the web for some tools which can help you do that.

Here's a link to someone giving an example using tool called "imagemagick",
http://blog.floriancargoet.com/slow-down-or-speed-up-a-gif-with-imagemagick/

The GIF from the Lichess link contains a variable delay which represents the time used for the moves during the game.
The example from the imagemagick link creates a new GIF with a fixed delay - but if that's ok with you maybe you can look into using it.

"convert -delay 100x100 JB3US0co.gif slower-but-fixed-rate.gif"

I assume there exists many other (free) tools out there which can help you.
Best of luck in your adventure!
@tors42 said in #4:
> Maybe you can search the web for some tools which can help you do that.

The reason I prefer mp4 video file is because I need the sounds of moving chess pieces. Animated gif isn't suitable.
@Tamyrys said in #5:
> I prefer mp4 video file is because I need the sounds

Oh - one suggestion could be to use the Lichess replay feature then - and use a screen recorder.

Here's an example where I recorded a couple of moves with audio - i.imgur.com/L5JBNGT.mp4

I used github.com/ammen99/wf-recorder to make the recording,
but it isn't certain that that recorder works on your machine...

wf-recorder -a -g "2096,44 1339x955" -f JB3US0co.mp4

Good luck!
Or just use OBS. The game can be replayed real-time from the analysis mode, it's in the menu under the move list there.
Or just use Google and search for the phrase `convert "PGN" to video' and try few of the links it gives you. (The double quotes are to tell the search engine that you really mean PGN and did not misspell PNG.)
@tors42 said in #6:
> Oh - one suggestion could be to use the Lichess replay feature then - and use a screen recorder.
>
> Here's an example where I recorded a couple of moves with audio - i.imgur.com/L5JBNGT.mp4

I would like to automate this process. Thank you for your help!

This topic has been archived and can no longer be replied to.