Allow alternate player app from DVR web UI

Since the DVR web UI player has issues (at least for me) and is only 'kinda supported', is there a chance we can select an alternate player to use, like VLC? see racameron's reply that my browser has issues and it has nothing to do with Channels DVR web UI Player

Since the web UI isn't used for viewing recordings, only the browser is?

I usually view my recordings from a Windows PC and know others also use a Mac.

Although I have the Channels iOS client, I rarely view from an iPod, iPhone or iPad.

I can just view the recordings directly with VLC, but if the web UI player (that supposedly has nothing to do with Channels) isn't going to get bug fixes or updates, it would be nice for those of us who use a PC/MAC and now look forward to the importing of TV Shows and Movies to use the Channels DVR interface.

Since playing Channels DVR live TV and recording works from VLC, how hard would it be make the Watch Now button launch VLC with the master playlist?

Works fine watching a live TVE channel from VLC>Open Network Stream

Works fine watching a recording from VLC>Open Network Stream

1 Like

i was just searching for this answer. works perfectly.

version one of this feature request could just be a button to the left of Watch Now that says "Copy VLC Link" - it would just generate the link and copy to the clipboard. then we could go to VLC->Open Network Stream and paste in the link.

1 Like

You can right click copy link on the Watch Now button

I will look into VLC links from the browser

1 Like


I figured out how to watch recordings in VLC without transcoding or remuxing by using

But I can't seem to stop remuxing or transcoding when using VLC to watch live tv.

To stop remuxing or transcoding for live TV, end stream with .mpg:


I use VLC to watch on my desktop. I created a separate m3u file for each type of channel (News, Network, Movie, etc). You can double click on them and launch VLC with the playlist open and "surf". No guide, but hey.



#EXTINF:-1 tvg-name="MSNBC",MSNBC

#EXTINF:-1 tvg-name="CNN",CNN

#EXTINF:-1 tvg-name="CNNI",CNNI

#EXTINF:-1 tvg-name="FNC",FNC

#EXTINF:-1 tvg-name="FBN",FBN
1 Like

Thanks, had tried that and it works, BUT...
It grabs the live stream with no buffering or trick play.
So you can't skip back, skip forward.
With a recording you can pause and skip.

I was playing with this, adding parameters

Can't seem to find a combination for TVE and PRIME sources that VLC will play that eliminates transcoding.

Try stream.m3u8 instead of master.m3u8

That wont play in VLC.

Did some experimenting with VLC, TVE and HDHR Prime channels.

TVE Discovery channel
Channels shows Remux running
VLC plays and skips but cannot pause
Channels shows Remux running
VLC plays and skips but cannot pause
Channels shows Remux running but times out
VLC doesn't play
Channels shows Watching
VLC plays and pauses but cannot skip
Channels shows Watching
VLC plays and pauses but cannot skip

Prime TV Land SD mpeg2 channel
Channels shows Remux running
VLC plays and skips but cannot pause
Channels shows Transcoder running but times out
VLC doesn't play
Channels shows Remux running but times out
VLC doesn't play
Channels shows Watching
VLC plays and pauses but cannot skip
Channels shows Watching
VLC plays and pauses but cannot skip

1 Like

Updated my results for adding '?format=ts'

Can you find me an example of a html link which opens VLC when clicked?

Not sure such a monster exists without using a browser plugin however if a download option was provided so the save or open dialog is shown in the browser then the user could choose to open it in vlc.

1 Like

I haven't looked into that, but a web search indicates need for a browser extension along with a local client app.

Just tried something that works.
If you could pass an m3u containing just the channel selected it should work.
Created a small html file

<title>Channels DVR m3u</title>
<a href="" type="application/">Channels DVR m3u</a><br>

Opened the html file in Firefox and clicked the link to the m3u and was able to open with VLC

1 Like

Currently if I right click on the Watch Now button for a currently airing program in the guide on channel 52 (TVLand mpeg2 SD) I can choose to open in a new tab of the browser which allows me to open it in VLC.
What VLC gets is this



VLC doesn't play it and Channels DVR times out after 30 seconds.

