xteve-project / xTeVe

M3U Proxy for Plex DVR and Emby Live TV
MIT License
1.77k stars 228 forks source link

Qnap, xTeve und Plex with IPTV is not working #293

Open chris71swiss opened 2 years ago

chris71swiss commented 2 years ago

Hello all,

I hope someone can help me further, I have no idea what else to try.

I have a QNap NAS. TVS-463 with software version 5.0.0. On this I have installed Plex 1.25.1, xTeve 2.2 and ffmpeg 4.4.0.

Then I have an IPTV provider. The channels in the m3u file look like this:

EXTINF:-1 tvg-id="SRF 1 HD CH" tvg-name="SRF 1 CH" tvg-logo="http://###.###.###.###/picons/srf1.png" group-title="Switzerland",SRF 1 CH

http://######.link:8080/########/gb1xKuyYNf/33460

If I open this link "http://######.link:8080/########/gb1xKuyYNf/33460" in VLC with networkstrem, then this channel can run on VLC.

Adding the m3u file in xTeVe works. The channels are recognized. Then I added an EPG file "xmltv-complet.xml". Also this works so far. Stations assigned under mapping.

Here a photo of my settings in xTeVe:

Screenshot 2022-01-27 090455 Screenshot 2022-01-27 090540 Screenshot 2022-01-27 090604 Screenshot 2022-01-27 090622

Now my problem:

Neither with the link: http://192.168.1.5:34400/m3u/xteve.m3u nor in Plex nor with the links from http://192.168.1.5:34400/lineup.json do I get the streams to run.

I have mapped only 4 channels for the test.

What am I doing wrong ?

Thanks for your help.

Greetings Chris

chris71swiss commented 2 years ago

Pleas help me ;-)

Garmatant commented 2 years ago

Can you paste what the xTeVe logs show when you try to open a stream?

chris71swiss commented 2 years ago

Hier the Logs:

2022-02-25 11:50:21 [xTeVe] Buffer: true [ffmpeg]

2022-02-25 11:50:21 [xTeVe] Buffer Size: 4096 KB

2022-02-25 11:50:21 [xTeVe] Channel Name: SRF 1 HD CH

2022-02-25 11:50:21 [xTeVe] Client User-Agent: Lavf/58.65.101

2022-02-25 11:50:21 [xTeVe] Streaming Status: Playlist: M3U - Tuner: 1 / 1

2022-02-25 11:50:21 [xTeVe] FFMPEG path: /usr/bin/ffmpeg

2022-02-25 11:50:21 [xTeVe] Streaming URL: http://streamx.link:8080/XXXXXXXXX/gb1xKuyYNf/3348

2022-02-25 11:50:21 [xTeVe] FFMPEG: Processing data

2022-02-25 11:50:21 [xTeVe] Streaming Status: Receive data from FFMPEG

2022-02-25 11:50:22 [xTeVe] FFMPEG log: Decoder (codec ac3) not found for input stream #0:1

2022-02-25 11:50:22 [xTeVe] [ERROR] FFMPEG error (Streaming was stopped by third party transcoder (FFmpeg / VLC)) - EC: 1204

2022-02-25 11:50:22 [xTeVe] Streaming Status: Client has terminated the connection

2022-02-25 11:50:22 [xTeVe] Streaming Status: Channel: SRF 1 HD CH (Clients: 0)

2022-02-25 11:50:22 [xTeVe] Streaming Status: Channel: SRF 1 HD CH - No client is using this channel anymore. Streaming Server connection has ended

2022-02-25 11:50:22 [xTeVe] Streaming Status: Playlist: M3U - Tuner: 0 / 1

greetings Chris

chris71swiss commented 2 years ago

This is the log, with Setting "no Buffer"

2022-02-25 13:14:56 [xTeVe] [WARNING] Don't run this as Root!

2022-02-25 13:14:56 [xTeVe] Version: 2.1.2 Build: 0120

2022-02-25 13:14:56 [xTeVe] Database Version: 2.1.0

2022-02-25 13:14:56 [xTeVe] System IP Addresses: IPv4: 6 | IPv6: 0

2022-02-25 13:14:56 [xTeVe] Hostname: ChrisNAS

2022-02-25 13:14:56 [xTeVe] System Folder: /share/homes/admin/.xteve/

