cabernetwork / cabernet

Cabernet allows control of IPTV streams. Plugins supports DaddyLive, Pluto TV, XUMO, M3U/XMLTV.XML files (SamsungTV, STIRR, DistroTV, Plex TV)
https://cabernetwork.github.io
MIT License
176 stars 23 forks source link

Integration with Plex #29

Closed MartinR577 closed 1 year ago

MartinR577 commented 2 years ago

I set up USTVGO. I'm getting a channel list and guide in plex but when I try to play any channel i get a Playback error

The log shows the following: 2022-09-02 21:03:19,189-NOTICE:plugin_channels USTVGO: Getting best video stream info for 9233011832 https://h5.ustvgo.la/AMC/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8zLzIwMjIgNDowMzoxNyBBTSZoYXNoX3ZhbHVlPThvVXQ2K1dxTzBDaUhPQS96ZlpPMXc9PSZ2YWxpZG1pbnV0ZXM9MjQw 2022-09-02 21:03:20,120-DEBUG:plugin_channels Found 1 Playlists 2022-09-02 21:03:20,120-DEBUG:plugin_channels 9233011832 will use 640x360 resolution at 488489bps 2022-09-02 21:03:22,275-INFO:web_handler [192.168.1.230] "GET /discover.json HTTP/1.1" 200 - 2022-09-02 21:03:22,317-INFO:web_handler [192.168.1.230] "GET /lineup_status.json HTTP/1.1" 200 - 2022-09-02 21:03:23,423-DEBUG:ffmpeg_proxy No Video Data, refreshing stream 2022-09-02 21:03:24,967-NOTICE:plugin_channels USTVGO: Getting best video stream info for 9233011832 https://h5.ustvgo.la/AMC/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8zLzIwMjIgNDowMzoyMiBBTSZoYXNoX3ZhbHVlPXhzMWk4SmhMK3dMNG1mTWdNTFFmWkE9PSZ2YWxpZG1pbnV0ZXM9MjQw 2022-09-02 21:03:25,841-DEBUG:plugin_channels Found 1 Playlists 2022-09-02 21:03:25,841-DEBUG:plugin_channels 9233011832 will use 640x360 resolution at 600967bps 2022-09-02 21:03:25,846-DEBUG:stream_queue Stream ended for this process, exiting queue thread 2022-09-02 21:03:25,849-DEBUG:ffmpeg_proxy Previous ffmpeg terminated 2022-09-02 21:03:25,849-DEBUG:ffmpeg_proxy Refresh Stream channelUri=https://h5.ustvgo.la/AMC/myStream/chunks.m3u8?nimblesessionid=156903272&wmsAuthSign=c2VydmVyX3RpbWU9OS8zLzIwMjIgNDowMzoyMiBBTSZoYXNoX3ZhbHVlPXhzMWk4SmhMK3dMNG1mTWdNTFFmWkE9PSZ2YWxpZG1pbnV0ZXM9MjQw 2022-09-02 21:03:26,641-INFO:web_handler [192.168.1.230] "GET /discover.json HTTP/1.1" 200 - 2022-09-02 21:03:26,683-INFO:web_handler [192.168.1.230] "GET /lineup_status.json HTTP/1.1" 200 - 2022-09-02 21:03:29,472-DEBUG:ffmpeg_proxy No Video Data, refreshing stream 2022-09-02 21:03:30,846-NOTICE:plugin_channels USTVGO: Getting best video stream info for 9233011832 https://h5.ustvgo.la/AMC/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8zLzIwMjIgNDowMzoyOCBBTSZoYXNoX3ZhbHVlPWNaL3VzeS92V3ZtZWt1SGhDL1AybGc9PSZ2YWxpZG1pbnV0ZXM9MjQw

This pattern continues and will happen for all channels. If i paste the URL https://h5.ustvgo.la/AMC/myStream/chunks.m3u8?nimblesessionid=156903272&wmsAuthSign=c2VydmVyX3RpbWU9OS8zLzIwMjIgNDowMzoyMiBBTSZoYXNoX3ZhbHVlPXhzMWk4SmhMK3dMNG1mTWdNTFFmWkE9PSZ2YWxpZG1pbnV0ZXM9MjQw in VLC the channels plays fine.

Here is my config.ini [main] maintenance_mode = False uuid = E3A05493-2B26-11ED-97A6-E848B8C82000

[loggers] keys = root

[logger_root] level = DEBUG handlers = loghandler

[handlers] keys = loghandler, filehandler

[formatters] keys = extend,simple

[handler_filehandler] enabled = False level = INFO formatter = extend class = lib.common.log_handlers.MPRotatingFileHandler args = (os.getenv('LOGS_DIR','data/logs')+'/cabernet.log', 'a', 10000000, 10)

[handler_loghandler] enabled = True level = DEBUG class = StreamHandler formatter = extend args = (sys.stdout,)

[formatter_extend] format = %(asctime)s-%(levelname)s:%(module)s %(message)s

[formatter_simple] format = %(levelname)s:%(module)s %(message)s

[hdhomerun] hdhr_id = 105AC264

[ustvgo] enabled = True

[plutotv] enabled = False

[m3u] enabled = False

[plutotv_default] label = PlutoTV Instance enabled = False program_thumbnail = poster player-tuner_count = 5 epg-hours = 12 channel-import_groups = False player-play_all_segments = True epg-enabled = False

[ustvgo_default] label = USTVGO Instance enabled = True player-tuner_count = 5 channel-import_groups = True player-play_all_segments = True player-stream_type = ffmpegproxy

[web] plex_accessible_ip = 192.168.1.245 plex_accessible_port = 5000

[paths] ffmpeg_path = C:\apps\cabernet\ffmpeg\ffmpeg.exe ffprobe_path = C:\apps\cabernet\ffmpeg\ffprobe.exe data_dir = C:\apps\cabernet\data

[display] display_level = 2-Expert

MartinR577 commented 2 years ago

I found the issue, changed the player-stream_type = ffmpegproxy to default and it works