[FFmpeg-trac] #7201(avformat:new): using ffmpeg request http was considered downloading

FFmpeg trac at avcodec.org
Sat May 12 10:10:10 EEST 2018


#7201: using ffmpeg request http was considered downloading
-------------------------------------+-------------------------------------
             Reporter:  yunhai2009   |                     Type:
               Status:  new          |  sponsoring request
            Component:  avformat     |                 Priority:  normal
             Keywords:  m3u8         |                  Version:  3.2.4
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 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

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


More information about the FFmpeg-trac mailing list