[FFmpeg-devel] [PATCH 1/1] avformat/hlsenc: Added configuration to override HTTP User-Agent

Steven Liu lingjiujianke at gmail.com
Mon Sep 4 10:03:11 EEST 2017


2017-09-04 14:47 GMT+08:00 Jeyapal, Karthick <kjeyapal at akamai.com>:
>>On 9/1/17, 5:36 PM, "Steven Liu" <lingjiujianke at gmail.com> wrote:
>>> Please find the patch attached.
>>>
>>> Regards,
>>> Karthick
>>>
>>>
>>>
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>
>>
>>FFmpeg has support it yet, you can use http method.
>
>>
>>liuqideMBP:dash liuqi$ ./ffmpeg -v debug -user_agent "StevenLiu" -i
>>http://192.168.0.202/stream999_low.m3u8 -c copy -f mpegts a.ts
>
> Hi Steven,
>
> Thanks for the reply. The above method for setting User-Agent works only HLS demuxer. It doesn’t work for HLS muxer. The patch that was attached was meant for HLS muxer.

Hi Karthick,
set user_agent better than user-agent, because the user-agent is
duplicate with user_agent, and the user-agent will be deprecated in
new version, refer to :
https://ffmpeg.org/ffmpeg-protocols.html#http

        BTW, the patch is ok, if modify the user-agent to user_agent



>
> Regards,
> Karthick
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list