winguru / xTeVe

M3U Proxy for Plex DVR and Emby Live TV
MIT License
2 stars 1 forks source link

URL encapsulation #3

Open Wheemer opened 3 years ago

Wheemer commented 3 years ago

Just wanted to say thanks, was needing epg timeshift in xteve and saw the developer was not interested. Was happy to find yours. Thanks for your efforts, it's working very well!

I must manually edit the m3u that xteve provides to add encapsulated code around the stream urls. I was wondering if it was possible to add a feature for that? I'm not sure how common this is but with TVHeadend it's almost a requirement.

This is the code I add: pipe:///usr/bin/ffmpeg -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2000 -probesize 1000k -analyzeduration 0 -fpsprobesize 0 -fflags -nobuffer -err_detect ignore_err -i [urlhere] -map 0 -codec copy -f mpegts -tune zerolatency pipe:1

For whatever reason the built in function for this doesn't work with TVHeadend. Thank you for your consideration.

Wheemer commented 3 years ago

OK I have submitted the feature request. I have the code I need entered into the ffmpeg options of xteve. Perhaps you could just make an option for ffmpeg to either operate as normal or encapsulate the urls.

winguru commented 3 years ago

@Wheemer I'll work on your request this weekend and see what I can come up with.