Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#7201 closed defect (invalid)

using ffmpeg request http was considered downloading

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


ffmpeg http header:

GET /api/v1/vrs/hlsfile_remote/2/2018/05/12/20180512110607_xxxx/playlist.m3u8 HTTP/1.1
Accept: */*
Range: bytes=0-
Connection: close
Host: 120.26.10x.xx
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit?/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Cookie: SSO_COOKIE_KEY=09bdbb3b-b6a7-4ab5-8809-f64f67c9e3dd

follow is code:

AVDictionary *options = NULL;

av_dict_set(&options, "icy", NULL, 0);
av_dict_set(&options, "range", NULL, 0);
av_dict_set(&options, "headers", player->cookie, 0);

open input file
if (avformat_open_input(&player->avformat_context, url, fmt, &options) != 0)

follow is i use browser http header and ok:

GET /api/v1/vrs/hlsfile_remote/2/2018/05/12/20180512110607_xxxxx/playlist.m3u8 HTTP/1.1
Host: 120.26.10x.xx
Connection: close
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit?/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Cookie: VRS_USER_TOKEN=c290fd09-b247-4659-a563-65d6cc418e73

why did i get that result use the ffmpeg

Change History (2)

comment:1 Changed 2 years ago by yunhai2009

  • Resolution set to fixed
  • Status changed from new to closed

need av_dict_set(&options, "seekable", "0", 0);

Last edited 2 years ago by yunhai2009 (previous) (diff)

comment:2 Changed 2 years ago by cehoyos

  • Component changed from avformat to undetermined
  • Keywords m3u8 removed
  • Resolution changed from fixed to invalid
  • Type changed from sponsoring request to defect
  • Version changed from 3.2.4 to unspecified
Note: See TracTickets for help on using tickets.