HDMI audio sink.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

HDMI audio sink.

forestzhu
Hi everyone,

I have a project on pandaboard.
After a upgrade of h/w accelerated, I found there is no audio output in HDMI Port.

the pipeline is :
gst-launch playbin2 uri="myfile" video-sink="pvrvideosink"

*The pvrvideosink is an Official videosink.
I don't know what audio-sink shoud be used in this case.
The alsasink locates the audio to the PCB's audio output port.
So does the autoaudiosink.
While I need to use the HDMI port as a the total output.
 
Can anyone give some hints?

Best regards!

forest
Reply | Threaded
Open this post in threaded view
|

Re: HDMI audio sink.

Soeren Grunewald
Hi Forest,

i don't know how this is done on pandaboard since i have none, but on a
tegra2 based board there is a second audio device. maybe this is done
similar with the omap drivers. then you command would look something
like this:

 > gst-launch playbin2 uri="myfile" video-sink="pvrvideosink"
audio-sink="alsasink device=hw:1,0"

you should be able to see if there is a hdmi output by looking into:

cat /proc/asound/devices
cat /proc/asound/cards

--
Regards,
Soeren

On 11/29/2011 04:29 AM, forestzhu wrote:

> Hi everyone,
>
> I have a project on pandaboard.
> After a upgrade of h/w accelerated, I found there is no audio output in HDMI
> Port.
>
> the pipeline is :
> gst-launch playbin2 uri="myfile" video-sink="pvrvideosink"
>
> *The pvrvideosink is an Official videosink.
> I don't know what audio-sink shoud be used in this case.
> The alsasink locates the audio to the PCB's audio output port.
> So does the autoaudiosink.
> While I need to use the HDMI port as a the total output.
>
> Can anyone give some hints?
>
> Best regards!
>
> forest
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/HDMI-audio-sink-tp4117937p4117937.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: HDMI audio sink.

forestzhu
Hi Soeren ,
Nice to see your reply.
Follow your hint ,I got these 2 files.
But none of it give me the device name.
cards:
0[panda]:OMAP4-panda
1[PandaHDMI]: -PandaHDMI
                      TI OMAP4 HDMI Board
devices:
2: [0-19]:digital audio capture
3: [0-18]:digital addio capture
...
33: : timer

info:
card:1
device:0
subdevice:0
stream:PLAYBACK
id: HDMI omap4-hdmi-audio-codec-0
name:
subname :subdevice #0
class :0
subclass:0
subdevices_count:1
subdevices_avail:1


in /dev/ there is no things like "omap4" and "HDMI"

What can i do next?
Reply | Threaded
Open this post in threaded view
|

Re: HDMI audio sink.

Soeren Grunewald
Hi Forest,

this looks good,

On 12/05/2011 11:31 AM, forestzhu wrote:
> Hi Soeren ,
> Nice to see your reply.
> Follow your hint ,I got these 2 files.
> But none of it give me the device name.

to use alsa you dont need a device name. the output is referenced by
cardid and output. e.g. hw:0,0 or hw:0,1

> cards:
> 0[panda]:OMAP4-panda
> 1[PandaHDMI]: -PandaHDMI

you have a second card for hdmi audio output

>                        TI OMAP4 HDMI Board
> devices:
> 2: [0-19]:digital audio capture
> 3: [0-18]:digital addio capture
> ...
> 33: : timer
>
> info:
> card:1
> device:0
> subdevice:0
> stream:PLAYBACK

and it can be used as playback device

> id: HDMI omap4-hdmi-audio-codec-0
> name:
> subname :subdevice #0
> class :0
> subclass:0
> subdevices_count:1
> subdevices_avail:1
>
>
> in /dev/ there is no things like "omap4" and "HDMI"

take a look under /dev/snd/*

>
> What can i do next?

In this case this line should work:

 > gst-launch playbin2 uri="myfile" video-sink="pvrvideosink"
audio-sink="alsasink device=hw:1,0"

As second step you can create an alsa alias for your hdmi device. check
your /etc/asound.conf (from details see alsa documentation)

 > pcm.!default {
 > type plug;
 > slave { pcm "hw:0,0" }
 > }
 > pcm.!hdmi {
 > type plug;
 > slave { pcm "hw:1,0" }
 > }

than you can use the alias name
 > audio-sink="alsasink device=hdmi"


hope this will help you.

PS: In general is this the same as on most desktop machines were the gfx
card has an hdmi output. Than you have always a second audio device for
hdmi audio only. So you have to set this device as you output device.
--
Regards,
Soeren
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: HDMI audio sink.

forestzhu
Good day ,Soeren,
Thanks for your help!
But unfortunately,last time I had one thing forgot to say .
On the platform only "alsasink device=hw:0,0" works.
I can not use the "alsasink device=hw:0,1" , "alsasink device=hw:1,0" or others as the audio-sink.
And the "alsasink device=hw:0,0" locates the sound to the PCB's "audio out" port.

in the pcm file :
01-00: HDMI omap4-hdmi-audio-codec-0 : :playback 1
Does it mean HDMI-audio-out as "hw:1,0" can only "playback" not "capture" ?

I am so  puzzled.

Best regards,
forest