telegram-upload icon indicating copy to clipboard operation
telegram-upload copied to clipboard

Upload Video stream

Open temporhodes opened this issue 4 years ago • 13 comments

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.

temporhodes avatar Jul 16 '20 07:07 temporhodes

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.

Nekmo avatar Jul 20 '20 22:07 Nekmo

I just went here with the same problem. I'll be so happy with this feature! Thank you.

fnceba avatar Sep 06 '20 10:09 fnceba

Same I upload several big videos, but the user have to download to see it

dognk avatar Sep 18 '20 00:09 dognk

Hi @Nekmo i found this image how i can change the option in the bot to true because is for default false

dognk avatar Sep 18 '20 16:09 dognk

@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.

Nekmo avatar Sep 18 '20 19:09 Nekmo

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
Captura de pantalla 2020-09-18 a la(s) 3 36 05 p  m

dognk avatar Sep 18 '20 20:09 dognk

@nikotz same thing

YogurtWithSpoon avatar Sep 18 '20 21:09 YogurtWithSpoon

@nikotz @YogurtWithSpoon open a new issue. Please read the first message.

Nekmo avatar Sep 18 '20 21:09 Nekmo

Noticed something recently. If the size is under 10MB it will stream, but larger will tey to download the whole video.

temporhodes avatar Sep 29 '20 14:09 temporhodes

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

ShubhamKarala avatar Nov 03 '20 10:11 ShubhamKarala

same here, but i tried to forward the video file and it can streaming, not download again. 😅

ghost avatar Nov 22 '20 07:11 ghost

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: Capture

and its work to streaming not download again 😉

ghost avatar Nov 23 '20 08:11 ghost

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.

Nekmo avatar Jun 15 '23 21:06 Nekmo