Opened 6 years ago

Closed 6 years ago

Last modified 6 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

Description

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
Icy-MetaData:1
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 by yunhai2009, 6 years ago

Resolution: fixed
Status: newclosed

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

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

comment:2 by Carl Eugen Hoyos, 6 years ago

Component: avformatundetermined
Keywords: m3u8 removed
Resolution: fixedinvalid
Type: sponsoring requestdefect
Version: 3.2.4unspecified
Note: See TracTickets for help on using tickets.