[mythtvnz] DNLA/UPnP server

Stephen Worthington stephen_agent at jsw.gen.nz
Tue Dec 8 09:42:05 GMT 2009


On Tue, 8 Dec 2009 22:22:30 +1300, you wrote:

>On Tue, Dec 8, 2009 at 8:59 PM, Stephen Worthington <
>stephen_agent at jsw.gen.nz> wrote:
>
>> For
>> example, all MHEG5 data is currently dropped as MythTV does not
>> support it.
>
>
>Yes, it does. See http://www.mythtv.org/wiki/MHEG.
>
>
>>  It then multiplexes the streams it wants for that channel
>> together into a container format and writes that to disk.
>
>
>Are you sure? My understanding is that MythTV doesn't do anything to the
>stream at all except for pid filtering (and I believe even that can be
>handled by the card or the driver). I don't think there is any "MythTV
>format", it's just mpeg2 ts.
>
>Cheers,
>Steve

Yes, MPEG2 TS.  Which is a container format.  MythTV does not write
raw streams, it has to remux them into a container format, otherwise
it would have to write each stream as a separate file.  It can not
just copy the container data from the on air signal, as it has changed
the data in the container so the enclosing container data is no longer
applicable.  It therefore has to remux the streams it has demuxed out
of the on air signal into a new MPEG2 TS container.

There are various ways of doing MPEG2 TS, it seems.  MediaPortal,
which I run on my Vista box, produces this for TV3 programs:

General
ID                               : 4
Complete name                    : H:\Team MediaPortal\MediaPortal TV
Server\recordings\3 News - TV3\3 News -  - 2009-12-07 - 6_00 p.m..ts
Format                           : MPEG-TS
File size                        : 5.87 GiB
Duration                         : 1h 4mn
Overall bit rate                 : 13.0 Mbps

Video
ID                               : 48 (0x30)
Menu ID                          : 137 (0x89)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High at L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Duration                         : 1h 4mn
Maximum bit rate                 : 13.3 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16/9
Frame rate                       : 25.000 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Interlaced
Scan order                       : Top Field First

Audio #1
ID                               : 64 (0x40)
Menu ID                          : 137 (0x89)
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Duration                         : 1h 4mn
Maximum bit rate                 : 144 Kbps
Video delay                      : -640ms
Language                         : English

Audio #2
ID                               : 65 (0x41)
Menu ID                          : 137 (0x89)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 1h 4mn
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Maximum bit rate                 : 432 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Video delay                      : -825ms
Stream size                      : 178 MiB (3%)
Language                         : English

and MythTV produces this, for the same TV3 news program:

General
ID                               : 1D
Complete name                    :
R:\mnt\sdd6\recordings\1003_20091207175900.mpg
Format                           : MPEG-TS
File size                        : 5.62 GiB
Duration                         : 1h 1mn
Overall bit rate                 : 13.0 Mbps

Video
ID                               : 450 (0x1C2)
Menu ID                          : 1 (0x1)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High at L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Duration                         : 1h 1mn
Maximum bit rate                 : 13.3 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16/9
Frame rate                       : 25.000 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Interlaced
Scan order                       : Top Field First

Audio #1
ID                               : 400 (0x190)
Menu ID                          : 1 (0x1)
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Duration                         : 1h 1mn
Maximum bit rate                 : 144 Kbps
Video delay                      : -780ms
Language                         : English

Audio #2
ID                               : 410 (0x19A)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 1h 1mn
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Maximum bit rate                 : 432 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Video delay                      : -965ms
Stream size                      : 170 MiB (3%)
Language                         : English

Menu
ID                               : 300 (0x12C)
Menu ID                          : 1 (0x1)
List                             : 400 (0x190) (AAC, eng) / 410
(0x19A) (AC-3, eng) / 450 (0x1C2) (AVC) / 1003 (0x3EB) ()
Language                         : eng / eng /  /
BitRate_Maximum                  : 14157600

The streams inside the MPEG2 TS containers are the same, but note the
different ID numbers used.  I have no idea what they mean yet.



More information about the mythtvnz mailing list