general stream error with alsasink iec958 audio/x-ac3 passtrough
Submitted by Daniel Schürmann
Link to original bug (#721740)
Description
I got a general stream error when trying
pasuspender -- gst-launch-1.0 filesrc location=www_lynnemusic_com_surround_test.ac3 ! ac3parse ! alsasink device='iec958:CARD=PCH,DEV=0'
On Ubuntu Precise 64 bit and Intel hda ALC887-VA sound.
This is the output with --gst-debug=alsa:5 -v
0:00:00.021135527 17580 0x8daf00 DEBUG alsa gstalsaplugin.c:71:plugin_init: binding text domain gst-plugins-base-1.0 to locale dir /usr/local/share/locale
0:00:00.021304832 17580 0x8daf00 DEBUG alsa gstalsasink.c:253:gst_alsasink_init:GstAlsaSink@0x8ec1b0 initializing alsasink
0:00:00.021504834 17580 0x8daf00 DEBUG alsa gstalsasink.c:286:gst_alsasink_getcaps:<alsasink0>
device not open, using template caps
0:00:00.021592933 17580 0x8daf00 DEBUG alsa gstalsasink.c:286:gst_alsasink_getcaps:<alsasink0>
device not open, using template caps
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstAc3Parse:ac3parse0.GstPad:src: caps = audio/x-ac3, framed=(boolean)true, rate=(int)48000, channels=(int)6, alignment=(string)frame
0:00:00.025361246 17580 0x7b2cf0 DEBUG alsa gstalsa.c:182:gst_alsa_detect_formats:<alsasink0>
skipping non-raw format
0:00:00.025370231 17580 0x7b2cf0 DEBUG alsa gstalsa.c:182:gst_alsa_detect_formats:<alsasink0>
skipping non-raw format
0:00:00.025373826 17580 0x7b2cf0 DEBUG alsa gstalsa.c:182:gst_alsa_detect_formats:<alsasink0>
skipping non-raw format
0:00:00.025377105 17580 0x7b2cf0 DEBUG alsa gstalsa.c:182:gst_alsa_detect_formats:<alsasink0>
skipping non-raw format
0:00:00.025384538 17580 0x7b2cf0 DEBUG alsa gstalsa.c:49:gst_alsa_detect_rates:<alsasink0>
Min. rate = 32000 (32000)
0:00:00.025389965 17580 0x7b2cf0 DEBUG alsa gstalsa.c:50:gst_alsa_detect_rates:<alsasink0>
Max. rate = 192000 (192000)
0:00:00.025395106 17580 0x7b2cf0 DEBUG alsa gstalsa.c:383:gst_alsa_detect_channels:<alsasink0>
Min. channels = 2 (2)
0:00:00.025399140 17580 0x7b2cf0 DEBUG alsa gstalsa.c:384:gst_alsa_detect_channels:<alsasink0>
Max. channels = 2 (2)
0:00:00.025408356 17580 0x7b2cf0 DEBUG alsa gstalsa.c:463:gst_alsa_open_iec958_pcm:<alsasink0>
Generated device string "iec958:CARD=PCH,DEV=0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}"
0:00:00.025428547 17580 0x7b2cf0 WARN alsa conf.c:4606:parse_args: alsalib error: Parameter DEV must be an integer
0:00:00.025437385 17580 0x7b2cf0 WARN alsa conf.c:4711:snd_config_expand: alsalib error: Parse arguments error: Invalid argument
0:00:00.025443189 17580 0x7b2cf0 WARN alsa pcm.c:2239:snd_pcm_open_noupdate: alsalib error: Unknown PCM iec958:CARD=PCH,DEV=0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:00.025457422 17580 0x7b2cf0 DEBUG alsa gstalsa.c:469:gst_alsa_open_iec958_pcm:<alsasink0>
failed opening IEC958 device: Invalid argument
0:00:00.025462405 17580 0x7b2cf0 INFO alsa gstalsasink.c:318:gst_alsasink_getcaps:<alsasink0>
returning caps audio/x-raw, format=(string){ S16LE, S32LE }, layout=(string)interleaved, rate=(int)[ 32000, 192000 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003
ERROR: from element /GstPipeline:pipeline0/GstAc3Parse:ac3parse0: GStreamer encountered a general stream error.
Additional debug info:
gstbaseparse.c(3188): gst_base_parse_loop (): /GstPipeline:pipeline0/GstAc3Parse:ac3parse0:
streaming stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/GstAc3Parse:ac3parse0.GstPad:src: caps = NULL
Freeing pipeline ...
Version: 1.2.2