Project

General

Profile

Bug #4179

IPTV script with ffmpeg encode fails when & inside -i

Added by m m almost 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
IPTV
Target version:
-
Start date:
2017-01-14
Due date:
% Done:

0%

Estimated time:
Found in version:
v4.1-2401
Affected Versions:

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

#1

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?

#2

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.

#3

Updated by Jaroslav Kysela almost 8 years ago

The http parameters should be like '?param1=val1&param2=val2' etc.. So your URL should be like 'http://server/path?param1=val1&param2=val2'.

Also available in: Atom PDF