Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#6061 closed defect (invalid)

-headers option not found (ffmpeg 3.2.2 Windows)

Reported by: rasmusvhansen Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: rasmusvhansen@gmail.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I am trying to add a custom http header when streaming to a http server by using the -headers option.

using http://user:password@localhost:8082/stream1 does not work either (no "Authorization" header is added to the request).
Is the -headers option not supported on Windows? Or am I doing something totally wrong here?

How to reproduce:

C:\github\video\src\server>ffmpeg -headers "a:b" -i cropped.ts http://localhost:8082/stream1
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Option headers not found.

Change History (3)

comment:1 Changed 3 years ago by rasmusvhansen

  • Cc rasmusvhansen@gmail.com added
  • Version changed from unspecified to 3.2.1

comment:2 Changed 3 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.2.1 to git-master

For future tickets: Please always test current FFmpeg git head before reporting issues, if you believe anything is unclear on the Zeranoe download page, please tell us! (There is no release support for Windows.)

You are specifying a (non-existing) option -header for the input file cropped.ts, invalid options for input files are not accepted.

comment:3 Changed 3 years ago by rasmusvhansen

Ahhh - so by putting the option before the -i, I made it an option for the input file.

I moved it so it now says

ffmpeg -i cropped.ts -headers "a:b" http://localhost:8082/stream1

And it works. Thank you for the hint!

Version 0, edited 3 years ago by rasmusvhansen (next)
Note: See TracTickets for help on using tickets.