this post was submitted on 02 Oct 2023
29 points (82.2% liked)

Open Source

30284 readers
542 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

I basically made this program to convert Lemmy comments to videos just like those Reddit videos on YouTube. I know that there are a few bugs here and there, I will fix them later. For now, the most obvious one is the transition effect video not showing up during transitions, only the audio does. There also might be issues when you run it, I didn't test if it works when the github version gets cloned so tell me if something is wrong, thanks. I also just got it to work as I wanted even though there are improvements I could make if it weren't 10pm for me. I will do the improvements when I have the time, for now, take this one as a alpha version.

Anyways, what do you guys think?

Edit: Sorry about the previous error, made the program remove the .gitkeep files beforehand as they break the program

Edit 2: Added a config.json for easy configuration. I also made a quick project blog page explaining how it works: https://asudox.dev/projects/lemmyctts

top 15 comments
sorted by: hot top controversial new old
[–] Pantoffel@feddit.de 6 points 11 months ago (3 children)

So, it seems I'm really out of the loop. Is this some AI thing generating a video from my comment? Or does this scroll through all comments while "recording" the screen?

[–] Asudox@lemmy.world 8 points 11 months ago* (last edited 11 months ago)

It firstly takes the posts sorted by the SORT_TYPE (e.g. Hot) from a community, for example, asklemmy@lemmy.world

It then gets the comments from that random post sorted by Top and selects as much as the COMMENT_LIMIT is. Then the function screenshotLemmy() from screenshotLemmy.py gets called. This function uses the selenium library to simulate the browser of choice (e.g. Firefox) and screenshots the random comments and the random post selected earlier. After that, createTTS() inside createTTS.py gets called which converts the post and the comments to speech using the gTTS library. Then, createLemmyVideo() inside createLemmyVideo.py gets called. This function firstly creates parts of the final video that will be put together later using moviepy. After all that, cleanup() inside finalCleanup.py gets called, which deletes everything inside the tts, video/parts and screenshots folder. The put together video (final video) will be inside the video folder.

[–] library_napper@monyet.cc 3 points 11 months ago (1 children)

God no. Please, we dont need more anon-style YouTube videos that just read low quality text content that was never intended to he in a video format

[–] Asudox@lemmy.world 4 points 11 months ago (1 children)

Wait for when someone makes a 4chan to video converter :)

[–] library_napper@monyet.cc 3 points 11 months ago

This is basically what my nightmares are made of

[–] Asudox@lemmy.world 2 points 11 months ago* (last edited 11 months ago)
[–] Shadow@lemmy.ca 4 points 11 months ago* (last edited 11 months ago) (1 children)

Can you link to one of these videos? Would be good to have an example in the github readme somewhere. I have no idea what this is about. What reddit videos?

[–] Asudox@lemmy.world 5 points 11 months ago* (last edited 11 months ago) (2 children)

For example this one: https://youtu.be/Rz6RDJNwe7Y?si=gVG2SLMh6vGIjZVX

Mine isn't as advanced as the current ones though.

[–] PipedLinkBot@feddit.rocks 4 points 11 months ago

Here is an alternative Piped link(s):

https://piped.video/Rz6RDJNwe7Y?si=gVG2SLMh6vGIjZVX

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

[–] Shadow@lemmy.ca 3 points 11 months ago (2 children)
[–] loki@lemmy.ml 5 points 11 months ago

People who make these videos also buy views to appear interesting, until organic views are consistent

[–] Asudox@lemmy.world 2 points 11 months ago (1 children)

Yeah, though Lemmy's current asklemmy communities aren't that active, so I doubt you can get something interesting all the time.

[–] nix@merv.news 2 points 11 months ago* (last edited 11 months ago) (1 children)

Those videos do really well on TikTok too. You need Minecraft gameplay in the background though lol

[–] Asudox@lemmy.world 1 points 11 months ago

I could've done that as well, though it might slow the video creation even more and also is extra work. I might think about doing it someday as an optional option.

[–] DJSpunTheDisc@lemm.ee 2 points 11 months ago

I don't like these videos, but it could boost Lemmy's popularity if used right.