Project

General

Profile

Bug #278

Audio in mpeg2audio format not muxed into mkv output

Added by Alan Hagge about 14 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
High
Assignee:
Category:
DVB
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Found in version:
2.12
Affected Versions:

Description

When recording a channel with video type "mpeg2video" and audio type "mpeg2audio", the audio stream does not get inserted into the output mkv file.

Here's the recording description:

Sep 05 10:15:18 dvr: Triathlon.2010-09-05 from adapter: "LG Electronics LGDT3303 VSB/QAM Frontend", network: "", mux: "605,028 kHz", provider: "", service: "USN"

Sep 05 10:15:18 dvr: # type lang resolution samplerate channels
Sep 05 10:15:18 dvr: 1 MPEG2VIDEO 544 480
Sep 05 10:15:18 dvr: 2 MPEG2AUDIO eng 96000 0
Sep 05 10:15:39 subscription: "DVR: Triathlon" unsubscribing from "USN"

And this is the mkvinfo from the resulting file (generated with "Write full DVB MUX to disk" checked):

mkvinfo Triathlon.2010-09-05.mkv
+ EBML head |+ EBML version: 1 |+ EBML read version: 1 |+ EBML maximum ID length: 4 |+ (Unknown element: EBMLMaxSizeLength; ID: 0x42f3 size: 4) |+ Doc type: matroska |+ Doc type version: 2 |+ Doc type read version: 2
+ Segment, size unknown |+ Seek head (subentries will be skipped) |+ EbmlVoid (size: 431) |+ Segment information | + Segment UID: 0xfc 0x24 0x17 0xfd 0x29 0x63 0x32 0x22 0x94 0x33 0x9e 0x1e 0x34 0xb2 0xe0 0xcd | + Title: Triathlon | + Muxing application: HTS Tvheadend Matroska muxer | + Writing application: HTS Tvheadend SVN-r5335 | + Timecode scale: 1000000 | + Duration: 25.475s (00:00:25.475) |+ Segment tracks | + A track | + Track number: 1 | + Track UID: 1 | + Track type: video | + Lacing flag: 0 | + Codec ID: V_MPEG2 | + CodecPrivate, length 94 | + Default duration: 33.367ms (29.970 fps for a video track) | + Video track | + Pixel width: 544 | + Pixel height: 480 | + Display unit: 3 | + Display width: 4 | + Display height: 3 |+ Tags | + Tag | + Targets | + TargetTypeValue: 50 | + Simple | + Name: DATE_BROADCASTED | + String: 2010-09-05 09:30:00 | + (Unknown element: DummyElement) | + TagLanguage: und | + Tag | + Targets | + TargetTypeValue: 50 | + Simple | + Name: ORIGINAL_MEDIA_TYPE | + String: TV | + (Unknown element: DummyElement) | + TagLanguage: und | + Tag | + Targets | + TargetTypeValue: 50 | + Simple | + Name: CONTENT_TYPE | + String: Sports | + (Unknown element: DummyElement) | + TagLanguage: und | + Tag | + Targets | + TargetTypeValue: 50 | + Simple | + Name: TVCHANNEL | + String: USN | + (Unknown element: DummyElement) | + TagLanguage: und | + Tag | + Targets | + TargetTypeValue: 50 | + Simple | + Name: SUMMARY | + String: From Lake Placid, New York. | + (Unknown element: DummyElement) | + TagLanguage: und |+ Cluster

Sample output file attached.


Files

_dev_dvb_adapter0_LG_Electronics_LGDT3303_VSB_QAM_Frontend623028615.dump1.ts (272 KB) _dev_dvb_adapter0_LG_Electronics_LGDT3303_VSB_QAM_Frontend623028615.dump1.ts One of a number of .TS files generated with the muxdump on Alan Hagge, 2011-02-01 04:03
mpeg2audio.ts (5.34 MB) mpeg2audio.ts ts of problematic channel generated with azap Alan Hagge, 2011-05-18 03:16

History

#1

Updated by Andreas Smas about 14 years ago

I really need a .TS samplethat contains this problematic audio

#2

Updated by Andreas Smas almost 14 years ago

  • Status changed from New to Rejected
  • Target version deleted (3.0)

No response

#3

