OTA recording has multiple video streams

Reception, channel detection, network issues, CableCARD setup, etc.
kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

OTA recording has multiple video streams

Post by kpfleming »

I'm using an HDHomeRun Flex 4K (firmware 20210624) with an OTA antenna and Emby (version 4.6.4.0). Recently a recording, from WNET-HD 13.1 (New York City area), produced a TS file with two video streams (also four audio streams, one for the first video stream and three for the other, in various languages).

Here's the Media Info page from Emby for this recording: Image

The first video stream and audio stream are a 'bonus program', not the one listed in the guide for that time slot, and not what I wanted to record :-) It was fairly easy to use ffmpeg to strip out the unwanted content so that I could actually watch the show, but I'm curious how this could happen. There is a channel 13.2 in the lineup in the tuner, and the additional program is probably what was shown on that subchannel, but I don't have Emby setup to record that subchannel.

sdust
Posts: 154
Joined: Sat Jun 05, 2021 3:39 am
x 3

Re: OTA recording has multiple video streams

Post by sdust »

You should analyze the stream with TSReader (or upload the stream for nick to analyze ;)

The info captured by rabbitears.info on 11/16/2020 does not show any issues(the other stream in your mux is probably WMBQ-CD)

https://www.rabbitears.info/market.php? ... y_id=18795

https://www.rabbitears.info/screencaps/ ... 95-0_0.htm

You could also look into system logs to see what the Flex was tuning to during that time.

kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

Re: OTA recording has multiple video streams

Post by kpfleming »

It was indeed WBMQ-CD. I'd be happy to post the TS file if someone wants to look at it; it's 2.2GB as it stands, but presumably only the first 15-30 seconds would be needed.

kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

Re: OTA recording has multiple video streams

Post by kpfleming »

There isn't much in the Flex log: Emby recorded two back-to-back 30 minute programs, so the tuner was in use for 60 minutes.

Code: Select all

20210808-14:00:02 Tuner: tuner2 tuning 13.1 WNET-HD (8vsb:207MHz-3)
20210808-14:00:02 Tuner: tuner2 streaming http to 192.168.64.113:33004
20210808-15:01:00 Tuner: tuner2 http stream ended (remote closed)

kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

Re: OTA recording has multiple video streams

Post by kpfleming »

I've put the first 30 seconds of the TS file (cut using ffmpeg) here: https://km6g.us/75729.ts

sdust
Posts: 154
Joined: Sat Jun 05, 2021 3:39 am
x 3

Re: OTA recording has multiple video streams

Post by sdust »

kpfleming wrote: Fri Aug 13, 2021 4:29 am I've put the first 30 seconds of the TS file (cut using ffmpeg) here: https://km6g.us/75729.ts
You should get the full mux. There are instructions on this forum on how to do that. Do not cut using ffmpeg as it changes pids.
Get tsreader if you are on windows or tsduck otherwise. Check the output.

sdust
Posts: 154
Joined: Sat Jun 05, 2021 3:39 am
x 3

Re: OTA recording has multiple video streams

Post by sdust »

kpfleming wrote: Fri Aug 13, 2021 4:18 am There isn't much in the Flex log: Emby recorded two back-to-back 30 minute programs, so the tuner was in use for 60 minutes.

Code: Select all

20210808-14:00:02 Tuner: tuner2 tuning 13.1 WNET-HD (8vsb:207MHz-3)
20210808-14:00:02 Tuner: tuner2 streaming http to 192.168.64.113:33004
20210808-15:01:00 Tuner: tuner2 http stream ended (remote closed)
Your clocks seem to be out of sync.

kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

Re: OTA recording has multiple video streams

Post by kpfleming »

Full mux capture is at https://km6g.us/v13.mpeg

There were two more recordings from this channel over the weekend and both of them were normal, so this may have been some sort of incorrect configuration at the transmitting station.

You say "my clocks seem to be out of sync"... I've got an NTP server on the LAN, and the DHCP server tells all clients to use it. In the NTP server's client list I don't see the Flex listed, so apparently it's not using the NTP server. Is there something I can do to change that?

kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

Re: OTA recording has multiple video streams

Post by kpfleming »

Output of 'tsanalyze' (from TSDuck) run on the original unmodified TS file is at https://km6g.us/tsduck.txt

Online
signcarver
Expert
Posts: 9944
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 10A05954 10802091 131B34B7 13231F92 1070A18E 1073ED6F 15300C36
x 26

Re: OTA recording has multiple video streams

Post by signcarver »

Time is utc

sdust
Posts: 154
Joined: Sat Jun 05, 2021 3:39 am
x 3

Re: OTA recording has multiple video streams

Post by sdust »

This looks strange:

Code: Select all

|  Srv Id  Service Name                              Access          Bitrate  |
|  0x0003  (unknown) .................................... C    9,895,556 b/s  |
|  0x0005  (unknown) .................................... C    2,424,137 b/s  |
You should have channel name instead of unknown.

sdust
Posts: 154
Joined: Sat Jun 05, 2021 3:39 am
x 3

Re: OTA recording has multiple video streams

Post by sdust »

kpfleming wrote: Tue Aug 17, 2021 4:41 am You say "my clocks seem to be out of sync"... I've got an NTP server on the LAN, and the DHCP server tells all clients to use it. In the NTP server's client list I don't see the Flex listed, so apparently it's not using the NTP server. Is there something I can do to change that?
Not sure how HDHR devices keep their clocks synced. You can check their accuracy by doing

$ curl -I http://HDHR_IP

this outputs HDHR time in the Date: header.

kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

Re: OTA recording has multiple video streams

Post by kpfleming »

Yep, the Date header in the response is correct, although as noted above it's UTC (GMT).

sdust
Posts: 154
Joined: Sat Jun 05, 2021 3:39 am
x 3

Re: OTA recording has multiple video streams

Post by sdust »

kpfleming wrote: Tue Aug 17, 2021 1:12 pm Yep, the Date header in the response is correct, although as noted above it's UTC (GMT).
What I didn't like about your logs was there was 1 minute buffer after the end instead of 30secs buffers at the beginning and end. I guess it is done by Emby.

I normally get this for 1 hour recording by SERVIO:

Code: Select all

20210726-15:59:30 Tuner: tuner2 tuning 45.1 KQRO-LD (8vsb:57MHz-1)
20210726-15:59:30 Tuner: tuner2 streaming http to 10.168.0.225:46788
20210726-17:00:30 Tuner: tuner2 http stream ended (remote closed)

kpfleming
Posts: 21
Joined: Fri May 01, 2020 3:47 pm

Re: OTA recording has multiple video streams

Post by kpfleming »

Yes, I have Emby configured to record at least one minute past the end of the scheduled showing.

Post Reply