Giter Club home page Giter Club logo

merge-bot's Introduction

π‡πžπ₯π₯𝐨, <πšŒπš˜πšπšŽπš›πšœ/>!


profile views Β· π™Άπš’πšπ™·πšžπš‹ πšπš˜πš•πš•πš˜πš πšŽπš›πšœ Β· πšƒπš˜πšπšŠπš• πš‚πšπšŠπš›πšœ


Language and Tools:

Flutter

Tools:

Environments:

Social:




I'm a Night πŸ¦‰
🌞 Morning 98 commits β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 12.93%
πŸŒ† Daytime 207 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 27.31%
πŸŒƒ Evening 260 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 34.3%
πŸŒ™ Night 193 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 25.46%

merge-bot's People

Contributors

dishapatel010 avatar yashoswalyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

merge-bot's Issues

ffmpeg Error

I am getting this error after pressing Merge....
[Errno 2] No such file or directory: 'ffmpeg'.

Any help to overcome the issue is highly appreciated.

error

plugins/usettings.py", line 18, in
editable: Message, uid: int, fname: str | None, lname: str | None
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

ffmpeg error

PermissionError: [Errno 13] Permission denied: 'ffmpeg'

Request restart feature

As your repo support upstream repo to avoid redeploy, you need to add restart option otherwise it needs redeploy to change effect.

Issue while Video+Subtitles Merging

It cannot be Merge Video and Subtitles...It works till the Downloaing the inputs and Merging too but in final step it Results an Error πŸ”„ Renaming Video and strucks...It shows in logs

if UPLOAD_TO_DRIVE[f"{cb.from_user.id}"]:
NameError: name 'UPLOAD_TO_DRIVE' is not defined

I Kept upload as Telegram but it asking Upload to Drive
So, please resolve the bug... its an impressive work thank you sir

Feature Request

Plz Add Log Chennal, so we can store our video in one place & Can easily find out whenever need

pyrogram

pyrogram which version work ?

The API key is required for new authorizations.

i already filled config like that you made https://telegra.ph/file/eae155c2918c9de8d5a55.jpg but i dont know why about this error

2022-07-20T03:20:19.236237+00:00 app[worker.1]: 20-Jul-22 03:20:19 - INFO - Bot started [bot.py:59]
2022-07-20T03:20:19.324943+00:00 app[worker.1]: 20-Jul-22 03:20:19 - INFO - Bot started [bot.py:59]
2022-07-20T03:20:19.611751+00:00 app[worker.1]: Traceback (most recent call last):
2022-07-20T03:20:19.611770+00:00 app[worker.1]: File "/usr/src/mergebot/bot.py", line 557, in
2022-07-20T03:20:19.612010+00:00 app[worker.1]: mergeApp.run()
2022-07-20T03:20:19.612012+00:00 app[worker.1]: File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/utilities/run.py", line 84, in run
2022-07-20T03:20:19.612088+00:00 app[worker.1]: self.start()
2022-07-20T03:20:19.612090+00:00 app[worker.1]: File "/usr/local/lib/python3.10/dist-packages/pyrogram/sync.py", line 66, in async_to_sync_wrap
2022-07-20T03:20:19.612153+00:00 app[worker.1]: return loop.run_until_complete(coroutine)
2022-07-20T03:20:19.612155+00:00 app[worker.1]: File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
2022-07-20T03:20:19.612279+00:00 app[worker.1]: return future.result()
2022-07-20T03:20:19.612287+00:00 app[worker.1]: File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/utilities/start.py", line 58, in start
2022-07-20T03:20:19.612345+00:00 app[worker.1]: is_authorized = await self.connect()
2022-07-20T03:20:19.612346+00:00 app[worker.1]: File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/auth/connect.py", line 40, in connect
2022-07-20T03:20:19.612404+00:00 app[worker.1]: await self.load_session()
2022-07-20T03:20:19.612412+00:00 app[worker.1]: File "/usr/local/lib/python3.10/dist-packages/pyrogram/client.py", line 574, in load_session
2022-07-20T03:20:19.612527+00:00 app[worker.1]: raise AttributeError("The API key is required for new authorizations. "
2022-07-20T03:20:19.612538+00:00 app[worker.1]: AttributeError: The API key is required for new authorizations. More info: https://docs.pyrogram.org/start/auth
2022-07-20T03:20:20.260283+00:00 heroku[worker.1]: State changed from up to crashed
2022-07-20T03:20:20.211410+00:00 heroku[worker.1]: Process exited with status 1

Rclone not Found Error

bro i'm trying to use Upload To Drive option but getting this error

Rclone not Found, Unable to upload to drive

how i get rclone config ?
how i setup rclone ?

there is no instructions mention on post. please help me to solve this issue.

File Merging Failed

2022-07-01T06:26:02.318884+00:00 app[worker.1]: transp = _UnixSubprocessTransport(self, protocol, args, shell,
2022-07-01T06:26:02.318884+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/asyncio/base_subprocess.py", line 36, in init
2022-07-01T06:26:02.318885+00:00 app[worker.1]: self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
2022-07-01T06:26:02.318885+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/asyncio/unix_events.py", line 799, in _start
2022-07-01T06:26:02.318885+00:00 app[worker.1]: self._proc = subprocess.Popen(
2022-07-01T06:26:02.318886+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/subprocess.py", line 969, in init
2022-07-01T06:26:02.318886+00:00 app[worker.1]: self._execute_child(args, executable, preexec_fn, close_fds,
2022-07-01T06:26:02.318886+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/subprocess.py", line 1845, in _execute_child
2022-07-01T06:26:02.318886+00:00 app[worker.1]: raise child_exception_type(errno_num, err_msg, err_filename)
2022-07-01T06:26:02.318887+00:00 app[worker.1]: FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

Unable to merge WEBVTT subtitles files

[matroska,webm @ 0x563ef678a5c0] Unknown/unsupported AVCodecID S_TEXT/WEBVTT.
[matroska,webm @ 0x563ef678a5c0] Could not find codec parameters for stream 2 (S
ubtitle: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (500
0000) options
[matroska,webm @ 0x563ef678a5c0] Auto-inserting h264_mp4toannexb bitstream filte
r
[concat @ 0x563ef677f740] Could not find codec parameters for stream 2 (Unknown:
none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (500
0000) options
Input #0, concat, from 'downloads/180233110/input.txt':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SA
R 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc
Metadata:
BPS : 896898
DURATION : 00:49:16.040000000
NUMBER_OF_FRAMES: 73901
NUMBER_OF_BYTES : 331408561
_STATISTICS_WRITING_APP: mkvmerge v66.0.0 ('Josie') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-10-20 11:54:25
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(tam): Audio: eac3, 48000 Hz, 5.1(side), fltp, 192 kb/s
Metadata:
title : CVA
BPS : 192000
DURATION : 00:49:16.064000000
NUMBER_OF_FRAMES: 92377
NUMBER_OF_BYTES : 70945536
_STATISTICS_WRITING_APP: mkvmerge v66.0.0 ('Josie') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-10-20 11:54:25
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2: Unknown: none
Cannot map stream #0:2 - unsupported type.
If you want unsupported types ignored instead of failing, please use the -ignore
_unknown option
If you want them copied, please use -copy_unknown

Feature request

Plz Add mp3 merger
And add mp3 and mp4 joiner alsoπŸ˜‹

Here are some issues I found

1.Need restart command to fetch the latest commit from upstream repo
2.When extracting subs and audios it will be great if the file is renamed to the original file name plus audio name.
Ex:
Video name = test123.mkv
Assume video has 3 subtitle files
1.en
2.th
3.und
So extracting subtitles the subtitles shuld be renamed to test123.en.srt , test123.th.srt, test123.und.srt Same applies for the audio also.
3.Also forward the video send by the user to the bot to the log channel so admin can see what kind of video is the file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.