Opened 10 days ago

Closed 8 days ago

Last modified 8 days ago

#7201 closed sponsoring request (fixed)

using ffmpeg request http was considered downloading

Reported by: yunhai2009 Owned by:
Priority: normal Component: avformat
Version: 3.2.4 Keywords: m3u8
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 (1)

comment:1 Changed 8 days ago by yunhai2009

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

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

Last edited 8 days ago by yunhai2009 (previous) (diff)
Note: See TracTickets for help on using tickets.