/mlsummaryy

Primary LanguageJavaScriptMIT LicenseMIT

mlsummaryy

NPM

Click para ver na web:

Click to see on the web:

NPM

Informações do Projeto:

Project Information:

Projeto com IA para fazer Downloads de Shorts em até 60 segundos, além de baixar, converter em MP4 print o que foi falado no vídeo.

AI-powered project to download Shorts in up to 60 seconds, in addition to downloading and converting to MP4 print what was said in the video.

video.mp4

Preview do projeto:

Project preview:

Captura de tela 2023-09-13 224049

Captura de tela 2023-09-13 224106

Tecnologias utilizadas:

Technologies used:

java

HTML

CSS

Trechos do Código:

code snippets:

import ytdl from "ytdl-core"
import fs from "fs"

export const download = (videoId) =>
  new Promise((resolve, reject) => {
    const videoURL = "https://www.youtube.com/shorts/" + videoId
    console.log("Realizando o download do vídeo:", videoId)

    ytdl(videoURL, { quality: "lowestaudio", filter: "audioonly" })
      .on("info", (info) => {
        const seconds = info.formats[0].approxDurationMs / 1000

        if (seconds > 60) {
          throw new Error("A duração desse vídeo é maior do que 60 segundos.")
        }
      })
      .on("end", () => {
        console.log("Download do vídeo finalizado.")
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

    <link rel="icon" type="image/svg+xml" href="/mllogo.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link
      href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"
      rel="stylesheet"
    />

    <title>ML Summary</title>
  </head>
  <body>
    <div id="app">
      <img src="/public/mllogo.svg" alt="Logo" />
      <h1>ML Summary</h1>

IDE

pycharm visual

Como executar o projeto

# clonar repositório
git clone https://github.com/Macaulylimacode/mlsummary

# entrar na pasta do projeto
cd mlsummary

# executar o projeto
./mvnw spring-boot:run

Autor

Macauly lima

linkedIn