Camera.ffmpeg able to add extra parameter before the input parameter

The ffmpeg is sensitive to the order of the arguments, therefore if you want to specify any kind of source modifier parameters (e.g. -headers, -cookies, -referer) you have to write it before the -i <SROURCE>!

The current integration has an extra_arguments parameter that is suitable for configuring the transcoding but unfortunately, it can’t use to change anything on the source side.

Examples

Not working

ffmpeg \
  -i 'http://www.idokep.hu/idokepradar/public_radar_terkep.mp4' \
  -referer 'http://www.idokep.hu/' \
  'out.mp4'

Working

ffmpeg \
  -referer 'http://www.idokep.hu/' \
  -i 'http://www.idokep.hu/idokepradar/public_radar_terkep.mp4' \
  'out.mp4'

Same request, i need to pass a parameter before the input

ffmpeg \
  -loop 1 \
  -i 'http://192.168.1.250/XXXX/snapshot_720.jpg'