How to download x seconds of a video hosted on an HTTP server?

There is an HTTP video http://example.com/video.mp4 and I want to download x seconds of it. How to do it?


  • Use less bandwidth than downloading the whole video, and then cutting it (can download a bit more if necessary and then cut).
  • Result should be a valid video file, not corrupt.
  • The more formats the better.
  • Free.
  • 1
    Maybe you can use VLC's network streaming/converting feature in conjunction with its stop time option. (Note: this is a wild guess, I've never tried it before.)
    – ComFreek
    May 12 '14 at 21:19
  • 1
    This should work. Read this link for more information: videolan.org/doc/streaming-howto/en/ch06.html
    – VicAche
    May 13 '14 at 20:59
  • Actually I searched for a program which can download x seconds of a stream, but VLC can do both (partially downloading a file or a stream, actually anything VLC can play)! It can be even done with GUI. @ComFreek convert your comment to an answer and I'll accept it. Aug 23 '14 at 5:41


  • Is there a way to provide time in h:m:s without converting it to seconds? Aug 26 '14 at 9:36
  • @SmitJohnt There is no way to do that, as far as I know. You can write a shell/Batch/PowerShell script to automate the conversion.
    – ComFreek
    Aug 26 '14 at 10:55
  • I want to use it from GUI Aug 26 '14 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.