Jalle19 / node-ffmpeg-mpegts-proxy

Simple proxy for leveraging ffmpeg to convert any source URL into MPEG-TS over HTTP
GNU General Public License v2.0
167 stars 52 forks source link

Custom HTTP Headers #55

Open EItanMao opened 4 years ago

EItanMao commented 4 years ago

Hello any way to override the custom HTTP header using the avconvOptions?

Currently I can see that it uses the default "Lavf/57.56.101" and I need it to be something else.

Jalle19 commented 4 years ago

It should be possible, see section 3.12 in https://ffmpeg.org/ffmpeg-protocols.html

ngnmtl commented 3 years ago

[ { "name": "Channel One", "provider": "Provider One", "url": "/channel1", "source": "https://example.com/test.m3u8", "avconv": "/usr/bin/ffmpeg", "avconvOptions": { "input": [ "-headers", "Cookie: foo=bar; foo2=bar2"] } }]