Answer the question
In order to leave comments, you need to log in
How to download 61 minutes of video in 5 seconds remotely?
Hi everybody!
How can I quickly download part of a video from a remote large video file with ffmpeg?
ffmpeg -ss 01:00:00 -i http://example.com/videofile.flv -t 00:01:00 -vcodec copy -acodec copy file.flv
Answer the question
In order to leave comments, you need to log in
I did something similar as a student. There were mp3 files, not videos, but something similar.
Implemented like this:
Http server supports offset. I copied the example implementation of the python-fuse driver. implemented there downloading a remote file in blocks of a certain size. implemented a read operation on this file with support for offset and some buffer.
When launched, the script mounted the folder, and the file itself could be opened by the player. When rewinding, the player reread the reference points (which generated a lot of http requests) and scrolled through the virtual file, and in the buffer there was always only the block that is currently being played.
I also tried to watch video through this driver. but the implementation of buffering did not make it possible to enjoy the movie, but the rewinds worked fine.
I don't know if I can find this driver now. sourceforge.net/projects/fuse there are examples here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question