mgilangjanuar / teledrive

The Google Drive/OneDrive/etc alternative using Telegram API
https://teledriveapp.com
GNU General Public License v3.0
2.04k stars 952 forks source link

Video Streaming Error #501

Open itsSagarBro opened 1 year ago

itsSagarBro commented 1 year ago

Problem I have uploaded a big movie file (1.8G), but whenever I try to stream it through Flutter App with raw url it gets infinite loading. I have deployed it in the railway free tier.

benjiworld commented 1 year ago

Hello.. before to consider a bug, check if your video file is "streamable". Often videos have a moov atom record inside that prevents the stream if the file "is not fully downloaded" before. Use the following code to verify. First check with mediainfo to see if video 'is streamable' (run the following in your terminal): mediainfo "--Inform=General;IsStreamable: %IsStreamable%" YourVideo.mp4. If the output is "IsStreamable: No" then you can use qt-faststart (a utility in ffmpeg) to move the Moov Atom, running this other command: qt-faststart YourVideo.mp4 YourVideo-new.mp4. Only when your video is fixed, you can upload to telegram and then use it via Teledrive. Bye...

itsSagarBro commented 1 year ago

Hello.. before to consider a bug, check if your video file is "streamable". Often videos have a moov atom record inside that prevents the stream if the file "is not fully downloaded" before. Use the following code to verify. First check with mediainfo to see if video 'is streamable' (run the following in your terminal): mediainfo "--Inform=General;IsStreamable: %IsStreamable%" YourVideo.mp4. If the output is "IsStreamable: No" then you can use qt-faststart (a utility in ffmpeg) to move the Moov Atom, running this other command: qt-faststart YourVideo.mp4 YourVideo-new.mp4. Only when your video is fixed, you can upload to telegram and then use it via Teledrive. Bye...

Thanks for the reply, but I think that's not a problem because I uploaded the same file on "@File_To_Link_2Bot" This telegram bot and it's streaming without any problem. And I tried your solution also but it is very slow you can check the uploaded video, it loaded fine at first but when I try to change the duration it takes a while to load.

discordfar commented 11 months ago

please fix streaming error, actual teledrive only storage and download work raw url not work stream download url not work stream please create stream url

itsSagarBro commented 11 months ago

please fix streaming error, actual teledrive only storage and download work raw url not work stream download url not work stream please create stream url

Thanks for the answer, But now I moved to Amazon S3, teledrive is a way slower for me.

discordfar commented 11 months ago

@itsSagarBro open this issue for devs fix in the future

discordfar commented 11 months ago

@greengeckowizard, @mgilangjanuar

Hi devs

Link RAW not play any media, audio and video not work i copy link RAW and past browser dev tools and i see error 404 how fix this problem

itsSagarBro commented 11 months ago

@discordfar @greengeckowizard @mgilangjanuar

Short video plays very well, under 50MB videos don't have any issues but when it comes to larger videos like 1GB to 5GB it can't able to play.

discordfar commented 11 months ago

all my files under 50mb, my files 8mb, mp4 and mp3 and not work for me with RAW link, not stream, only work download link. how teledrive version you using ?

itsSagarBro commented 11 months ago

@discordfar I have uninstalled Teledrive, but my short videos were played very well.

I was using the latest version of Teledrive.