Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to make screenshots? #893
Comments
This comment has been minimized.
This comment has been minimized.
|
Without downloading it? It's impossible. You can select the 10-20 random parts to screenshots selecting 10-20 random pieces, but those will definitely be downloaded. This feature is not part of a torrent client function, must be built on top of it. Would be great that if you find it or build it, that you shared it with us :) |
This comment has been minimized.
This comment has been minimized.
|
@DiegoRBaquero I incorrectly explained my idea - yes, I have to download this pieces, but I don't want to download full videofile. For example, in WebTorrent, when we start downaloding some video, we can see preview in main menu. So by this way I want to get "screenshots". |
This comment has been minimized.
This comment has been minimized.
|
@iLeonidze You can see the code for how we do this in WebTorrent Desktop here: https://github.com/feross/webtorrent-desktop/blob/64f49e4d4fa742d18809e54be3edd93d65055c39/src/renderer/lib/torrent-poster.js We take advantage of the fact that we're running in a browser context (since it's an Electron app) to implement it simply. Basically, we add the video file to a I plan to pull these out into their own npm packages so you can use them more easily. |
This comment has been minimized.
This comment has been minimized.
|
Here's one of them: |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
I want my app automatically capture over 10-20 random screenshots from the mp4 video in the torrent, without downloading it, but I can't find this feauture in the API.