Skip to content

downloadFile, offset and limit problem #3262

@dev4ever888

Description

@dev4ever888

Hello,

I've been testing the functionality of tdLib on nodejs with tdl for a few days now.
But for a few days now I've been having trouble with the downloadFile method.
There's something I don't understand about this method.

I do a first download with an offset that starts at 0 and I limit it to 4,000,000, so 4mo.
For the second download, I change the offset to 4,000,000 and set the limit to 0 to take the rest of the video.
For the first part, no playback problems because I had put the vital playback files at the beginning of the video.
In the second video, however, the entire beginning is empty by the length of the first video.

Why does it behave like this when downloaded with offset? Has anyone managed to put two parts back together and make it viewable?

I'm very interested, I've learned a lot in the last few days about ffmpeg and all that revolves around it, but I must admit that I'm stumped ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions