Jump to content

High Definition .ts and .mkv files


Mandrax

Recommended Posts

HD transport streams and Matroschka container

Recently stumbled across a puzzle which is still unresolved, hopefully some experts might have a clue and enlighten my path.

 

Software used :

DVBViewer to save HD stream

Mediainfo http://mediainfo.sourceforge.net/de

GDS Mux http://haali.su/mkv/

tsMuxeR http://www.smlabs.net/tsmuxer_en.html

TsDoctor http://www.cypheros.de

mkvmerge (mkvtoolnix) http://www.bunkus.org/videotools/mkvtoolnix/downloads.html

 

In order to have a clear reference I cleaned an error-free 59mn 58s HD transport test stream with TsDoctor, which resulted in a size of 5.47 GB.

 

Demuxed above .ts file with tsMuxeR and got next to 2 audio files a .264 file, size = 5.03 GB. So far the world is fine

 

Next step was to mux above .264 and the 2 audio files to a Matroschka container using mkvmerge which took 329 seconds and resulted in a file size of 3.09 GB [3243282 KB]. Using mkvmerge on MacOS showed exactly the same GB.

 

Also, I transferred the .ts file directly to .mkv using GDS Mux, which took 369 seconds and resulted in a file size of 3.09 GiB [3242967 KB].

 

Played all files on a 27'' screen and couldn't detect a difference. Using mediainfo on all files, the striking difference between the .ts and Matroschka files seems to be the bitrate, while both applications have no encoding properties <scratches his head>

 

Somehow don't trust the Matroschka files ( don't have a reasonable argument though), while would of course prefer the smallest size when it comes to storage for later BlueRay authoring, writing on discs and maybe file-sharing.

 

This is just one example, repeated the procedure several times with always the same general result

 

More detailed data from mediainfo :

 

ts file

General

ID : 3F3

Complete name : V:\TV\Rote Rosen_01-05_08-56-01_Das Erste HD_fixed.ts

Format : MPEG-TS

File size : 5.47 GiB

Duration : 59mn 58s

Overall bit rate : 13.1 Mbps

Video

ID : 6010 (0x177A)

Menu ID : 11100 (0x2B5C)

Format : AVC

Format/Info : Advanced Video Codec

Format profile : Main@L4.0

Format settings, CABAC : Yes

Format settings, ReFrames : 5 frames

Duration : 59mn 58s

Bit rate : 11.5 Mbps

Width : 1 280 pixels

Height : 720 pixels

Display aspect ratio : 16:9

Frame rate : 50.000 fps

Resolution : 8 bits

Colorimetry : 4:2:0

Scan type : Progressive

Bits/(Pixel*Frame) : 0.249

Stream size : 4.80 GiB (88%)

Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177

Transfer characteristics : BT.709-5, BT.1361

Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

 

mkv file via mkvmerge

General

Complete name : V:\TV\Rote Rosen_01-05_08-56-01_Das Erste HD_fixed.track_6010.mkv

Format : Matroska

File size : 3.09 GiB

Duration : 59mn 58s

Overall bit rate : 7 383 Kbps

Encoded date : UTC 2010-01-05 10:35:01

Writing application : mkvmerge v2.9.8 ('C'est le bon') built on Aug 13 2009 12:49:06

Writing library : libebml v0.7.7 + libmatroska v0.8.1

Video

ID : 1

Format : AVC

Format/Info : Advanced Video Codec

Format profile : Main@L4.0

Format settings, CABAC : Yes

Format settings, ReFrames : 5 frames

Muxing mode : Container profile=Unknown@4.0

Codec ID : V_MPEG4/ISO/AVC

Duration : 59mn 58s

Bit rate : 6 532 Kbps

Width : 1 280 pixels

Height : 720 pixels

Display aspect ratio : 16:9

Frame rate : 50.000 fps

Resolution : 8 bits

Colorimetry : 4:2:0

Scan type : Progressive

Bits/(Pixel*Frame) : 0.142

Stream size : 2.74 GiB (88%)

Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177

Transfer characteristics : BT.709-5, BT.1361

Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

 

mkv file via gds mux

General

Complete name : V:\TV\Rote Rosen_DS Mux.mkv

Format : Matroska

File size : 3.09 GiB

Duration : 59mn 58s

Overall bit rate : 7 382 Kbps

Encoded date : UTC 2010-01-05 10:42:40

Writing application : gdsmux

Writing library : Haali DirectShow Matroska Muxer 1.9.42.1

Video

ID : 1

Format : AVC

Format/Info : Advanced Video Codec

Format profile : Main@L4.0

Format settings, CABAC : Yes

Format settings, ReFrames : 5 frames

Muxing mode : Container profile=Unknown@4.0

Codec ID : V_MPEG4/ISO/AVC

Duration : 59mn 58s

Bit rate : 6 531 Kbps

Width : 1 280 pixels

Height : 720 pixels

Display aspect ratio : 16:9

Frame rate : 50.000 fps

Resolution : 8 bits

Colorimetry : 4:2:0

Scan type : Progressive

Bits/(Pixel*Frame) : 0.142

Stream size : 2.74 GiB (88%)

Title : PID 6010

Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177

Transfer characteristics : BT.709-5, BT.1361

Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

 

Unfortunately mediainfo doesn't give me a bitrate for the .264 file

 

Are there some people out there who can show me the light, please?

Many thanks for your thoughts & help.

Link to comment

What kind of light do you expect? I personally don't see any questions here. :)

 

But if you want to know how others doing ts to mkv, here is how I do it as of now:

 

- cut with TSSniper (I-/IDR-frames only)

- remux the resulting ts to mkv with GDSMux

- if needed put multiple parts into one mkv inkluding chapters with mkvmerge.

 

If you wanted to know why different bit rates. The question is, how they are put into the stream headers/tags, overall, max, ... I don't think mediainfo is actually calculating it.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...