In the URL field of the tvheadend iptv settings I put:
Code:
pipe:///script.sh
The script contains:
Code:
#!/bin/bash
pipe:///usr/bin/ffmpeg -loglevel fatal -i http://ip?id=1&a=1&b=2 -vcodec copy -acodec copy -f mpegts pipe:1
However running the script shows an error because of the & symbol in the command. Seems that the bash script only executes the ffmpeg command until the &a=1. This leads to an error because the auth for the stream can not be done.
Adding “” to the source does work the job, the script executes, but tvheadend does not play the stream.
Code:
#!/bin/bash
pipe:///usr/bin/ffmpeg -loglevel fatal -i "http://ip?id=1&a=1&b=2" -vcodec copy -acodec copy -f mpegts pipe:1
Can someone help me?