Problem with avconv header
Added by Ben Wonder over 9 years ago
Hello,
I try to play a http stream with TVH 4.05 on a Rasperry Pi 2 running latest OSMC and Kodi TVH client (14.2).
It works perfect for:pipe:///usr/bin/avconv -i http://video1.anixehd.tv:8080/Apple/wifistream.m3u8 -acodec copy -vcodec copy -f mpegts pipe:1
But when I try to send a http header because I have to spoof my IP Adress all I got is an Error: "HTTP error 403 Forbidden."
pipe:///usr/bin/avconv -headers $'X-Forwarded-For: 195.186.136.21\r\n' -i http://pebbles106-lh.akamaihd.net/i/rtl_1@97459/index_900_av-p.m3u8 -acodec copy -vcodec copy -f mpegts pipe:1
This works perfect in Kodi's Simple IPTV Client with a m3u playlist containing follwoing code:http://pebbles107-lh.akamaihd.net/i/sat1_1@97461/index_900_av-p.m3u8|X-Forwarded-For=195.186.136.21
#EXTINF:-1 tvg-id="RTL.de" tvg-logo="rtl.png",RTL
Maybe the syntax is wrong?
Anybody know how I get this working ?
Replies (3)
RE: Problem with avconv header - Added by Ben Wonder over 9 years ago
I talked with the developers of libav and they told me it's a problem they didn't know about and it will be fixed.
RE: Problem with avconv header - Added by Hans Peter over 9 years ago
I tried with ffmpeg and serveral syntax but i get it not working... If somebody have an answer, please post it. Thanks.
RE: Problem with avconv header - Added by Ben Wonder over 9 years ago
It works just fine now with avconv but you have to compile it from source by your self from a version created after Thu, 30 Jul 2015.
https://git.libav.org/?p=libav.git;a=commit;h=5ae178539b91d25710b7bb322d156c31aea9f8bf