Opened 6 years ago

Last modified 6 years ago

#6092 new defect

FFMpeg cannot deal the http streamed file

Reported by: ChaoYugang Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: http
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


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 is_stream&filesize\n",FILE,LINE);
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.

Change History (1)

comment:1 by Carl Eugen Hoyos, 6 years ago

Keywords: http added

If you have a fix for your issue please send a patch made with git format-patch to the development mailing list.
As an alternative, please explain here on the bug tracker how the issue you see can be reproduced.

Note: See TracTickets for help on using tickets.