[FFmpeg-user] specifying header for http post

Gyan Doshi ffmpeg at gyani.pro
Tue Mar 30 20:46:38 EEST 2021



On 2021-03-30 20:44, Daniel Oberhoff via ffmpeg-user wrote:
> Hello
>
> I am trying to add an authorization header to a http post output, but somehow cant seem to succeed.
>
> my request looks like this:
>
> ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 -vframes 1  -headers "Authorization: foo" -f image2 -chunked_post 0 https://foo <https://foo/>.org/endpoint -loglevel trace
>
>
> but the trace doesnt mention the auth header at all or respect the chunked_post 0. am I missing something?

You need to use the image2 option protocol_opts to pass on these options.

See the last example at http://www.ffmpeg.org/ffmpeg-formats.html#Options-7

Regards,
Gyan


More information about the ffmpeg-user mailing list