Bug #4179
IPTV script with ffmpeg encode fails when & inside -i
0%
Description
I wanted to use a script for the IPTV network
URL: pipe:///storage/.kodi/userdata/script.sh
script.sh:
#!/bin/bash
/usr/bin/ffmpeg -re -i http://source&a=1&b=2 -c copy -f mpegts pipe:1
When I call the script I see the ffmpeg output: HTTP error 403 forbidden because ffmpeg does not get anything after the & symbol. The url is cutted there. If I add "" here: -i "http://source&a=1&b=2" the output of ffmpeg is different and tvheadend does not see the stream.
Any idea?
History
Updated by m m almost 8 years ago
Now I added "" around the -i "http://source?a?1&b=2" and it seems to work but tvheadend does not play the stream. Could someone tell me why?
Updated by Andreas Fornberg almost 8 years ago
m m wrote:
Now I added "" around the -i "http://source?a?1&b=2" and it seems to work but tvheadend does not play the stream. Could someone tell me why?
Never got it working here with only ffmpeg command.
I need to use livestreamer/streamlink to get it working with pipe.
Updated by Jaroslav Kysela almost 8 years ago
The http parameters should be like '?param1=val1¶m2=val2' etc.. So your URL should be like 'http://server/path?param1=val1¶m2=val2'.