2022-02-25 13:14:56 [xTeVe] Load Settings: /share/homes/admin/.xteve/settings.json

2022-02-25 13:14:56 [xTeVe] Temporary Folder: /share/CACHEDEV1_DATA/.qpkg/XTeve/tmp/xteve/2020-06-G2XM-WRCY64/

2022-02-25 13:14:56 [xTeVe] GitHub: https://github.com/xteve-project

2022-02-25 13:14:56 [xTeVe] Git Branch: master [xteve-project]

2022-02-25 13:14:56 [xTeVe] SSDP / DLNA: true

2022-02-25 13:14:57 [xTeVe] Update Available: Version: 2.2.0.0200

2022-02-25 13:14:57 [xTeVe] Update Server: GitHub

2022-02-25 13:14:57 [xTeVe] Start Update: Branch: master

2022-02-25 13:14:57 [xTeVe] [ERROR] bad status: 404 Not Found (Update failed) - EC: 6002

2022-02-25 13:14:57 [xTeVe] UUID: 2020-06-G2XM-WRCY64

2022-02-25 13:14:57 [xTeVe] Tuner (Plex / Emby): 1

2022-02-25 13:14:57 [xTeVe] EPG Source: XEPG

2022-02-25 13:14:57 [xTeVe] Plex Channel Limit: 480

2022-02-25 13:14:57 [xTeVe] Backup Path: /share/homes/admin/.xteve/backup/

2022-02-25 13:14:57 [xTeVe] Backup file: /share/homes/admin/.xteve/backup/xteve_auto_backup_20220225_1314.zip

2022-02-25 13:14:57 [xTeVe] Open: /share/Videos/schweiz.m3u

2022-02-25 13:14:57 [xTeVe] Check File: /share/Videos/schweiz.m3u

2022-02-25 13:14:57 [xTeVe] Save File: /share/Videos/schweiz.m3u [ID: MBB6M6AC8QV3HYPF1BQI]

2022-02-25 13:14:57 [xTeVe] Open: /share/Videos/epg.xml

2022-02-25 13:14:57 [xTeVe] Check File: /share/Videos/epg.xml

2022-02-25 13:14:57 [xTeVe] Save File: /share/Videos/epg.xml [ID: XWV7QRLG5EQG4IFOA9CF]

2022-02-25 13:14:57 [xTeVe] All streams: 60

2022-02-25 13:14:57 [xTeVe] Active streams: 60

2022-02-25 13:14:57 [xTeVe] Filter: 1

2022-02-25 13:14:57 [xTeVe] XEPG: Parse XMLTV file: XMLTV

2022-02-25 13:14:58 [xTeVe] XEPG: Update database

2022-02-25 13:14:58 [xTeVe] XEPG: Map channels

2022-02-25 13:14:58 [xTeVe] XEPG: Cleanup database

2022-02-25 13:14:58 [xTeVe] XEPG Channels: 28

2022-02-25 13:14:58 [xTeVe] DVR IP: 253.253.253.253:34400

2022-02-25 13:14:58 [xTeVe] XEPG: Create XMLTV file (/share/homes/admin/.xteve/data/xteve.xml)

2022-02-25 13:14:58 [xTeVe] XEPG: Compress XMLTV file (/share/homes/admin/.xteve/data/xteve.xml.gz)

2022-02-25 13:14:59 [xTeVe] XEPG: Create M3U file (/share/homes/admin/.xteve/data/xteve.m3u)

2022-02-25 13:14:59 [xTeVe] XEPG: Ready to use

2022-02-25 13:15:38 [xTeVe] Buffer: false [-]

2022-02-25 13:15:38 [xTeVe] Channel Name: SRF 1 HD CH

2022-02-25 13:15:38 [xTeVe] Client User-Agent: Lavf/58.65.101

2022-02-25 13:15:38 [xTeVe] Streaming URL: http://streamx.link:8080/XXXXXXXXXX/gb1xKuyYNf/3348

2022-02-25 13:15:38 [xTeVe] Streaming Info: URL was passed to the client.

2022-02-25 13:15:38 [xTeVe] Streaming Info: xTeVe is no longer involved, the client connects directly to the streaming server.


This is the log, with Setting "xTeVe" as Buffer:

2022-02-25 13:19:37 [xTeVe] [WARNING] Don't run this as Root!

