Custom MPEG-TS Input » History » Revision 6
Revision 5 (Jaroslav Kysela, 2014-11-17 20:58) → Revision 6/28 (Jaroslav Kysela, 2014-11-17 21:57)
h1. Custom MPEG-TS Input h2. Requirement 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. h2. IPTV URLs Note: Always try the command without pipe:// prefix on standard command line, if it works with a stdout redirection to a file!! .h3 Transcode to H264 video <pre> pipe:///usr/bin/ffmpeg -loglevel fatal -nostdin -re -i INPUTLINK -vcodec libx264 copy -acodec copy -mbd rd -copyinkf -flags +ilme+ildct -fflags +genpts \ -metadata service_provider=STRING -metadata service_name=STRING -f mpegts -tune zerolatency pipe:1 </pre> .h3 Direct copy <pre> pipe:///usr/bin/ffmpeg -loglevel fatal -nostdin -i INPUTLINK -vcodec copy -acodec copy -metadata service_provider=STRING -metadata service_name=STRING -f mpegts -tune zerolatency pipe:1 </pre> h2. Other solutions (HTTP proxy) [[https://github.com/Jalle19/node-ffmpeg-mpegts-proxy | A simple ffmpeg HTTP proxy using nodejs]|