Project

General

Profile

ffmpeg - iptv: stdin pipe unexpectedly closed: No data

Added by Jay Roy over 6 years ago

HTS Tvheadend 4.2.6-16~g42e737f
Ubuntu 16.04.5 LTS
Method to install ffmpeg - sudo apt-get install ffmpeg
whereis ffmpeg - ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz

ffmpeg version 2.8.14-0ubuntu0.16.04.1

I am trying to get ffmpeg working with an IPTV network. I edited my playlist to look like below

pipe:///usr/bin/ffmpeg -loglevel quiet -i http://****address-here/live/29463.ts -c copy -flags +global_header - strict -2 -f mpegts pipe:1

Channels load in Kodi but get the below error when opening a channel

iptv: stdin pipe unexpectedly closed: No data
subscription: 0003: service instance is bad, reason: No input detected

Without using the ffmpeg channels work but getting a lot of buffering and slow channel changes. I read it was better to use ffmpeg.


Replies (2)

RE: ffmpeg - iptv: stdin pipe unexpectedly closed: No data - Added by Jay Roy about 6 years ago

I got it working for .ts but wont work for .mp4. I used a text editior to edit the file at first and I think that was the problem. I found below on forum and this worked for .ts
Use perl to process, replace http with the full ffmpeg pipe http
perl -pi -e 's/^http\:\/\//pipe\:\/\/\/usr\/bin\/ffmpeg\ \-loglevel\ fatal\ \-re\ -\i\ http\:\/\//g' <downloaded m3u file>
Find the .ts part of the address, add on tail of ffmpeg command
perl -pi -e 's/\.ts/\.ts\ \-c\ copy\ \-f\ mpegts\ \-tune\ zerolatency\ pipe\:1/g' <downloaded m3u file>

I also done p@erl -pi -e 's/\.mp4/\.mp4\ \-c\ copy\ \-f\ mpegts\ \-tune\ zerolatency\ pipe\:1/g' <downloaded m3u file>@ but does not work. I get

iptv: stdin pipe unexpectedly closed: No data
Aug 17 16:35:40 tvheadend tvheadend[9100]: subscription: 0006: service instance is bad, reason: No input detected
    (1-2/2)