Project

General

Profile

Custom MPEG-TS Input » History » Version 9

Jaroslav Kysela, 2014-11-17 23:33

1 1 Jaroslav Kysela
h1. Custom MPEG-TS Input
2
3
h2. Requirement
4
5 2 Jaroslav Kysela
The TVHeadend 3.9.2100 and up for the pipe:// URL support. Note that TVHeadend expects the input in the raw MPEG-TS format with correct PAT/PMT tables.
6 1 Jaroslav Kysela
7
h2. IPTV URLs
8
9 5 Jaroslav Kysela
Note: Always try the command without pipe:// prefix on standard command line, if it works with a stdout redirection to a file!!
10
11 7 Jaroslav Kysela
h3. Transcode to H264 video
12 6 Jaroslav Kysela
13 1 Jaroslav Kysela
<pre>
14 8 Jaroslav Kysela
pipe:///usr/bin/ffmpeg -loglevel fatal -i INPUTLINK -vcodec libx264 -acodec copy -copyinkf -flags +ilme+ildct -fflags +genpts
15 1 Jaroslav Kysela
  -metadata service_provider=STRING -metadata service_name=STRING -f mpegts -tune zerolatency pipe:1
16 6 Jaroslav Kysela
</pre>
17
18 7 Jaroslav Kysela
h3. Direct copy
19 6 Jaroslav Kysela
20
<pre>
21 8 Jaroslav Kysela
pipe:///usr/bin/ffmpeg -loglevel fatal -i INPUTLINK -vcodec copy -acodec copy -metadata service_provider=STRING
22 6 Jaroslav Kysela
  -metadata service_name=STRING -f mpegts -tune zerolatency pipe:1
23 1 Jaroslav Kysela
</pre>
24
25
h2. Other solutions (HTTP proxy)
26
27 9 Jaroslav Kysela
"A simple ffmpeg HTTP proxy using nodejs":https://github.com/Jalle19/node-ffmpeg-mpegts-proxy