2021/01/15 18:42:11.232711 [TNR] Opened connection to 1323AADB/0 for ch52 TVLANDP
2021/01/15 18:42:11.233592 [HLS] Starting transcoder for channel 52 from (encoder=remux, resolution=, deinterlacer=, bitrate=0)
2021/01/15 18:42:12.766439 [HLS] Probed live stream in 1.532629223s: mpeg2video 528x480 tt 1410755bps
2021/01/15 18:42:15.284604 [HLS] Session ch52-dANY-ip192.168.1.2 started in 4.612906139s
2021/01/15 18:42:15.285945 [ENC] Starting encoder for ch52 in /volume1/arkives/ChannelsDVR/Streaming/ch52-dANY-ip192.168.1.2-312959462/encoder-1-868992525 at 1 (1.750211) (encoder=h264_vaapi, resolution=480, deinterlacer=hardware, bitrate=10000 segment_size=0.01)
2021/01/15 18:42:45.235092 [HLS] Stopping inactive session ch52-dANY-ip192.168.1.2
2021/01/15 18:42:45.235160 [HLS] Stopping transcoder session ch52-dANY-ip192.168.1.2 (out: 34.149256s, finished: false)
2021/01/15 18:42:45.239322 [ENC] Stopped encoder for ch52 in /volume1/arkives/ChannelsDVR/Streaming/ch52-dANY-ip192.168.1.2-312959462/encoder-1-868992525 after encoding 1 to 25
2021/01/15 18:42:45.239521 [TNR] Closed connection to 1323AADB/0 for ch52 TVLANDP
2021/01/15 18:42:45.241520 [SNR] Statistics for ch52 TVLANDP: ss=97% snq=100% seq=100% bps=2037477,42112-2353760 pps=208,1-237

If I pass this to VLC. it plays just fine.


#EXTINF:-1 channel-id="52" tvg-chno="52" tvg-logo="" tvg-name="TVLANDP" group-title="SD",TVLANDP
2021/01/15 19:19:55.229235 [TNR] Opened connection to 1323AADB/0 for ch52 TVLANDP
2021/01/15 19:21:44.100719 [SNR] Statistics for ch52 TVLANDP: ss=97% snq=100% seq=98%,0%-100% bps=2133034,0-2451520 pps=219,0-248 sigerr=1%
2021/01/15 19:21:44.100875 [TNR] Closed connection to 1323AADB/0 for ch52 TVLANDP```

Nice find. I will try to add a button based on this technique.

The timeouts you're seeing are also unexpected. Does that happen only with live tv, or recordings too?

Can you submit a diagnostic log after these fail?

I'm trying to reproduce the behavior on my local system and trying to play the master.m3u8 and stream.m3u8 in my VLC all work great.

Just tried with a recording.
Right clicked Watch Now, open in new tab which allows me to Open with VLC.
VLC doesn't play it.
This is what was passed to VLC.



dvr log

2021/01/16 08:18:05.235078 [HLS] Stopping inactive session file2758-ip192.168.1.2

But, if I open this url in VLC it plays the recording.

If I'm using VLC as a client there is no need to transcode/remux since VLC can handle mpeg2/H.264 video and AC-3/AAC audio.

VLC isn't playing the master.m3u8 because it thinks the stream.m3u8 is a local file. VLC error is "filesystem error: cannot open file C:\Users\chDVRuser\AppData\Local\Temp\stream.m3u8 (No such file or directory)". I'm sure the reason this happens is that Firefox downloads the master.m3u8 from Channels DVR, saves it to a temp directory and launches VLC pointing it to the playlist file, so any references in the playlist, like stream.m3u8, are considered relative file paths.

I really don't want my NAS transcoding/remuxing either Live TV or recordings when using VLC to play them. That's why I use stream.mpg with VLC.

When Firefox opens an m3u with VLC on Windows, according to Windows process monitor, this is how Firefox launches VLC.
"absoulte path to\vlc.exe" --started-from-file "C:\Users\chDVRuser\AppData\Local\Temp\master.m3u8"
VLC option --started-from-file means VLC is started from file association (default disabled). Tell VLC that it is being launched due to a file association in the OS.
Edge does the same, just using a different temp directory.

Not sure how it works on other OS's.

1 Like

Watching this with great interest.


If at all possible, can this functionality be added to the Watch Now button for the Recordings Web UI as well? Using VLC to bypass transcoding on recorded content would be a nice feature.

The failure of VLC to autoplay the above example is due to master.m3u returning relative URIs. This is certainly a gray area (or maybe a violation) of RFC 8216. The use of relative URIs in playlist M3Us is explicitly permitted and addressed:

A URI in a Playlist, whether it is a URI line or part of a tag, MAY
be relative.  Any relative URI is considered to be relative to the
URI of the Playlist that contains it.

The use of relative URIs in a master playlist is not mentioned, but this thread illustrates some of the issues it can cause. Because a master.m3u may be passed a player in some proprietary fashion, a relative URI may be undefined for the player.

To verify this, I used VLC MacOS:

curl -sL "http://dvr.lxc.lan:8089/devices/ANY/channels/9077/hls/master.m3u8?" >/tmp/master.m3u
/Applications/ /tmp/master.m3u
(lots of 404 errors since it cannot resolve the URI)
vi /tmp/master.m3u
change: stream.m3u8?acodec=copy&bitrate=3063&indexed=true&resolution=720&ssize=1&vcodec=copy
to: http://dvr.lxc.lan/devices/ANY/channels/9077/hls/stream.m3u8?acodec=copy&bitrate=3063&indexed=true&resolution=720&ssize=1&vcodec=copy
/Applications/ /tmp/master.m3u
VLC now plays without issue.