New issue
Advanced search Search tips

Issue 698512 link

Starred by 0 users

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Browser downloads instead of playing AVC URL from HDHomeRun

Project Member Reported by mfo...@chromium.org, Mar 4 2017

Issue description

Chrome Version: 57.0.2987.88 beta (64-bit)
OS: Mac OS X 10.11.6

What steps will reproduce the problem?
(1) Buy an HDHomeRun Extend, attach to HDTV antenna
(2) Browse to http://<device IP>/lineup.html
(3) Click on any channel, e.g. http://192.168.0.27:5004/auto/v5.1

What is the expected result?
The video is H.264/AVC 29.97fps with AC3 audio.
Chrome begins playing transcoded video stream in the tab.

What happens instead?
Chrome begins downloading a file (presumably containing stream contents).

Notes:
- The URL plays fine in VLC 2.2.4
- The tuner is configured to transcode to "heavy" format which is high-bitrate h.264
- Request/response headers from devtools below
- Codec info from VLC attached

General:
Request URL:http://192.168.0.27:5004/auto/v5.1
Request Method:GET
Status Code:200 OK
Remote Address:192.168.0.27:5004
Referrer Policy:no-referrer-when-downgrade

Request:
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Host:192.168.0.27:5004
Referer:http://192.168.0.27/lineup.html
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.88 Safari/537.36

Response:
Cache-Control:no-cache
Connection:close
Content-Type:video/mpeg;codecs="avc1.640040"
Date:Sat, 04 Mar 2017 17:55:24 GMT
Pragma:no-cache
Server:HDHomeRun/1.0
transferMode.dlna.org:Streaming

 
HDHomeRunStreamInfo.png
97.3 KB View Download
FWIW, on loading the URL, Safari shows default media controls but doesn't seem to be able to render any video.

Our MIME utility is rejecting that stream since it presents as video/mpeg which is associated with a MPEG2 transport stream - which Chrome does not support (licensing fees).

If you create a sample page and set <video src="<url>" controls> what does chrome://media-internals say about the clip? Does it play?
Owner: mfo...@chromium.org
Status: Assigned (was: Untriaged)
Thanks for the tip.  I'll check it out and report back.
FWIW, I think it's likely it won't -- all the ATSC recorders that I've used dump the raw transport stream received OTA. I haven't seen any options for on-the-fly transmuxing -- in fact in the past I've had to write custom ffmpeg scripts to do so for my home recording setup.
This device supports both native replay of the OTA MPEG-2 TS and transcoding to H.264 [1]. I have it configured to do the latter.  If Chrome can't handle the AVC stream produced I'll have to look into transmuxing.

From some research, Plex has a plug-in for this device, or other folks have used a DLNA server to relay the stream.   I was hoping for something simpler and not dependent on an app.  Maybe even creating a container in JS.

[1] https://www.silicondust.com/product/hdhomerun-extend/



I'm just using it for live TV, not DVR by the way.  
Ah, I forgot that the MP2T from the OTA is MPEG2 codec too - not H264; the mime type indicates that they're transcoding into H264 but packaged in an MP2T.

There are a couple MP2T -> MSE JS libraries; typically included for HLS based JavaScript players. I don't know of any that will accept raw TS file, but just using one of those scripts and sticking it into a .m3u8 via data:// URL might work.

TBH, I'm surprised it doesn't play in Safari though which I thought had TS support; though possibly not for src= playback.
Status: WontFix (was: Assigned)
There are a number of solutions to this which basically involve piping the stream through ffmpeg to transcode, e.g. [1].  It would be cool to do it in JS, but ffmpeg allows more tweaking and possibly changing bitrates on the fly for LAN vs. remote streaming.

[1] https://github.com/magmastonealex/HDHomeWeb

Sign in to add a comment