[FFmpeg-trac] #6092(undetermined:new): FFMpeg cannot deal the http streamed file

FFmpeg trac at avcodec.org
Thu Jan 19 10:35:15 EET 2017

#6092: FFMpeg cannot deal the http streamed file
             Reporter:  ChaoYugang   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 If the http head has "Transfer-Encoding:chunked",
 the ffmpeg's process_line function deal it,
 then set "s->filesize=-1" and "s->chunksize=0".
 This show the file is streamed,
 but in http_read_header function in http.c file it does not set
 "h->is_streamed = 1".
 We test it should add the codes in http_read_header function before the
 codes "cookie_string(s->cookie_dict, &s->cookies);":
         if( h->is_streamed==0 && s->filesize==-1 ){
                 av_log( 0, AV_LOG_ERROR, "[%s:%d] fixed bug for
                 h->is_streamed = 1;
 How to reproduce:
 I am sorry I have not know how to reproduce it.
 I will continue to find the reproduce method.
 Or you may modify the codes in http_read_header function, add the codes:
     s->filesize  = -1;
     s->chunksize = 0;
 Then use build a new ffmpg lib,use the new lib to open a http mp4 file.
 % ffmpeg -i input ... output
 ffmpeg version
 built on ...
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

Ticket URL: <https://trac.ffmpeg.org/ticket/6092>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list