2022-02-25 13:19:37 [xTeVe] Version: 2.1.2 Build: 0120

2022-02-25 13:19:37 [xTeVe] Database Version: 2.1.0

2022-02-25 13:19:37 [xTeVe] System IP Addresses: IPv4: 6 | IPv6: 0

2022-02-25 13:19:37 [xTeVe] Hostname: ChrisNAS

2022-02-25 13:19:37 [xTeVe] System Folder: /share/homes/admin/.xteve/

2022-02-25 13:19:37 [xTeVe] Load Settings: /share/homes/admin/.xteve/settings.json

2022-02-25 13:19:37 [xTeVe] Temporary Folder: /share/CACHEDEV1_DATA/.qpkg/XTeve/tmp/xteve/2020-06-G2XM-WRCY64/

2022-02-25 13:19:37 [xTeVe] GitHub: https://github.com/xteve-project

2022-02-25 13:19:37 [xTeVe] Git Branch: master [xteve-project]

2022-02-25 13:19:37 [xTeVe] SSDP / DLNA: true

2022-02-25 13:19:38 [xTeVe] Update Available: Version: 2.2.0.0200

2022-02-25 13:19:38 [xTeVe] Update Server: GitHub

2022-02-25 13:19:38 [xTeVe] Start Update: Branch: master

2022-02-25 13:19:38 [xTeVe] [ERROR] bad status: 404 Not Found (Update failed) - EC: 6002

2022-02-25 13:19:38 [xTeVe] UUID: 2020-06-G2XM-WRCY64

2022-02-25 13:19:38 [xTeVe] Tuner (Plex / Emby): 1

2022-02-25 13:19:38 [xTeVe] EPG Source: XEPG

2022-02-25 13:19:38 [xTeVe] Plex Channel Limit: 480

2022-02-25 13:19:38 [xTeVe] Backup Path: /share/homes/admin/.xteve/backup/

2022-02-25 13:19:38 [xTeVe] Backup file: /share/homes/admin/.xteve/backup/xteve_auto_backup_20220225_1319.zip

2022-02-25 13:19:38 [xTeVe] Open: /share/Videos/schweiz.m3u

2022-02-25 13:19:38 [xTeVe] Check File: /share/Videos/schweiz.m3u

2022-02-25 13:19:38 [xTeVe] Save File: /share/Videos/schweiz.m3u [ID: MBB6M6AC8QV3HYPF1BQI]

2022-02-25 13:19:38 [xTeVe] Open: /share/Videos/epg.xml

2022-02-25 13:19:38 [xTeVe] Check File: /share/Videos/epg.xml

2022-02-25 13:19:38 [xTeVe] Save File: /share/Videos/epg.xml [ID: XWV7QRLG5EQG4IFOA9CF]

2022-02-25 13:19:38 [xTeVe] All streams: 60

2022-02-25 13:19:38 [xTeVe] Active streams: 60

2022-02-25 13:19:38 [xTeVe] Filter: 1

2022-02-25 13:19:38 [xTeVe] XEPG: Parse XMLTV file: XMLTV

2022-02-25 13:19:39 [xTeVe] XEPG: Update database

2022-02-25 13:19:39 [xTeVe] XEPG: Map channels

2022-02-25 13:19:39 [xTeVe] XEPG: Cleanup database

2022-02-25 13:19:39 [xTeVe] XEPG Channels: 28

2022-02-25 13:19:39 [xTeVe] XEPG: Create XMLTV file (/share/homes/admin/.xteve/data/xteve.xml)

2022-02-25 13:19:39 [xTeVe] DVR IP: 253.253.253.253:34400

2022-02-25 13:19:39 [xTeVe] XEPG: Compress XMLTV file (/share/homes/admin/.xteve/data/xteve.xml.gz)

2022-02-25 13:19:40 [xTeVe] XEPG: Create M3U file (/share/homes/admin/.xteve/data/xteve.m3u)

2022-02-25 13:19:40 [xTeVe] XEPG: Ready to use

2022-02-25 13:20:16 [xTeVe] Buffer: true [xteve]

2022-02-25 13:20:16 [xTeVe] Buffer Size: 4096 KB

2022-02-25 13:20:16 [xTeVe] Channel Name: SRF 1 HD CH

2022-02-25 13:20:16 [xTeVe] Client User-Agent: Lavf/58.65.101

