DVB-T in Norway

From MythTV Official Wiki
Revision as of 10:01, 28 March 2009 by Fff (talk | contribs) (There is hope for playback in Norway, after all)

Jump to: navigation, search

In 2007, Norway got it's first digital terrestrial tv-network, DVB-T. The operator, Norges televisjon (NTV), chose to use H.264 and HE-AAC to support more channels than if using MPEG2.

MythTV can record the freeview broadcasts from NRK and can also use the 7 day EPG. However, there is no way currently to view the recorded programs and tests using commercial h.264 decoders under Windows indicate that there is no audio in the recordings. (see #5487: LATM AAC audio stream support)

According to the scan program, the channel NRK3 has the following streams:

PMT 0x0109 for service 0x0067
  OTHER     : PID 0x0209 TYPE 0x1b
  OTHER     : PID 0x02a4 TYPE 0x11
  OTHER     : PID 0x0a2b TYPE 0x05
  SUBTITLING: PID 0x025c
  SUBTITLING: PID 0x025d
  TELETEXT  : PID 0x0240
  OTHER     : PID 0x0a34 TYPE 0x0b
  OTHER     : PID 0x0a35 TYPE 0x0c

0x0209 is the video stream, 0x02a4 is the audiostream.

An unverified patch to get audio:

Index: libs/libmythtv/mpeg/mpegtables.h
===================================================================
--- libs/libmythtv/mpeg/mpegtables.h    (revision 14618)
+++ libs/libmythtv/mpeg/mpegtables.h    (working copy)
@@ -155,6 +155,7 @@
     {
         return ((StreamID::MPEG1Audio == type) ||
                 (StreamID::MPEG2Audio == type) ||
+                (StreamID::MPEG2AudioAmd1 == type) ||
                 (StreamID::AACAudio   == type) ||
                 (StreamID::AC3Audio   == type) ||
                 (StreamID::DTSAudio   == type));

This ubuntu patch enables playback of the interlaced h.264 streams used in Norway and New Zealand (including LATM AAC audio stream support)