Updated by Alan Hagge almost 14 years ago

Andreas,

Is there any way that I can request that you re-open this bug? I just recorded a movie from a major network (the NBC affiliate here in Los Angeles) and because of this issue, no audio was recorded. I turned on the "Write full DVB mux to disk" option and got a number of files in the muxdump directory, many of which are under 1 MB, but some are quite big (46 MB and 152 MB for about a minute of runtime). Will any of them do? I'm going to attach one of the small ones, but if you need one of the bigger ones, I can upload it somewhere.

Thanks for your (re-)consideration,

Alan

#4

Updated by Andreas Smas over 13 years ago

  • Category changed from General to Demultiplex
  • Status changed from Rejected to Accepted
  • Target version set to 2.13
#5

Updated by Alan Hagge over 13 years ago

OK, let's try again. I hope this is a file you can use. I generated this using azap to tune the receiver, then doing a simple "cat /dev/dvb/adapter0/dvr0 > /tmp/mpeg2audio.ts" to generate the file.

mediainfo shows the following information about the file. As you can see, it's showing the audio as "AC-3", not "mpeg2audio" as tvheadend shows. Not sure why that is, but I verified that what's in the file is the audio and video of the channel in question (4-4 here in Los Angeles).

zbox:/usr/local/bin> mediainfo /tmp/mpeg2audio.ts
General
Complete name : /tmp/mpeg2audio.ts
Format : MPEG-TS
Format profile : No PAT/PMT
File size : 5.34 MiB
Duration : 10s 560ms
Overall bit rate : 4 245 Kbps

Video
ID : 81 (0x51)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Default
Duration @ : 9s 943ms
Bit rate mode : Variable
Bit rate : 3 841 Kbps
Nominal bit rate : 15.0 Mbps
Width : 704 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.379
Stream size : 4.55 MiB (85%)

Audio
ID : 84 (0x54)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 10s 560ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -13ms
Stream size : 248 KiB (5%)

Here's the output of tvheadend of a recording done just after the above completed:

May 17 18:06:39 dvr: Cycling.2011-05-17 from adapter: "LG Electronics LGDT3303 VSB/QAM Frontend", network: "", mux: "605,028 kHz", provider: "", service: "USN "
May 17 18:06:39 dvr: # type lang resolution samplerate channels
May 17 18:06:39 dvr: 1 MPEG2VIDEO 704 x 480
May 17 18:06:39 dvr: 2 MPEG2AUDIO eng 96000 0
May 17 18:07:00 subscription: "DVR: Cycling" unsubscribing from "USN"
May 17 18:07:00 dvr: Recording completed: "/mnt/disk2/pvr/Cycling/Cycling.2011-05-17-2.mkv"
May 17 18:07:00 dvr: "Cycling" on "USN": End of program: Aborted by user@

For comparison, here's the mediainfo output of the output file. As you can see, there's no audio channel:

oot@zbox:/mnt/disk2/pvr/Cycling# mediainfo Cycling.2011-05-17-2.mkv
General
Unique ID : 207896094811066848398897286177294689105 (0x9C6754D8B690980DBE8A2AEFDCFCA351)
Complete name : Cycling.2011-05-17-2.mkv
Format : Matroska
File size : 10.9 MiB
Duration : 26s 92ms
Overall bit rate : 3 508 Kbps
Movie name : Cycling
Writing application : HTS Tvheadend 2.12
Writing library : HTS Tvheadend Matroska muxer

Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Default
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Duration : 26s 93ms
Bit rate mode : Variable
Bit rate : 3 438 Kbps
Nominal bit rate : 15.0 Mbps
Width : 704 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.339
Stream size : 10.7 MiB (98%)
Language : English

#6

Updated by Hein Rigolo about 13 years ago

  • Category changed from Demultiplex to 39
  • Assignee changed from Andreas Smas to Hein Rigolo
  • Found in version set to 2.12
#7

Updated by Alan Hagge about 13 years ago

Hein,

Thanks for agreeing to take a look at this issue. Please let me know if there's anything else I can supply to assist in troubleshooting.

Alan

#8

Updated by Adam Sutton over 12 years ago

  • Status changed from Accepted to Rejected

Closing this because its old and several MKV related fixes have been made since v2.12.

Also available in: Atom PDF