{"id":17366899,"url":"https://github.com/gabrielrf/videocaptionsbot","last_synced_at":"2025-09-20T17:33:20.571Z","repository":{"id":189560658,"uuid":"680304237","full_name":"GabrielRF/VideoCaptionsBot","owner":"GabrielRF","description":"Telegram Bot @VideoCaptionsBot","archived":false,"fork":false,"pushed_at":"2023-09-10T16:13:03.000Z","size":59,"stargazers_count":8,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T11:23:29.835Z","etag":null,"topics":["ffmpeg","openai-whisper","pytelegrambotapi","python","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/VideoCaptionsBot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GabrielRF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-18T21:18:49.000Z","updated_at":"2024-12-25T00:15:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"e75f478d-ada1-48b5-96a8-35663af95d13","html_url":"https://github.com/GabrielRF/VideoCaptionsBot","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":0.4,"last_synced_commit":"4e45feb1a501f937119c90fd72d0c05e797b4400"},"previous_names":["gabrielrf/videocaptionsbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielRF%2FVideoCaptionsBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielRF%2FVideoCaptionsBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielRF%2FVideoCaptionsBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielRF%2FVideoCaptionsBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabrielRF","download_url":"https://codeload.github.com/GabrielRF/VideoCaptionsBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233680622,"owners_count":18713322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffmpeg","openai-whisper","pytelegrambotapi","python","telegram","telegram-bot"],"created_at":"2024-10-15T22:09:25.212Z","updated_at":"2025-09-20T17:33:15.244Z","avatar_url":"https://github.com/GabrielRF.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VideoCaptionsBot\n\u003e Em beta\n\n## Contribuições\n\nToda contribuição é bem vinda!\n\n* Verifique as issues abertas e, se possível, sugira soluções;\n* Abra novas issues;\n* Envie um PR (preferencialmente vinculado a uma issue);\n* Fale comigo no Telegram ([@GabrielRF](https://t.me/GabrielRF)).\n\n## Funcionamento\n\nEste bot possui dois processos em execução em paralelo. São eles:\n\n### VideoCaptionsBot.py\n\nO arquivo `videocaptionsbot.py` faz o `polling` das atualizações. Assim que recebe um arquivo, um vídeo ou uma \"mensagem de bolinha\", a mensagem é enviada ao _RabbitMQ_.\n\n#### Funções\n\n* `add_to_line`: Adiciona a mensagem recebida à fila;\n* `start`: Responde o comando `/start`;\n* `get_video`: Responde ao receber um vídeo, um arquivo ou uma \"mensagem de bolinha\".\n\n### Consumeline.py\n\nAo perceber alguma mensagem na fila do _RabbitMQ_, este arquivo inicia o processamento da mensagem.\n\n#### Funções\n\n* `subs_data`: Verifica os valores de tamanho da legenda e altura em relação ao vídeo;\n* `add_subtitles`: Adiciona as legendas com base no arquivo `srt`;\n* `remove_files`: Remove os arquivos do sistema;\n* `download_file`: Baixa o arquivo do servidor do Telegram;\n* `create_subs`: Cria o arquivo `.srt` com base na transcrição;\n* `voice_to_text`: Faz a transcrição do vídeo recebido;\n* `send_file`: Envia o arquivo com legendas ao usuário;\n* `consume_line`: Verifica se há arquivos na fila e dá início ao processamento da legenda.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielrf%2Fvideocaptionsbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielrf%2Fvideocaptionsbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielrf%2Fvideocaptionsbot/lists"}