No Audio on Analog files but fine in Digitl (1 Viewer)

RobNCD

Portal Member
June 27, 2011
14
2
Hi All

I am having a strange problem.

MP 1.2.0 Beta
Hauppage WinTV-HDR 1600
Windows Xp Sp3

When recording using the Digital Tuner all the recorded files play fine.
When recording using the Analog Tuner the video is fine but there is no audio output.
This happens when I try to read the files by any other program other than MP. I have tried several including XBMC

There seems to be something wrong with the encoding of the analog signals. Since I cant seem to find anything about this in the forums or online I am wondering if it is a Beta problem.

I tried to uninstall everything including the tuner cards and clean Xp and tried again with the same results.


File that works (Digital Tuner)

Format : MPEG-TS
File size : 9.48 MiB
Duration : 31s 351ms
Overall bit rate : 2 529 Kbps

Video
ID : 48 (0x30)
Menu ID : 137 (0x89)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=15
Codec ID : 2
Duration : 31s 164ms
Bit rate mode : Variable
Bit rate : 2 016 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.199
Stream size : 7.49 MiB (79%)

Audio #1
ID : 64 (0x40)
Menu ID : 137 (0x89)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 31s 232ms
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 : -579ms
Stream size : 732 KiB (8%)
Language : English
Name : en:primary Audio

Audio #2
ID : 65 (0x41)
Menu ID : 137 (0x89)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 31s 232ms
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 : -584ms
Stream size : 732 KiB (8%)
Language : English
Name : en:confused:econdary Audio



File that has no sound (Analog Tuner)


Format : MPEG-TS
File size : 14.6 MiB
Duration : 24s 829ms
Overall bit rate : 4 945 Kbps

Video
ID : 224 (0xE0)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=15
Codec ID : 2
Duration : 24s 658ms
Bit rate mode : Constant
Bit rate : 4 312 Kbps
Nominal bit rate : 4 000 Kbps
Width : 720 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.416
Stream size : 12.7 MiB (87%)

Audio
ID : 192 (0xC0)
Menu ID : 1 (0x1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 4
Duration : 24s 816ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : -429ms
Stream size : 1.14 MiB (8%)

Text
ID : 224 (0xE0)-DVD-2
Menu ID : 1 (0x1)
Format : EIA-608
Muxing mode : DVD-Video
Muxing mode, more info : Muxed in Video #1
Duration : 24s 658ms
Stream size : 0.00 Byte (0%)


:confused:
Any ideas how to get this to record so that other players can play the analog tuner recordings?

Should also mention that while watching LiveTV in XBMC Digital Tuners operate correctly while Analog Tuners play video but there is no sound.
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi RobNCD

    The 1600 has hardware encoders. All TV Server does is take the digital signal provided by the Hauppauge encoders and turn it into a TS file. The info above looks fine to me. I would say you have audio codec selection issues. Do the analog recordings play with sound in VLC?

    mm
     

    RobNCD

    Portal Member
    June 27, 2011
    14
    2
    Re: No Audio on Analog files but fine in Digital

    Now that I have my other problems worked out I am now back to my first problem. I found another thread located here
    Windows MediaPortal TV-Server and XBMC-PVR? [Archive] - XBMC Community Forum maybe someone else could give some insight on this issue. That thread seems to have the same issues I am seeing.
    Let me explain better.

    When I use MP to record using the digital tuners the resulting files play fine. I have tested using Windows Media Player 12, XBMC with the MP plugin, and VLC media player 1.18. (File plays perfectly).

    Included Mediainfo:

    General
    ID : 4 (0x4)
    Complete name : \\HTSERVER\TV Recorded\Criminal Minds\Criminal Minds (The Angel Maker - 402)_AETV_2011-07-03_20-00.ts
    Format : MPEG-TS
    File size : 1.05 GiB
    Duration : 55mn 19s
    Overall bit rate : 2 716 Kbps

    Video
    ID : 48 (0x30)
    Menu ID : 137 (0x89)
    Format : MPEG Video
    Format version : Version 2
    Format profile : Main@Main
    Format settings, BVOP : Yes
    Format settings, Matrix : Custom
    Format settings, GOP : M=3, N=24
    Codec ID : 2
    Duration : 55mn 19s
    Bit rate mode : Variable
    Bit rate : 2 388 Kbps
    Nominal bit rate : 15.0 Mbps
    Width : 544 pixels
    Height : 480 pixels
    Display aspect ratio : 4:3
    Frame rate : 29.970 fps
    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.305
    Stream size : 945 MiB (88%)

    Audio
    ID : 64 (0x40)
    Menu ID : 137 (0x89)
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 129
    Duration : 55mn 19s
    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 : -493ms
    Stream size : 76.0 MiB (7%)
    Language : English

    Text #1
    ID : 48 (0x30)-608-1
    Menu ID : 137 (0x89)
    Format : EIA-608
    Muxing mode : A/53 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #1
    Duration : 55mn 19s
    Stream size : 0.00 Byte (0%)

    Text #2
    ID : 48 (0x30)-608-2
    Menu ID : 137 (0x89)
    Format : EIA-608
    Muxing mode : A/53 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #1
    Duration : 55mn 19s
    Stream size : 0.00 Byte (0%)

    Text #3
    ID : 48 (0x30)-608-1
    Menu ID : 137 (0x89)
    Format : EIA-608
    Muxing mode : SCTE 20
    Muxing mode, more info : Muxed in Video #1
    Duration : 55mn 19s
    Stream size : 0.00 Byte (0%)

    Text #4
    ID : 48 (0x30)-608-2
    Menu ID : 137 (0x89)
    Format : EIA-608
    Muxing mode : SCTE 20
    Muxing mode, more info : Muxed in Video #1
    Duration : 55mn 19s
    Stream size : 0.00 Byte (0%)



    When I try a file that has been recorded from the Analog Tuner the result is Great video but no sound. Testing the analog tuner recoding with VLC media player results in no problems, good video and good audio. When the analog tuner file is tested in Windows media player and XBMC I get good video but NO sound.

    Mediainfo:

    General
    ID : 1 (0x1)
    Complete name : \\HTSERVER\TV Recorded\Celebrity Rehab With Dr. Drew\Celebrity Rehab With Dr. Drew (Intake - 501)_VH1_2011-07-03_12-00.ts
    Format : MPEG-TS
    File size : 2.06 GiB
    Duration : 59mn 36s
    Overall bit rate : 4 947 Kbps

    Video
    ID : 224 (0xE0)
    Menu ID : 1 (0x1)
    Format : MPEG Video
    Format version : Version 2
    Format profile : Main@Main
    Format settings, BVOP : Yes
    Format settings, Matrix : Custom
    Format settings, GOP : M=3, N=15
    Codec ID : 2
    Duration : 59mn 36s
    Bit rate mode : Constant
    Bit rate : 4 315 Kbps
    Nominal bit rate : 4 000 Kbps
    Width : 720 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.417
    Stream size : 1.80 GiB (87%)

    Audio
    ID : 192 (0xC0)
    Menu ID : 1 (0x1)
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 2
    Codec ID : 4
    Duration : 59mn 36s
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Delay relative to video : -276ms
    Stream size : 164 MiB (8%)

    Text
    ID : 224 (0xE0)-DVD-2
    Menu ID : 1 (0x1)
    Format : EIA-608
    Muxing mode : DVD-Video
    Muxing mode, more info : Muxed in Video #1
    Duration : 59mn 36s
    Stream size : 0.00 Byte (0%)

    I should note that both files play fine within MediaPortal.

    Any ideas as to how to correct the stream to record correctly?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi again RobNCD

    I don't think this is a MediaPortal bug so I'm not sure what you want us to do about it. I mean, if the analog recording plays in any software except XBMC then I fail to see how that points to a problem in MediaPortal/TV Server. After reading your description and the thread that you linked I'm left with the impression that the stream is encoded and recorded correctly... it is just the container structure that is a problem for XBMC.

    Two things:
    1. Does the analog recording play in MP when you configure MP to use the FFDShow video and audio codecs?
    If so then that would *clearly* show that XBMC has the capability to decode the video and audio streams. It just doesn't handle the container structure correctly.
    2. Please post TV Server logs showing the graph building for the analog tuner and a screenshot of the analog.grf file in C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal TV Server (that's a hidden folder, so you'll need to enable viewing of hidden and system files/folders to see it). Grf files can be opened with GraphStudio. Note that I really do need a screenshot. I won't be able to open the grf file on my system because I don't have your tuner. It is easiest to use ctrl+f12 to graph the screenshot - it autocrops and expands the GraphStudio window size.

    mm
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    Bet this is a similar problem of the type of mpeg audio that we had with BBC radio stations, where ffdshows libavcodec could not play file, but using libmad would.

    I have no idea what xbmc uses codec wise, but I would say that the problem needs to be fixed by them.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi Ray

    If that is the case then it should be fairly easy to test right? All I'd have to do is set FFDShow as my MPEG video and audio codec, and then test playback with the two different FFDShow MPEG libraries. I'm more than happy to do that when I get home tonight. Note that I usually use AC3Filter for my MPEG audio...

    mm
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi again

    Testing confirmed that the libmad library can't play the audio for my analog channels in MediaPortal (picture remains frozen). libavcodec on the other hand is fine. This seems like a classic codec issue.

    mm
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    Hi mm

    This seems like a classic codec issue.

    Sure does :(, why some broadcasters are using variances on standard video\audio formats just baffles me, talk about confusion for end users.

    BTW thanks for answering all the posts you do, you are a busy boy :D
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Sure does :(, why some broadcasters are using variances on standard video\audio formats just baffles me, talk about confusion for end users.
    I guess the question is do we need to try to fix this. In RobNCD's case, the audio and video are encoded by his HVR 1600. I'm not sure exactly what TV Server does to wrap it into a transport stream (I'm hoping the screenshot that I requested will tell us that). In my case, the audio and video are encoded by software encoders (ATI AVIVO), muxed, demuxed, remuxed, then finally wrapped into a TS file by our MPFileWriter. If the MP file writer is the problem then someone may be able to do something about it... although I don't know who that someone could be. Not too many people know about the internals of MPFileWriter.

    BTW thanks for answering all the posts you do, you are a busy boy :D
    No problem :)
     

    Attachments

    • Analog encoding.jpg
      Analog encoding.jpg
      67.7 KB

    Users who are viewing this thread

    Top Bottom