[FFmpeg-trac] #4126(avformat:closed): FFMPEG is very slow when trying to use a http url as source

FFmpeg trac at avcodec.org
Mon Jun 8 14:17:49 CEST 2015


#4126: FFMPEG is very slow when trying to use a http url as source
-------------------------------------+-------------------------------------
             Reporter:  srikanth     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:  http mkv     |  needs_more_info
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by syl22_00):

 There is indeed an issue there, but only when transcoding from a video to
 an audio file (even with "copy" codec). Note that wget is much slower than
 curl, which is consistent with ffmpeg download time when it is working
 properly. There is a 4x factor in time when trying to get the audio from a
 URL of a video file:

 time wget http://ispikit.com/installers/P1040120.mp4
 real    0m21.661s
 user    0m0.013s
 sys     0m0.061s

 time curl http://ispikit.com/installers/P1040120.mp4 > hello.mp4
 real    0m12.465s
 user    0m0.011s
 sys     0m0.043s

 time ffmpeg -i http://ispikit.com/installers/P1040120.mp4 -codec copy
 hello_1.mp4
 real    0m12.869s
 user    0m0.046s
 sys     0m0.041s

 time ffmpeg -i http://ispikit.com/installers/P1040120.mp4 -acodec copy
 hello_1.aac
 real    0m49.236s
 user    0m0.060s
 sys     0m0.043s

 time ffmpeg -i P1040120.mp4 -codec copy hello_2.mp4
 real    0m0.040s
 user    0m0.025s
 sys     0m0.014s

 time ffmpeg -i P1040120.mp4 -acodec copy hello_2.aac
 real    0m0.029s
 user    0m0.021s
 sys     0m0.007s

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4126#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list