Project

General

Profile

FFMPEG Input to TVH - Not detected

Added by G C almost 2 years ago

Hello,

I am taking a feed from a remote HDHomerun and transcoding it using FFMPEG and trying to read that stream into TVH. I've seen a lot of threads on similar situations and tried all solutions. I'm obviously missing something silly. Take my simplest case (i'm running FFMPEG on xTeVe)

FFMPEG running with: -hide_banner -loglevel error -i [URL] -c copy -f mpegts pipe:1

So i'm just passing the stream through without any transcoding.

#1. TVH pointing to the URL directly http://XXX:34400/stream/XXXXX - No stream detected

#2. TVH pointing to a piped FFMPEG pipe:///config/iptv/ffmpeg-loop.sh http://XXX:34400/stream/XXX - No stream detected

ffmpeg-loop.sh just has a loop to detect a failed stream and restart - here is the FFMPEG command inside.

/usr/bin/ffmpeg -loglevel info -i "$2" -vcodec copy -acodec copy -f mpegts pipe:1

if I tick "EIT - skip TSID check" then the #2. above works. I'm not sure why though?

Can someone assist with some suggestions. Is there something obvious I am doing wrong? I couldn't find much documentation on the "EIT - skip TSID check" and what that really means

Here are the FFPROBE details for the streams

---HDHomerun directly which always works---
Input #0, mpegts, from 'http://XXX:5004/auto/v1':
Duration: N/A, start: 73649.208122, bitrate: N/A
Program 4164
Stream #0:0[0x65]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Side data:
cpb: bitrate max/min/avg: 15000000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:1[0x66](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 256 kb/s
Stream #0:2[0x6a](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, fltp, 64 kb/s (visual impaired) (descriptions) (dependent)
Stream #0:3[0x69](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4[0x1c21]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:5[0x1c33]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:6[0x1bbf]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:7[0x1bc1]: Unknown: none ([5][0][0][0] / 0x0005)

---OUTPUT FROM FFMPEG STREAM---
Input #0, mpegts, from 'http://XXX:34400/stream/XXX':
Duration: N/A, start: 1.400000, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Side data:
cpb: bitrate max/min/avg: 15000000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:1[0x101](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 256 kb/s


Replies (1)

RE: FFMPEG Input to TVH - Not detected - Added by clint jones over 1 year ago

Did you ever get it working?

sounds like your working with FFMpeg on that end turn your file into an M3u8 and TVH will play it as an IPTV channel

#!/bin/bash

/usr/bin/ffmpeg -ss 60 -i http://192.168.1.201:32000 \-c:v libx264 -crf 33 -preset veryfast -g 48 -sc_threshold 0 -vf scale=800:600 \-c:a aac -b:a 128k -ac 2 \-f hls -hls_time 4 /var/www/html/live1/mystream1.m3u8 -async 1 -vsync 1

the FFMPeg script is ran from the command line in a terminal takes a raw ts feed and turns it onto an M3u8 files and it plays great in TVH use memory instead of harddrive space so you don't work your disk to death

    (1-1/1)