Problem streaming in the app away from home (but browser streaming works)

Over cellular using my iPhone, I can stream fine from the web using my.channelsdvr.net, but can't from the app. When I try streaming from the app, I just get the spinning progress indicator for a minute or two, then the error "The connection to Channels DVR Server had a problem." But when I use the web to stream from the same device, it works fine. Any idea what's wrong and how to fix it? These are consistent, reproducible results. Channels server's running on an RPi4b, with hardware transcoding. Just weird it works in the browser, but not the app.

First, the log when streaming from the app, which doesn't work:

2024/01/24 19:27:43.412637 [TNR] Opened connection to 10A82776/2 for ch2.1 WGRZ-HD
2024/01/24 19:27:43.420431 [HLS] Starting live stream for channel 2.1 from 172.59.176.53
2024/01/24 19:27:44.303215 [HLS] Probed live stream in 882.062026ms: mpeg2video 1920x1080 tt 4946546bps
2024/01/24 19:27:46.916179 [ENC] Starting encoder for ch2.1 in /media/DVR/Streaming/ch2.1-dANY-f4e89a0536a3-3090726696/encoder-1-3202084246 at 1 (1.247633) (encoder=h264_v4l2m2m, resolution=720, deinterlacer=blend, bitrate=3916, segment_size=0.01)
2024/01/24 19:29:10.477927 [HLS] Stopping inactive session ch2.1-dANY-f4e89a0536a3
2024/01/24 19:29:10.478110 [HLS] Stopping transcoder session ch2.1-dANY-f4e89a0536a3 (out=1m27.400378s finished=false first_seq=1 last_seq=28)
2024/01/24 19:29:10.512426 [ENC] Stopped encoder for ch2.1 in /media/DVR/Streaming/ch2.1-dANY-f4e89a0536a3-3090726696/encoder-1-3202084246 after starting from 1 without encoding any segments
2024/01/24 19:29:10.522772 [TNR] Closed connection to 10A82776/2 for ch2.1 WGRZ-HD
2024/01/24 19:29:10.526757 [SNR] Statistics for ch2.1 WGRZ-HD: ss=100% snq=98%,97%-99% seq=100% bps=7968576,442176-11767296 pps=682,37-1007
2024/01/24 19:29:10.526948 [SNR] Buffer statistics for ch2.1 WGRZ-HD: buf=0% drop=0%

Log when streaming through the browser, which works:

2024/01/24 19:29:50.193944 [TNR] Opened connection to 10A82776/2 for ch2.1 WGRZ-HD
2024/01/24 19:29:50.200829 [HLS] Starting live stream for channel 2.1 from 172.59.176.53
2024/01/24 19:29:51.540294 [HLS] Probed live stream in 1.338970079s: mpeg2video 1920x1080 tt 5509333bps
2024/01/24 19:29:55.187255 [ENC] Starting encoder for ch2.1 in /media/DVR/Streaming/ch2.1-dANY-e7bcdb900867-617577040/encoder-1-1722278275 at 1 (1.761567) (encoder=h264_v4l2m2m, resolution=, deinterlacer=blend, bitrate=10000, segment_size=0.01)
2024/01/24 19:29:57.381132 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 341724, current: 0; changing to 341725. This may result in incorrect timestamps in the output file.
2024/01/24 19:29:57.425789 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 347730, current: 0; changing to 347731. This may result in incorrect timestamps in the output file.
2024/01/24 19:29:58.926474 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 527910, current: 0; changing to 527911. This may result in incorrect timestamps in the output file.
2024/01/24 19:29:59.516697 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 599982, current: 0; changing to 599983. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:00.751050 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 750132, current: 0; changing to 750133. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:03.022678 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 885267, current: 0; changing to 885268. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:03.068969 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 891273, current: 0; changing to 891274. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:03.124296 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 897279, current: 0; changing to 897280. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:04.766584 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1077459, current: 0; changing to 1077460. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:05.460475 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1116498, current: 0; changing to 1116499. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:06.954172 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1296678, current: 0; changing to 1296679. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:07.541643 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1332714, current: 0; changing to 1332715. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:09.875953 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1509891, current: 0; changing to 1509892. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:09.904393 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1512894, current: 0; changing to 1512895. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:11.441621 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1693074, current: 0; changing to 1693075. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:12.511915 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1732113, current: 0; changing to 1732114. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:14.128388 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1912293, current: 0; changing to 1912294. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:14.742794 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 1951332, current: 0; changing to 1951333. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:16.251062 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2131512, current: 0; changing to 2131513. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:17.161268 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2167548, current: 0; changing to 2167549. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:18.652956 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2347728, current: 0; changing to 2347729. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:19.580848 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2383764, current: 0; changing to 2383765. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:21.078441 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2563944, current: 0; changing to 2563945. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:21.969461 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2599980, current: 0; changing to 2599981. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:23.431293 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2780160, current: 0; changing to 2780161. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:24.358532 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2816196, current: 0; changing to 2816197. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:25.927721 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 2996376, current: 0; changing to 2996377. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:26.267646 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 3032412, current: 0; changing to 3032413. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:28.831366 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 3173553, current: 0; changing to 3173554. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:30.286746 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 3353733, current: 0; changing to 3353734. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:30.952526 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 3431811, current: 0; changing to 3431812. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:33.102769 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 3608988, current: 0; changing to 3608989. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:34.563505 [HLS] ffmpeg: ch2.1-dANY-e7bcdb900867-1-----10000-0--0-0---false-false-0.01-0:  [hls @ 0x361a0cb0] Non-monotonous DTS in output stream 0:0; previous: 3789168, current: 0; changing to 3789169. This may result in incorrect timestamps in the output file.
2024/01/24 19:30:34.577836 [HLS] Stopping transcoder session ch2.1-dANY-e7bcdb900867 (out=44.237344s finished=false first_seq=1 last_seq=21)
2024/01/24 19:30:34.605758 [ENC] Stopped encoder for ch2.1 in /media/DVR/Streaming/ch2.1-dANY-e7bcdb900867-617577040/encoder-1-1722278275 after encoding 1 to 19
2024/01/24 19:30:34.615822 [TNR] Closed connection to 10A82776/2 for ch2.1 WGRZ-HD
2024/01/24 19:30:34.617779 [SNR] Statistics for ch2.1 WGRZ-HD: ss=100% snq=98%,97%-99% seq=100% bps=8920702,3086208-11550720 pps=763,265-989
2024/01/24 19:30:34.617945 [SNR] Buffer statistics for ch2.1 WGRZ-HD: buf=0% drop=0%
1 Like