Project

General

Profile

Bug #3725

cannot record 2 shows on same frequency with hdhomerun transcoding

Added by mopar isthebest over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-04-15
Due date:
% Done:

0%

Estimated time:
Found in version:
4.1
Affected Versions:

Description

I have an hdhomerun extend set to transcode to h264, when tvheadend records 2 shows on the same frequency, but with a different program number, it only uses 1 tuner on the hdhomerun, and both recordings have sound, but only 1 has working video, the other shows a video stream but it's black/empty/garbled.

In #hdhomerun they say that recording anything more than 1 program on the same tuner will not support transcoding, but I can grab a tuner's output with no filter set and I correctly get an mpeg2 video and audio stream for each program on that frequency.

So for a fix, tvheadend either needs to grab the entire stream in mpeg2 and split the desired streams from it (then I'd have to transcode both afterwards, which isn't ideal), or it needs to use one tuner for each show even if they are on the same frequency (this is what I'd prefer).

I'm running on the 4.1 git tag, but I can make code changes, apply patches, recompile and test all that is needed.

History

#1

Updated by Jaroslav Kysela over 8 years ago

Can you stream two services from one mux, if you don't use transcoding?

#2

Updated by mopar isthebest over 8 years ago

Jaroslav Kysela wrote:

Can you stream two services from one mux, if you don't use transcoding?

In theory that should work, I can record a .ts with hdhomerun_config on the command line with a video/audio stream for each program number. I tried it once with tvheadend and it seemed to behave the same as with transcoding, but something else could have been wrong.

But what this needs is an option to only use one tuner per program number, even if the frequency is the same. Can anyone point me to the code responsible for choosing which tuner to use? If so I might be able to come up with a patch for this myself.

#3

Updated by David jrm over 8 years ago

mopar isthebest wrote:

Jaroslav Kysela wrote:

Can you stream two services from one mux, if you don't use transcoding?

In theory that should work, I can record a .ts with hdhomerun_config on the command line with a video/audio stream for each program number. I tried it once with tvheadend and it seemed to behave the same as with transcoding, but something else could have been wrong.

But what this needs is an option to only use one tuner per program number, even if the frequency is the same. Can anyone point me to the code responsible for choosing which tuner to use? If so I might be able to come up with a patch for this myself.

With the HDHR Connect DVB-T I have been able to record 2 services from same mux in 1 tuner and watch a different service from a different mux at same time (I haven't tried 4 records yet :) ) As you know this model doesn't have transcoding, so record directly with TVH as mkv or run a post record script for transcoding to whatever... how do you have the tuners configured in TVH?

#4

Updated by Jaroslav Kysela over 8 years ago

After discussion on IRC, if transcoding is active, the box handles only one video stream per mux and unfortunately mangles (garbles) somehow the other video streams. In this case, IPTV should be used or the multiple muxes (one per service) must be defined (assigned) to the hdhomerun network like:

  hdhomerun network -> mux freq1 index 1 -> service 1 -> channel 1
                    -> mux freq1 index 2 -> service 2 -> channel 2
                    -> mux freq1 index 3 -> service 3 -> channel 3

So three muxes with same frequency and only one service from these muxes is mapped to a channel.

#5

Updated by mopar isthebest over 8 years ago

I went the IPTV route and defined a mux/service/channel per channel stream on the hdhomerun, it does work, it was just a little painful to set up.

Ideally there would still be a config option per tuner to limit this, as I assume transcoding tuners will just get more popular as time goes on and they probably will all function in a similar way.

Also available in: Atom PDF