2022-02-25 13:20:17 [xTeVe] Streaming Status: Playlist: M3U - Tuner: 1 / 1

2022-02-25 13:20:17 [xTeVe] Streaming Type: [TS]

2022-02-25 13:20:17 [xTeVe] Streaming URL: http://streamx.link:8080/XXXXXXXXX/gb1xKuyYNf/3348

2022-02-25 13:20:17 [xTeVe] Streaming Status: HTTP Response Status [200] OK

2022-02-25 13:20:17 [xTeVe] Content Type: video/mp2t

2022-02-25 13:20:20 [xTeVe] Streaming Status: Client has terminated the connection

2022-02-25 13:20:20 [xTeVe] Streaming Status: Channel: SRF 1 HD CH (Clients: 0)

2022-02-25 13:20:20 [xTeVe] Streaming Status: Channel: SRF 1 HD CH - No client is using this channel anymore. Streaming Server connection has ended

2022-02-25 13:20:20 [xTeVe] Streaming Status: Playlist: M3U - Tuner: 0 / 1


thanks for your Help !

Greetings Chris

Garmatant commented 2 years ago

I'm running it on a 20.04 LTS server with ffmpeg 4.2.4-1ubuntu0.1 and xTeVe 2.2.0. Plex 1.25.6.5577 runs separately on a Synology NAS. I get the same failure as you if I try running with no buffer. I can successfully run using ffmpeg or xTeVe as the buffer.

Some things stand out from your logs:

2022-02-25 13:14:56 [xTeVe] [WARNING] Don't run this as Root!

You appear to be running it as root. I don't do that, so can't say what impact that would have.

2022-02-25 13:14:57 [xTeVe] Update Available: Version: 2.2.0.0200

You're not running the latest version, even though you said you installed 2.2. Maybe try using the latest version?

2022-02-25 11:50:22 [xTeVe] FFMPEG log: Decoder (codec ac3) not found for input stream #0:1

Does the build of ffmpeg you're using not support AC-3? You can check by running ffmpeg -codecs | grep "AC-3". Mine shows:

 DEA.L. ac3                  ATSC A/52A (AC-3) (decoders: ac3 ac3_fixed ) (encoders: ac3 ac3_fixed )
 DEA.L. eac3                 ATSC A/52B (AC-3, E-AC-3)

Your FFmpeg Options are different than what mine came with. You can try what I have and set the buffer to ffmpeg: -hide_banner -loglevel error -i [URL] -c copy -f mpegts pipe:1

chris71swiss commented 2 years ago

Hi,

OK, i had try your settings. With your settings i have this error:

2022-02-28 22:47:32 [xTeVe] Buffer Size: 4096 KB

2022-02-28 22:47:32 [xTeVe] Channel Name: VIP SW: SRF 1 FHD

2022-02-28 22:47:32 [xTeVe] Client User-Agent: Lavf/58.65.101

2022-02-28 22:47:33 [xTeVe] Streaming Status: Playlist: Schweiz Neu - Tuner: 1 / 1

2022-02-28 22:47:33 [xTeVe] FFMPEG path: /usr/bin/ffmpeg

2022-02-28 22:47:33 [xTeVe] Streaming URL: http://tunestream.me:8080/XXXXXXX/XXXXXXXX/9165

2022-02-28 22:47:33 [xTeVe] FFMPEG: Processing data

2022-02-28 22:47:33 [xTeVe] Streaming Status: Receive data from FFMPEG

2022-02-28 22:47:33 [xTeVe] FFMPEG log: [mpegts @ 0x560fe269f360] dimensions not set

2022-02-28 22:47:33 [xTeVe] [ERROR] FFMPEG error (Streaming was stopped by third party transcoder (FFmpeg / VLC)) - EC: 1204

2022-02-28 22:47:33 [xTeVe] FFMPEG log: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

2022-02-28 22:47:33 [xTeVe] FFMPEG log:

2022-02-28 22:47:33 [xTeVe] Streaming Status: Client has terminated the connection

2022-02-28 22:47:33 [xTeVe] Streaming Status: Channel: VIP SW: SRF 1 FHD (Clients: 0)

Thanks for your help

Greetings Chris

Garmatant commented 2 years ago

I suggest you update xTeVe to 2.2.0.0200 and retest.