« Controlling MediaBox / PC with your PSPInstallation of MythTV complete »

44 comments

  1. § Dimitris Zenios Email said on :
    *****
    Excelent Post.Very informative

    Thank you very much
  2. § Nick Email said on :
    *****
    Thanks for this guide. I was beginning to doubt I was going to get audio through HDMI anytime soon. Being a Ubuntu noob, there were a couple of things not mentioned that hung me up for a little while:

    1. To run the ati update, I had to precede the file name with 'bash'. I received a command not found error until I figured that out.

    2. After changing FIle->Change Device to the ATI HDMI option, nothing appeared in the volume control box. I had to go to Edit->Preferences and check the IEC958 box so that it was visible in the volume control box.
  3. § admin® Email said on :

    Thanks for this guide. I was beginning to doubt I was going to get audio through HDMI anytime soon. Being a Ubuntu noob, there were a couple of things not mentioned that hung me up for a little while:

    1. To run the ati update, I had to precede the file name with 'bash'. I received a command not found error until I figured that out.

    2. After changing FIle->Change Device to the ATI HDMI option, nothing appeared in the volume control box. I had to go to Edit->Preferences and check the IEC958 box so that it was visible in the volume control box.


    Strange that you had to precede it like that. I'll have to edit the post to include your findings. My volume manager showed the IEC958 box by default.

    Thanks for the input.
  4. § cuniculus Email said on :
    ****-
    Hello, which Ubuntu Version did you use ? (kernel, alsa version ?)

    I tried it with mythbuntu 8.04 and new alsa driver and new kernel version and new catalyst 8.8. But HDMI does not work. thanks best regards cuni
  5. § ceri® Email said on :

    Hello, which Ubuntu Version did you use ? (kernel, alsa version ?)


    Ubuntu 8.04, alsa 1.0.16, kernel 2.6.24-20

    Thanks.
  6. § cuniculus Email said on :
    Hello again, how did you install alsa 1.0.16 ? I compiled it. thank cuni
  7. § admin® Email said on :

    Hello again, how did you install alsa 1.0.16 ? I compiled it. thank cuni

    My apologies, 1.0.15 is what I have installed.
  8. § cuniculus Email said on :
    Hello, I found out why you have alsa 1.0.16 and a newer kernel. You have activated proposed updateds, or ?

    yesterday ,I tried it and HDMI audio works (with your kernel version) . But I have to unmute mute the hdmi devices every time to hear something. I will try to use catalyst 8.7 instead of 8.8 . This is the only difference between your and my setup I guess. thanks cuni
  9. § cuniculus Email said on :
    I have found in the changelog from catalyst 8.8:
    Known Issue:
    Connecting an HDMI display device may result in the audio failing to be heard

    maybe this is really my problem. ciao cuni
  10. § ceri® Email said on :

    I have found in the changelog from catalyst 8.8:
    Known Issue:
    Connecting an HDMI display device may result in the audio failing to be heard

    maybe this is really my problem. ciao cuni

    Could well be. Try going back to 8.7 to see if the problem goes away. Let me know how it goes.
  11. § Nick Email said on :
    Does anyone have the HDMI audio working for MythTV? I have gotten the audio to come through HDMI for other apps but nothing yet in Myth.
  12. § ceri® Email said on :

    Does anyone have the HDMI audio working for MythTV? I have gotten the audio to come through HDMI for other apps but nothing yet in Myth.

    You have to specify the alsa HDMI device in the 'Audio output device' field within the configuration. For my machine it looks like this.

    ALSA:hw:1,3
  13. § Dimitris Zenios Email said on :
    I am trying to get sound over hdmi to work but i dont know
    why,it doesnt work.I tried with the 8.7catalyst,8.8 catalyst
    alsa version 1.0.15,alsa 1.0.16 new kernel but nothing.Any idea?I follwed your guide at the beginning but nothing.
  14. § admin® Email said on :

    I am trying to get sound over hdmi to work but i dont know
    why,it doesnt work.I tried with the 8.7catalyst,8.8 catalyst
    alsa version 1.0.15,alsa 1.0.16 new kernel but nothing.Any idea?I follwed your guide at the beginning but nothing.

    Is it the same Gigabyte board I have? What version BIOS firmware do you have?
  15. § Dimitris Zenios Email said on :
    It is exactly the same motherboard.I also have the F3 firmware.What firmware do you have?
  16. § Dimitris Zenios Email said on :
    Seems that i found a way to make it work.I followed your guide but every time i want to listen to something i have to mute and unmute the hdmi audio device.Any idea?
  17. § admin® Email said on :

    It is exactly the same motherboard.I also have the F3 firmware.What firmware do you have?

    F3 is what I have too
  18. § Nick Email said on :
    Have you had any success with MythMusic playing through HDMI? I have gotten the audio to work for MythTv but nothing for MythMusic
  19. § ceri® Email said on :

    Have you had any success with MythMusic playing through HDMI? I have gotten the audio to work for MythTv but nothing for MythMusic

    I haven't actually tried. Can you run mythfrontend from a console to see if you get any error messages in the console output window, running myth in windowed mode will help with this. Let me know if it output's any messages.
  20. § JP said on :
    *****
    I have the same mute-unmute problem as others. Using the 8.47.3 catalyst drivers on this MB:
    http://www.jwele.com/motherboard_detail.php?419

    Interestingly I only have this problem in mythtv. Mplayer for example has no problem with:
    mplayer -ao alsa:device=hw=1.3 file.mpg

    Anyone find a solution to this?

    jp


  21. § ceri® Email said on :

    I have the same mute-unmute problem as others. Using the 8.47.3 catalyst drivers on this MB:
    http://www.jwele.com/motherboard_detail.php?419

    Interestingly I only have this problem in mythtv. Mplayer for example has no problem with:
    mplayer -ao alsa:device=hw=1.3 file.mpg

    Anyone find a solution to this?


    There are a few experiencing this bug with fglrx. Have you tried the radeonhd driver? If you don't required 3D support just yet then that would probably be a better alternative for you. Check my recent posts, I have an article on how to get it compiled and running.

  22. § JP Email said on :
    Thanks for the suggestion. Following your howto I installed the radeonhd driver. It doesn't suffer from the HDMI audio mute problem (yay!), but mythtv was displaying at 2 frame/sec. Is it possible to get this driver working with mythtv?
  23. § ceri® Email said on :

    Thanks for the suggestion. Following your howto I installed the radeonhd driver. It doesn't suffer from the HDMI audio mute problem (yay!), but mythtv was displaying at 2 frame/sec. Is it possible to get this driver working with mythtv?

    What kind of video are you watching, TV stream or local media on hard disk? What type is it, SD or HD? What is playback like when playing via mplayer?
  24. § JP said on :
    It's pretty basic video. Regular SD NTSC recorded by a hauppage 500. With the catalyst driver video playback was fine. It obviously had some sort of video support (xv?). The file is mpeg2 which is recorded at 1 gig per hour and streamed from the backend over 100 baseT wired network.

    Maybe there is something missing from my xorg.conf?
  25. § ceri® Email said on :

    It's pretty basic video. Regular SD NTSC recorded by a hauppage 500. With the catalyst driver video playback was fine. It obviously had some sort of video support (xv?). The file is mpeg2 which is recorded at 1 gig per hour and streamed from the backend over 100 baseT wired network.

    Maybe there is something missing from my xorg.conf?

    A video source like that should have no problems being decoded in software, did you try the source in mplayer? You could try executing the following

    NO_XV="1" mythfrontend


    This will tell myth not to use Xv since radeonhd currently doesn't support it. My mythtv setup uses mplayer and not the internal player and that works fine even with HD content.
  26. § jp said on :
    Thanks. I'll give this a try this evening. I was going to suggest that it was a scaling problem, since my native resolution is 1080p, but since you can display HD, this shouldn't be the problem.

    The other problem I had was that the video signal was cutting out for a few seconds every 10 minutes or so. Have you observed this?

    I've got a fair amount of overscan (say 100 pixels around the border) but this isn't that big a deal yet.

    jp

  27. § admin® Email said on :

    The other problem I had was that the video signal was cutting out for a few seconds every 10 minutes or so. Have you observed this?

    Can't say I have observed this issue


    I've got a fair amount of overscan (say 100 pixels around the border) but this isn't that big a deal yet.

    I had this initially with radeonhd which I didn't have with fglrx, but there was a mode on my TV that allowed a just scan 1:1 mapping which solved the problem for me. It usually in your screen size settings, for example I had 16:9, Wide Zoom, Zoom, 4:3, Just Scan

    jp
  28. § jp said on :
    Thanks for the tips. My overscan problem with the radeonhd driver was related to my TV setting (Just scan).

    I also tried as you suggested to configure software scaling in myth. It sorta works (decoder=standard, video renderer=xshm, trheads=2). But video is choppy and I see bad things in the logs:

    2008-10-15 19:13:03.970 VideoOutputXv: Falling back to X shared memory video output.
    2008-10-15 19:13:04.320 AO: dropping back audio_buffer_unused
    2008-10-15 19:13:09.062 VideoOutputXv Error:
    ***
    * Your system is not capable of displaying the
    * full framerate at 1920x1080 resolution. Frames
    * will be skipped in order to keep the audio and
    * video in sync.
    2008-10-15 19:13:10.099 NVP: prebuffering pause
    2008-10-15 19:13:19.027 NVP: prebuffering pause

    The CPU usage is only 60% per core, and I'm surprised that it claims things are too slow despite having a fair amount of CPU room.

    I've still got the video+audio dropout problem which i didn't see with the catalyst driver.

    At least I 'm making progress. Thanks for your help.

    jp



  29. § ceri® Email said on :
    I also tried as you suggested to configure software scaling in myth. It sorta works (decoder=standard, video renderer=xshm, trheads=2). But video is choppy and I see bad things in the logs:


    Can you try xlib as the renderer. Did you try mplayer, would like to see if that works smoothly for you. Use this when trying mplayer

    mplayer -vo x11 -zoom -fs filenametoplay

    you may need to install it from the Ubuntu repos if you haven't got it installed.

  30. § jp said on :
    I tried out xlib in myth, but this resulted in 2 frames per second video. Mpalyer plays smoothly, but refuses to scale the video to the full screen. ie it plays it in a window:
    mplayer -vo x11 -zoom 1064_20080701133000.mpg
    ------snip----------
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 480 x 480 (preferred colorspace: Mpeg PES)
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    VDecoder init failed :(
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)

  31. § ceri® Email said on :

    I tried out xlib in myth, but this resulted in 2 frames per second video. Mpalyer plays smoothly, but refuses to scale the video to the full screen. ie it plays it in a window:
    mplayer -vo x11 -zoom 1064_20080701133000.mpg

    You missed the -fs option, which basically means full screen. Let me know how that goes, and if it's smooth.
  32. § jp said on :
    You are right. That was a silly mistake on my part.

    Fullscreen mplayer displays this smoothly, but I noticed that it decided to keep the original 4:3 aspect ratio, while myth tries to expand the video to the full 1920x1080 resolution, which results in quite a bit more work for it to do, and probably the source for slightly choppy playback using shm.

    I'd suspect that if I can get myth to keep the real aspect ratio, the radeonhd driver/my system would be sufficient for playing SD.

    Thanks for the pointers.

    jp

  33. § admin® Email said on :

    Fullscreen mplayer displays this smoothly, but I noticed that it decided to keep the original 4:3 aspect ratio, while myth tries to expand the video to the full 1920x1080 resolution, which results in quite a bit more work for it to do, and probably the source for slightly choppy playback using shm.

    Scaling should be no problem for your PC even if it's stretching from 4:3 to 16:9, so that's not the problem with MythTV. You can use -aspect 16:9 on mplayer to force a 4:3 source to be stretched to 16:9 I think. (if that is how you prefer it).

    To me it looks like Myth is still trying to use Xv, which is why it's having problem. I have configured my Myth to use mplayer instead of the internal player so I never see this issue.
  34. § jp said on :
    My end solution was to configure myth to set a different resolution for playback. So X + menues are at 1920x1080, but playback is 640x480. At 640x480 xshm video renderer doesn't have any slugushness to it.

    Not ideal, but I am so annoyed with the catalyst driver, that I will live with it. Hopefully xvideo will come to the HD3200, but apparently this requires 3d and not all the docs have been released by ATI.

    One remaining minor annoyance is that HDMI audio doesn't get mutted while fast forwarding.

    jp

  35. § Phil R Email said on :
    *****
    Thanks for posting this information. I have followed it and have everything working EXCEPT for live TV. When watching live TV, especially HD channels, I get dropped frames. I see your comments that you are using mplayer for playback instead of the internal player. I cannot figure out where to change that for TV playback.

    Any help is greatly appreciated.
  36. § ceri® Email said on :

    I cannot figure out where to change that for TV playback.


    I haven't completed TV part yet, at the moment I am only using it for DVD and Video playback. As far as I am aware though you have to use the internal player for TV playback.

    So until AMD release information on their new XvBA architecture (http://www.phoronix.com/scan.php?page=article&item=amd_xvmc_xvba&num=1) that's inside the latest fglrx you may be out of luck, especially with HD content.
  37. § Chris Eagles Email said on :
    ****-
    Great article. I have the same motherboard and can get sound over HDMI. The problem is that for some DVDs on vlc the sounds cuts out for short periods (30 seconds) before starting up again. I have ubuntu 8.10 with the 8.10 catalyst drivers.

    Is this normal? Plus I cannot get SPDIF to work, whilst using audio over HDMI.

    Chris
  38. § ceri® Email said on :

    Great article. I have the same motherboard and can get sound over HDMI. The problem is that for some DVDs on vlc the sounds cuts out for short periods (30 seconds) before starting up again. I have ubuntu 8.10 with the 8.10 catalyst drivers.

    Is this normal? Plus I cannot get SPDIF to work, whilst using audio over HDMDI.


    No this shouldn't be normal, does the video stutter at all at the same time? Can you try upgrading to Catalyst 8.11? In regards to SPDIF, as far as I am aware (correct me if I am wrong here though) you can only choose one output audio device, since we are changing the audio output default device to be HDMI then that is where the audio will come from. I guess you could do two things in the situation. Set the SPDIF to be the default audio out device and then when you require HDMI audio specify the HDMI audio device within the application you are using. For instance using mplayer you would use -ao alsa:device=hw=1.3 (for me anyway, the 1.3 may be different on yours, which it shouldn't be since it's the same motherboard).
  39. § Chris Eagles Email said on :
    ****-
    Thanks for the feeback. I'm glad it isn't normal. When I'm watching certain movies the sound is absolutely perfect although the video tears a LOT. But last night when watching Casino Royal the audio kept dropping out but the picture had little tearing and was very smooth. I'm using VLC and playing to a Plasma screen. I'm wondering whether VLC or the screen handles DTS badly and perhaps it is the audio type that is wrong?

    Either way I'm taking your direction and moving to the radeonhd drivers. I'm praying the tearing stops and the sound becomes perfect.

    Thanks again.
  40. § Matthew Jones Email said on :
    I'm running Ubuntu 8.04, with the ATI Catalyst 8.11 driver. I have a motherboard with the ATI Radeon 3200 video card. I cannot get HDMI out to work with ATI's driver. I follow your guide for compiling the radeonhd driver. When I did this, sound via HDMI worked beautifully for me. However, Direct Rendering was off, which was causing big OpenGL problems for me. I switched back to the ATI drivers, and I cannot get the sound to work over HDMI.

    I was wondering if you had any more ideas or suggestions for this? I need both the HDMI Sound + Direct Rendering OpenGL for my setup (a Boxee machine).
  41. § admin® Email said on :
    I was wondering if you had any more ideas or suggestions for this? I need both the HDMI Sound + Direct Rendering OpenGL for my setup (a Boxee machine).

    Unfortunately at the moment radeonhd does not support accelerated video/2d/3d, although this is something that I hope will arrive for Christmas. At the moment if you need OpenGL your only option is the ATI Catalyst drivers. As to why it's not working with ATI's driver I am not quite sure, but the HDMI audio support in fglrx is buggy as you can see, since the radeonhd driver works with it no problem.
  42. § Matthew Jones Email said on :
    Yeah I realize now that the radeonhd doesn't support DRI for the HD3200. I have also tried installing the Catalyst 8.9 driver, the version which the CHANGELOG mentions HDMI audio support. I've tried muting and unmuting, just can't get audio to work.

    So now my plan is to go back to Catalyst 8.11, using DVI-to-HDMI and try to get optical out to work. If I can do that, then my last problem is video tearing during playback.
  43. § Patrick Doyle Email said on :
    The link to "HOWTO: Compiling and running radeonhd with HDMI audio" is broken. It is liked to supporthttp://blah.blah.blah instead of http://blah.blah.blah.

    --wpd
  44. § ceri® Email said on :
    The link to "HOWTO: Compiling and running radeonhd with HDMI audio" is broken. It is liked to supporthttp://blah.blah.blah instead of http://blah.blah.blah.

    Thank. Now fixed

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
Originaly designed and iconized by N.Design Studio. Ported to b2evolution by Tender Feelings