Hello everyone! This post will be about some video thing, but can I just say, today is mathematically nice(12+12 = (20)24) Anyways, lets talk video editing. So, what can we use to edit video? There are tens of good GUI programs to do so, but thats not what this post is about, is it! Yeah, lets talk editing video from terminal. So first, lets talk about what options do we have. Since there are alot of video codecs, formats, and whatever else, we propably won't need to develop it from scratch, but instead, we can use ffmpeg. Ffmpeg is a program used everywhere, and it allows you to do preety much anything with video. So, lets try and do a video edit with it, shall we? So, lets record a video first. I recorded a video of me playing snake, and you can watch it in ../Stigl-Projects/snake-original.mov, now, lets edit it! First, we need to convert the .mov to something that every player can accept, lets do mp4: ffmpeg -i snake-original.mov snake-original.mp4 Now, we have to cut off only the center 400x400 image in the center, which I can do like so: ffmpeg -i snake-original.mp4 -vf "crop=400:400:440:130" -c:a copy snake-cropped.mp4 I edited the x and y coordinates until I liked, it and now, its time to add some music! We can simply do that by adding an audio and video input, like so: ffmpeg -i snake-cropped.mp4 -i ~/Downloads/music/somerandomtrack.mp3 snake-cropped-music.mp4 And thats it! We have successfully edited our video, now just gotta upload it somewhere, and we are done! The final upload should be on ../Stigl-Projects/snake-edited.mp4 See you next time!