[gst-devel] Does playbin2 work with alsaspdifsink?

Akihiro TSUKADA tskd2 at yahoo.co.jp
Mon Feb 7 15:48:58 CET 2011


Hi, all,
I'm writing a small element, (named aac2spdif), which encapsulates AAC ADTS
frames into IEC61937/IEC958 frames, and I have problem in outputting to alsaspdif. 
For example,
   uridecodebin uri=file:///foo.aac ! alsaspdifsink
or
   filesrc location=foo.aac ! aacparse ! aac2spdif ! alsaspdifsink
worked, although I had to modify the ranks of some of those elements.  but
  playbin2 uri=file///foo.aac audio-sink=alsaspdifsink
does not work, aborts during PREROLLING, saying like the following.
------------------
.........
0:00:00.053798086 14224      0x1f541b0 DEBUG               playbin2 gstplaybin2.c:2657:no_more_pads_cb:<playbin20> linked type audio/x-raw-, result: 0
0:00:00.053816686 14224      0x1f541b0 DEBUG               playbin2 gstplaybin2.c:2666:no_more_pads_cb:<playbin20> pending 1 > 0
0:00:00.053830766 14224      0x1f541b0 INFO                playbin2 gstplaybin2.c:2695:no_more_pads_cb:<playbin20> setting default audio sink <bin0>
0:00:00.053848046 14224      0x1f541b0 INFO                playbin2 gstplaybin2.c:2706:no_more_pads_cb:<playbin20> setting default video sink (NULL)
ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: Internal GStreamer error: pad problem.  Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
追加のデバッグ情報:[additional debug info]
gstplaysink.c(1885): gen_audio_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0:
Failed to configure the audio sink.
ERROR: pipeline doesn't want to preroll.
---------------
It also says before the above messages,
> 0:00:00.053221521 14224      0x1f541b0 DEBUG               playbin2 gstplaybin2.c:2378:pad_added_cb:<playbin20> pad uridecodebin0:src0 with caps audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)[ 8000, 96000 ], channels=(int)[ 1, 8 ] added in group 0x1fa2ab8

So,
it seems to me that specifying audio-sink property does not affect the caps of playbin2.
Is there any requirement on the elements contained in playbin2
to work properly with alsaspdifsink?

I'm using gstreamer 0.10.31, gst-plugins-base 0.10.31, and gst-plugins-bad 0.10.20
 on Fedora14 x86_64.

regards,
tskd
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/




More information about the gstreamer-devel mailing list