Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33

Thread: Audio over HDMI issues

  1. #21
    Join Date
    Dec 2012
    Beans
    22

    Re: Audio over HDMI issues

    I needed to install mesa-utils (since glxinfo wasn't there either) I restarted after doing the install and all updates but VAAPI setting in the wizard still didn't work but I'm using OpenGL High quality as a fallback. (The error was something like failed to initialize video)

    Code:
    # glxinfo |grep -i opengl
    OpenGL vendor string: Intel Open Source Technology Center
    OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop 
    OpenGL version string: 3.0 Mesa 9.1-devel
    OpenGL shading language version string: 1.30
    OpenGL context flags: (none)
    OpenGL extensions:
    
    
    # vainfo 
    libva: VA-API version 0.32.0
    libva: va_getDriverName() returns 0
    libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva: va_openDriver() returns 0
    vainfo: VA-API version: 0.32 (libva 1.0.15)
    vainfo: Driver version: Intel i965 driver - 1.0.15
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            :	VAEntrypointVLD
          VAProfileMPEG2Main              :	VAEntrypointVLD
          VAProfileH264Baseline           :	VAEntrypointVLD
          VAProfileH264Baseline           :	VAEntrypointEncSlice
          VAProfileH264Main               :	VAEntrypointVLD
          VAProfileH264Main               :	VAEntrypointEncSlice
          VAProfileH264High               :	VAEntrypointVLD
          VAProfileH264High               :	VAEntrypointEncSlice
          VAProfileVC1Simple              :	VAEntrypointVLD
          VAProfileVC1Main                :	VAEntrypointVLD
          VAProfileVC1Advanced            :	VAEntrypointVLD
    Last edited by splg; December 19th, 2012 at 04:15 AM. Reason: typo, more detail added

  2. #22
    Join Date
    Mar 2007
    Location
    Christchurch, NZ
    Beans
    3,239

    Re: Audio over HDMI issues

    Quote Originally Posted by splg View Post
    (The error was something like failed to initialize video)
    Precise answers and analysis require precise questions. Please post the EXACT error. It is easy enough to cut and paste from the log file.

  3. #23
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,659
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Audio over HDMI issues

    It might be better to test VA-API with VLC or mplayer..but start them from a terminal so we see some logging.

  4. #24
    Join Date
    Dec 2012
    Beans
    22

    Re: Audio over HDMI issues

    Sorry for the lack of error. This is what I get when trying to use VLC with an mpeg file:

    Code:
    VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
    [0xfbc108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 0) for PID 0
    libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) for PID 49
    QGtkStyle was unable to detect the current GTK+ theme.
    libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 0) for PID 0
    libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) for PID 49
    libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 2) for PID 49
    libdvbpsi error (PSI decoder): TS discontinuity (received 14, expected 8) for PID 0
    libva: VA-API version 0.32.0
    libva: va_getDriverName() returns 0
    libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva: va_openDriver() returns 0
    [0x7fa254c955b8] avcodec decoder: Using VA API version 0.32 for hardware decoding.

    This is the mythfrontend output when running the wizard and selecting vaapi and choosing the HD test video
    Code:
    libva: VA-API version 0.32.0
    libva: va_getDriverName() returns 0
    libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva: va_openDriver() returns 0
    2012-12-19 18:35:49.268504 I  VAAPI: Version: 0.32
    2012-12-19 18:35:49.268509 I  VAAPI: Driver : Intel i965 driver - 1.0.15
    2012-12-19 18:35:49.268525 I  VAAPI: Profile: MPEG2Simple Entrypoints: VLD 
    2012-12-19 18:35:49.268528 I  VAAPI: Profile: MPEG2Main Entrypoints: VLD 
    2012-12-19 18:35:49.268532 I  VAAPI: Profile: H264Base Entrypoints: VLD EncSlice (UNSUPPORTED) 
    2012-12-19 18:35:49.268535 I  VAAPI: Profile: H264Main Entrypoints: VLD EncSlice (UNSUPPORTED) 
    2012-12-19 18:35:49.268537 I  VAAPI: Profile: H264High Entrypoints: VLD EncSlice (UNSUPPORTED) 
    2012-12-19 18:35:49.268540 I  VAAPI: Profile: VC1Simple Entrypoints: VLD 
    2012-12-19 18:35:49.268542 I  VAAPI: Profile: VC1Main Entrypoints: VLD 
    2012-12-19 18:35:49.268544 I  VAAPI: Profile: VC1Advanced Entrypoints: VLD 
    2012-12-19 18:35:49.268552 I  VideoOutput: CalcHueBase(Intel i965 driver - 1.0.15): Unknown adaptor, hue may be wrong.
    2012-12-19 18:35:49.268554 I  VideoOutput: Please open a ticket if you need to adjust the hue.
    2012-12-19 18:35:49.268866 I  AFD: Opened codec 0x5689460, id(H264) type(Video)
    2012-12-19 18:35:49.268872 I  AFD: codec AAC has 2 channels
    2012-12-19 18:35:49.269552 I  AFD: Opened codec 0x5689880, id(AAC) type(Audio)
    2012-12-19 18:35:49.269564 I  AFD: codec AC3 has 6 channels
    2012-12-19 18:35:49.269715 I  AFD: Opened codec 0x5697f80, id(AC3) type(Audio)
    2012-12-19 18:35:49.273246 I  AO: Opening audio device 'hdmi:CARD=PCH,DEV=0' ch 2(2) sr 48000 sf signed 16 bit reenc 0
    2012-12-19 18:35:49.274161 E  ALSA: Requested 500000us got 341333 buffer time
    2012-12-19 18:35:49.274225 E  ALSA: Try to manually increase audio buffer with: echo 128 | sudo tee /proc/asound/card0/pcm3p/sub0/prealloc
    2012-12-19 18:35:49.329151 W  OpenGL: Could not determine whether Sync to VBlank is enabled.
    2012-12-19 18:35:49.866378 I  OpenGL1: Fragment program support available
    2012-12-19 18:35:49.866429 I  OpenGL: OpenGL vendor  : Intel Open Source Technology Center
    2012-12-19 18:35:49.866436 I  OpenGL: OpenGL renderer: Mesa DRI Intel(R) Ivybridge Desktop 
    2012-12-19 18:35:49.866439 I  OpenGL: OpenGL version : 3.0 Mesa 9.1-devel
    2012-12-19 18:35:49.866444 I  OpenGL: Max texture size: 8192 x 8192
    2012-12-19 18:35:49.866447 I  OpenGL: Max texture units: 8
    2012-12-19 18:35:49.866457 I  OpenGL: Direct rendering: Yes
    2012-12-19 18:35:49.866459 I  OpenGL: PixelBufferObject support available
    2012-12-19 18:35:49.866461 I  OpenGL: Initialised MythRenderOpenGL
    2012-12-19 18:35:49.866485 I  VidOutGL: Created MythRenderOpenGL device.
    2012-12-19 18:35:49.945208 I  OpenGL painter using existing OpenGL context.
    2012-12-19 18:35:49.945214 I  OpenGL painter using existing QGLWidget.
    2012-12-19 18:35:49.989419 I  GLVid: Using raw RGBA input textures.
    2012-12-19 18:35:49.990544 E  VAAPI: Invalid display
    2012-12-19 18:35:49.990548 E  VidOutGLVAAPI: Failed to create VAAPI context.
    2012-12-19 18:35:49.992835 I  Clearing OpenGL painter cache.
    2012-12-19 18:35:49.992861 I  OpenGL1: Deleting OpenGL Resources
    2012-12-19 18:35:49.992872 I  OpenGL: Deleting OpenGL Resources
    2012-12-19 18:35:49.993702 E  VideoOutput: Not compiled with any useable video output method.
    2012-12-19 18:35:49.993715 E  Player(0): Couldn't create VideoOutput instance. Exiting..
    2012-12-19 18:35:50.011576 E  Player(0): Unable to initialize video.
    2012-12-19 18:36:10.055982 E  playCtx: StartPlaying() Failed to start player
    2012-12-19 18:36:10.057254 I  TV: Main UI disabled.
    2012-12-19 18:36:10.057270 I  TV: Entering main playback loop.
    2012-12-19 18:36:10.059104 I  TV: Exiting main playback loop.
    2012-12-19 18:36:10.086246 N  Resuming idle timer

  5. #25
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,659
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Audio over HDMI issues

    If the VLC (with vaapi) playback test was successful then the problem must be with mythtv.

    I'm not sure if the mythtv errors means that mythtv is:
    - complied without VAAPI support
    - incompatible with later intel driver.

    Do you compile mythtv from source ?
    Can you determine the build options ?

    From freedesktop.org 5th Oct 2012:

    "VA-API was bumped to 0.33.0, while libva still supports VA drivers
    compiled for 0.32.x API."

    This is just speculation but the above quote does not imply that the opposite is true..
    Shame that xorg-edgers does not provide libva for all distro releases..
    Last edited by BicyclerBoy; December 20th, 2012 at 09:21 PM. Reason: clarify?

  6. #26
    Join Date
    Dec 2012
    Beans
    22

    Re: Audio over HDMI issues

    Hello all,

    After a long break due to the holidays, a mess up somewhere within my mythtv setup and the integrated video issues, I've had to format and start over. For some reason my live tv broke and refused to work.

    As such, I took that time to step back, buy an nvidia 630GT card and install mythbuntu 12.04.1. I've done all the updates and upgraded to Mythtv 0.26. Now playing TV or DVD's from this newly reconfigured machine, Stereo sound is working. The really sad part is that my surround 5.1 audio is still not working. I was really hoping that the 630GT would solve the issues but I was wrong.

    So far I installed nvidia-current-updates and nvidia settings via aptitude. aplay -L shows:

    Code:
    null
        Discard all samples (playback) or generate zero samples (capture)
    pulse
        PulseAudio Sound Server
    default:CARD=PCH
        HDA Intel PCH, ALC892 Analog
        Default Audio Device
    sysdefault:CARD=PCH
        HDA Intel PCH, ALC892 Analog
        Default Audio Device
    front:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Front speakers
    surround40:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    dmix:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Direct sample mixing device
    dsnoop:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Direct sample snooping device
    hw:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Direct hardware device without any conversions
    plughw:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Hardware device with all software conversions
    hdmi:CARD=NVidia,DEV=0
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=1
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=2
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        HDMI Audio Output
    dmix:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dsnoop:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct sample snooping device
    dsnoop:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct sample snooping device
    dsnoop:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct sample snooping device
    dsnoop:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct sample snooping device
    hw:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    plughw:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    I've tested with my AVR via command line and this works with 5.1:
    speaker-test -l 4 -c 6 -r 48000 -D hw:1,7

    When the machine isn't playing media, the AVR shows "PLII C" but when I run the above speaker test it does show "Multi In".

    I've tried to change everything possible in VLC (the version that came with mythbuntu) and even DVD's that the XBOX shows as "Dolby" only play as stereo. VLC seems very flaky and when I change a setting and save it, I exit and restart it to ensure that it was applied. I've changed the setting for Dolby surround to ON, Use S/PDIF when available, and under ALSA set Audio Output channels to 5.1. To make matters stranger, forcing certain settings like all the Surround options, makes a quick chirping/static noise that is very loud. Further testing shows that if I keep all the force Dolby stuff on in VLC but disable the Use S/PDIF checkbox and play a DVD, the menu of the DVD with audio plays (as stereo) but when I choose the first chapter, the audio cuts out (no chirping). No matter how high the volume, there is no audio. If I skip to a few minutes forward or back, the AVR goes from PLII C, to Multi In for a brief second and I hear audio. But one second later, it cuts out and shows PLII C again but with no audio.

    I'm not sure what is missing here and how the Xbox will say it's a normal Dolby 5.1 DVD but when the Mythtv box plays it, will only show as stereo. (Even the Multi In mode, isn't good since that is some sort of upmixing from stereo to play the same stuff in all the speakers)

    I know there is a lot of information here but if you have any pointers now that I have additional hardware and have done the format/reinstall please let me know. Hope everyone had a good holiday.
    Last edited by splg; January 19th, 2013 at 11:32 PM. Reason: More info

  7. #27
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,659
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Audio over HDMI issues

    Sad you gave up on intel vaapi..
    Just other day I tried an old i3 ironlake vaapi xorg-edgers & mythtv 0.26+fixes..
    Played OTA TV at exactly half frame rate..
    The unity desktop was much faster than old nvidia 9400GT.

    Did you rescan audio devices (FE audio settings)?

    Tick the audio codecs supported by your amp?
    This might not be necessary because MythTV can now read/parse the EDID audio data.

    "Multi-in" means discrete multi-channel PCM (over HDMI).
    MythTV (& VLC XBMC) can output AC3/DTS 5.1 as bitstream (not decoded) or decoded as discrete multichannel (HDMI only).

    I think I trust a good HT amp AVR decoders more than ffmpeg..mind you ffmpeg does not cost "an arm & a leg"..

    You can can configure MythTV to output AC3/DTS/DTS-MA/E-AC3 directly to your amp..

  8. #28
    Join Date
    Dec 2012
    Beans
    22

    Re: Audio over HDMI issues

    Yeah, I did give up (in hopes of making things easier) but really I'm right back where I started! I went through the FE audio setup again and ticked all the boxes since my AVR supports them all, hit rescan, did the speaker test on all of them and think the most appropriate choice is:

    hw:CARD=NVidia,DEV=7

    I ran the test from CLI with: speaker-test -Dhw:CARD=NVidia,DEV=7 -c6 and got the normal 5.1 output and the AVR showed the "Multi In". Everything seems good but TV recordings that show they should be 5.1 only come through as 2.0. That is why I was testing with VLC and a DVD as previously suggested and can confirm that that doesn't work either. (Of course, if I skip ahead in VLC, the AVR mode switches for a second to Multi In, I hear the audio from all channels and then POOF, the mode on the AVR switches and audio is lost)

    Since I started fresh and have a new install, what packages would you recommend to ensure all the proper drivers/software is loaded? Again I'm using mythbuntu 12.04.1 with latest updates. I feel as though there is some setting in mythbuntu itself I'm missing. Clearly the audio can come through, just seems like it's misconfigured at this point. Thanks so far for the help, I know this one is very strange.

  9. #29
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,659
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Audio over HDMI issues

    AFAIK MythTV 0.26 (&0.25) enumerates the nVidia pin codecs 3,7-9 as [0 - 3]..

    So your correct device could/should be labelled:

    "ALSA:hdmi:CARD=NVidia,DEV=1"

    (it does on my lucid 10.04 mythtv 0.26+fixes alsa 1.0.26)

    What is your speaker configuration set to ?

    Maybe your HT amp is reporting the amp & TV/display audio ELD in a less common format that is confusing alsa/mythv. Onkyo was one brand causing problems.
    Last edited by BicyclerBoy; January 22nd, 2013 at 10:13 PM.

  10. #30
    Join Date
    Dec 2012
    Beans
    22

    Re: Audio over HDMI issues

    I've changed the audio device as you have stated above and was successful when running the audio test from the wizard. It didn't change the issues am having though. I was wondering about the updated ALSA version you have. I show my version is at 1.0.24.

    I've also played around with the HDMI setting on the AVR but that too doesn't change anything. It seems as though the proper signal is sent out for a brief second but then changes back. I'd assume it was an issue with the AVR except I've got a few different types of devices, media players, etc attached and they all work without a problem. And since I can't get VLC to work either, it seems very much a mythbuntu/ubuntu issue rather than a MythTV problem.

    Anything else I should be checking?

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •