Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.06k stars 233 forks source link

Support multi part streamable mp4 while using "--large-files split" #192

Closed arkaroy14 closed 1 year ago

arkaroy14 commented 1 year ago

Description

I am trying to upload any mp4 whose size > 2gb so here i am using "--large-files split". But using this command mp4 uploading in various parts files but they are not streamable.

What I Did

telegram-upload --to me 'input.mp4' --large-files split

Ex: here i am trying to upload 2.5gb mp4 to telegram using this command it splitting into 2 files 2gb and 500 mb but both showing as files not able to stream.

arkaroy14 commented 1 year ago

To solve this issue i had used mp4box module along with telegram-upload . First i checked, if file size greater than 2 gb then check if filename is mp4 use mp4box split and upload those split using telegram-upload. else other format video, convert into mp4 using ffmpeg then used mp4box split and telegram-upload to again upload all split files. It will be good if this feature can be merged to telegram-upload to easy upload large video files as streamable.

lapidu commented 1 year ago

Hello @arkaroy14, I have the same problem. Could you provide me with your code?

Thank You

SoravKu commented 1 year ago

@arkaroy14 @lapidu You can try this: https://GitHub.com/TheCaduceus/tg-upload

arkaroy14 commented 1 year ago

@lapidu i have used very basic commands here and used pyrogram as it's giving very good speed. Telethon speed much lower. I have added thumbnail, also after upload duration now showing in telegram those wasn't working for me if i used TheCaduceus tg-upload. Check my code below https://github.com/arkaroy14/tg-pyrogram-upload

SoravKu commented 1 year ago

@lapidu i have used very basic commands here and used pyrogram as it's giving very good speed. Telethon speed much lower. I have added thumbnail, also after upload duration now showing in telegram those wasn't working for me if i used TheCaduceus tg-upload. Check my code below https://github.com/arkaroy14/tg-pyrogram-upload

Check v1.0.9 release of tg-upload: https://github.com/TheCaduceus/tg-upload/releases

arkaroy14 commented 1 year ago

@SoravKu nice copy paste of my code. Nice keep going copying others work