R
R
ruboss2015-10-17 17:59:09
linux
ruboss, 2015-10-17 17:59:09

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

Here I skip the first hour of the video and download 61 minutes.
It takes omg 20 minutes.
The execution time of this operation = uploading the video and splitting it locally.
How can you speed up the process?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2015-10-17
@sim3x

No way, if on the other side no one thought about your desire

E
eri, 2015-10-19
@eri

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 question

Ask a Question

731 491 924 answers to any question