Release IPTV remuxer for tvheadend - make any stream work as IPTV input
#31
Is there a way to get this running on a Pi 2 running OpenELEC? Bit of a linux newbie here, and from what I gather there are no build tools/package managers available for the OS
Reply
#32
(2015-03-01, 14:47)username145 Wrote: Is there a way to get this running on a Pi 2 running OpenELEC? Bit of a linux newbie here, and from what I gather there are no build tools/package managers available for the OS

It's not possible to run this on OpenElec since it uses node.js. You can do the transcoding directly in tvheadend these days, see https://tvheadend.org/projects/tvheadend...G-TS_Input.
Reply
#33
How did you use node-ffmpeg-mpegts-proxy? I'm using HTS Tvheadend 4.1-208~gab30678 and adding MUX url in form of http://localhost:9128/channel1 causes fail (scan: fail). However changing this to pipe:///usr/bin/wget -qO- http://localhost:9128/channel1 makes everything ok. Is it by design or is it tvheadend related issue?
Reply
#34
What does the proxy say when you use the URL directly as a mux? Also try with 127.0.0.1 instead of localhost.
Reply
#35
changing localhost to 127.0.0.1 brings no effect, below are logs for:
- pipe:///wget mux url version: http://pastebin.com/raw.php?i=2KVpezb2
- http:// mux url version: http://pastebin.com/raw.php?i=izMdGRD1
Reply
#36
Hi, I'm doing some testings with your proxy and it is working great. I just want to ask one thing about TVH side config.

Is this procedure correct:

1- Create a IPTV network
2- Create a mux on the created IPTV network, pointing to the desired channel (http://localhost:port/channel)
3- If scan results in Ok, map the created service

If I have 10 channels, I need to repeat items 2 and 3 ten times right?
Is it possible to add one mux only (eg http://localhost:port/muxes) and when doing the scan it returns 10 services for the 10 channels?

Thanks
Reply
#37
Your steps are correct, unfortunately you have to add one mux for each stream.
Reply
#38
I have read the readme file, but I don´t understand the following instruction
Quote:install the required libraries by running npm install in the project directory
What are the required libraries and where is project directory? Could anybody please post the concrete commands I have to run in the terminal?
Reply
#39
It's exactly what it says:

Code:
git clone https://github.com/Jalle19/node-ffmpeg-mpegts-proxy.git
cd node-ffmpeg-mpegts-proxy
npm install

Edit: and yes you have to run it in a terminal (and it won't work on Windows).
Reply
#40
Thank you. I didn´t know the git clone command, I´m a linux newbie.

After installing I run the following command in the terminal

Code:
nodejs node-ffmpeg-mpegts-proxy.js -p 9182 -a avconv -v -s /examples/sources.json

I used the original sources.json file to test the proxy. Curiously it doesn´t work. The following info comes up.

Code:
2015-11-21T19:54:16.425Z - info: Unable to read source definitions, JSON is malformed
2015-11-21T19:54:16.441Z - info: Server listening on port 9182

Has anybody an idea?
Reply
#41
Are you sure you didn't touch the example file? I tried both an online JSON validator as well as running the program with the examples/source.json file and both worked just fine.

Edit: I see your problem, change "/examples/sources.json" to "examples/sources.json".
Edit 2: Obviously the error message should be more obvious in this case (the file is just not there).
Reply
#42
Wink 
Oh, I was blind as a bat Big Grin
Reply
#43
I defined 3 streams in the sources file to test my server-client configuration.
Code:
[
    {
        "name": "daserste",
        "provider": "Provider One",
        "url": "/channel1",
        "source": "http://api.iptv.ink/pl.m3u8?ch=71565725"
    },
    {
        "name": "HR",
        "provider": "Provider Two",
        "url": "/channel2",
        "source": "http://api.iptv.ink/pl.m3u8?ch=92038145"

    },
    {
        "name": "WDR HD",
        "provider": "Provider Two",
        "url": "/channel3",
        "source": "http://api.iptv.ink/pl.m3u8?ch=86222576"

    }
]

If I try these in vlc with the url defined in tvheadend server (http://localhost:9183/channel<nr>), it works pretty good. However if I start kodi, the tvheadend htsp client works curiously. The source "HR" appears in the category "Radio", the other both in "TV". Sometimes the client plays the stream correctly, sometimes it doesn´t and at the gui appears the message "Tvheadend HTSP Client - No input detected".

In kodi I activeted the first channel and after a few seconds I switched to the third channel, but it doesn´t work. The following error occured:
Code:
error: avconv exited with code 255
For details look at the example log

When I tried it in vlc, the same error occured but the process was resumed after it. In kodi it seems the connection get lost after the error.
Reply
#44
Something seems to be wrong with your "daserste" stream.
Reply
#45
(2014-12-05, 12:19)negge Wrote: You can take the stream URL from tvheadend and add it as a channel in the remuxer, then add the necessary parameters to get the stream working in Logitech Media server. That's assuming the latter can play stuff from HTTP.

Negge,

Newbie here, and looking for something like this IPTV Mux.

What I (think) I want: The idea here is to be able to stream an MPEG TS to a given set of client locations so that the tuners at these select locations can select 1 channel for viewing and several other channels for recording. The server should do all the heavy lifting, with the clients merely required to tune in (or out.)

1. Input a number of TV channels via tuners and IPTV links into Tvheadend (or another ffmpeg capable server),
2. Transcode selected channels if necessary,
3. Then output selected channels (including transcoded or untranscoded) into a single MPEG TS for output to a given IP address over public Internet or private network.
4. Have many such MPEG TS streams output to different IP addresses with varying selections of Tvheadend input channels.

QUESTIONS:

A. Can your script do above, or possibly any other project you know? Any specific instructions/caveats?

B. What do you think of emby.media Server compared with Tvheadend 4.0 ?

Thanks much !
Athar.
Toronto.
Reply

Logout Mark Read Team Forum Stats Members Help
IPTV remuxer for tvheadend - make any stream work as IPTV input0