Streams could be of any type. I simply restream them using ffmpeg with the command...
ffmpeg -loglevel panic -hide_banner -http_proxy *proxy* -i *link* -vcodec copy -acodec copy -f mpegts pipe:
Here is the small app I made. https://github.com/Chris230291/STB-Proxy
Like I said I use the linuxserver.io docker image. https://github.com/linuxserver/docker-tvheadend
ffprobe seems to have no issues...
Input #0, mpegts, from 'http://10.0.1.200:8084/play/411b77650e174ce4a2478608e4d6a133/47785':
Duration: N/A, start: 1.400000, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 131 kb/s