telegram-upload
telegram-upload copied to clipboard
Upload Video stream
thanks for the great app. i have a suggestion and request if possible. when i upload videos from local or other bots, it is possible to stream videos without downloading completely. but with telegram-upload i can't stream.should i add an option or flag to enable this ?
thanks.
It's interesting, I would need to do some research on it. Telegram-upload uses a library (Telethon) to connect to Telegram, it depends on the library.
I just went here with the same problem. I'll be so happy with this feature! Thank you.
Same I upload several big videos, but the user have to download to see it
Hi @Nekmo i found this
how i can change the option in the bot to true because is for default false
@nikotz I know that option but it is not for this issue. The issue is to upload incomplete local files to Telegram. That option is to mark files as stream compatible. They are different things.
but @Nekmo when i upload a video whit telegram-upload the user in the group have to download the video, are you sure that is not the issue? sorry for my ignorance you are. the god here.
pd: in my case how a can fix my problem
@nikotz same thing
@nikotz @YogurtWithSpoon open a new issue. Please read the first message.
Noticed something recently. If the size is under 10MB it will stream, but larger will tey to download the whole video.
thanks for the great app. i have a suggestion and request if possible. when i upload videos from local or other bots, it is possible to stream videos without downloading completely. but with telegram-upload i can't stream.should i add an option or flag to enable this ?
thanks.
So I saw this issue and tested this personally, this is not a problem with the script but rather telegram itself. All I want to add is that if you upload .mkv format videos file, it will not stream before downloading. I would recommend using .mp4 format video files that are able to stream without downloading completely. I checked the script with uploading .mp4 files and it streamed without any problem
same here, but i tried to forward the video file and it can streaming, not download again. 😅
i get it, i just add code supports_streaming=True
to message = self.send_file(entity, file, thumb=thumb, caption=file_caption, force_document=force_file, progress_callback=progress, attributes=attributes, supports_streaming=True)
in file client.py
like this:
and its work to streaming not download again 😉
This issue is for upload videos while the file is downloading from other source (the file is partialy downloaded). The support for video streaming (aka play the video without download it in the Telegram client) must be detected wirthout the usage of supports_streaming=True
. If the autodetect does not work, please open a new issue.