No sound after 1 second after AAC decode to usb sound card, but output to file seems OK

Diaz Soho soho123.2012 at gmail.com
Thu Dec 5 18:53:32 PST 2013


hi all,

When I try the pipe:
gst-launch-0.10 -v
http://192.168.1.3:9000/disk/DLNA-PNAAC_ISO-OP01-FLAGS01700000/O0$1$8I2829.m4a!
qtdemux ! ffdec_aac ! audioconvert ! audio/x-raw-int,width=16 !
alsasink
sync=false



I can hear sound from USB sound card. but
it is not the same as original song.
why I set sync=false, such that I can hear sound from USB sound card?
The music sounds very slow.
Why the sound is not the same as original sound?
is it cause CPU slowly?
or sync issue?

my target platform :CPU 400Mhz, memory 32MB
audio file :431Kbps, AAC LC encode, 2 channel, 44.1Khz























2013/12/5 Diaz Soho <soho123.2012 at gmail.com>

> Hi All,
>
>
> After checking the pipe when I use pipe 2 to verification.
> 2. gst-launch-0.10 -v
> http://192.168.1.3:9000/disk/DLNA-PNAAC_ISO-OP01-FLAGS01700000/O0$1$8I2829.m4a !
> qtdemux ! ffdec_aac ! audioconvert ! audio/x-raw-int,width=16 ! alsasink
>
> in the c code :gst-plugins-base-0.10.36/gst-libs/gst/audio/gstaudiosink.c,
> function audioringbuffer_thread_func(),
> the thread will read audio data from ring buffer, then write to audio sink.
> I write the data  that read from ring buffer to local usb disk.
> And check the file, it contents silence data after 1 second.
>
> Does anyone have idea :
> why audioringbuffer_thread_func() call
> function gst_ring_buffer_prepare_read() , then get silence audio data?
>
>
>
> Any input is very appreciate!!!!
>
>
> Best Regards,
> Soho
>
>
>
>
>
> 2013/12/4 Diaz Soho <soho123.2012 at gmail.com>
>
>> Hi all,
>>
>> the pipe I used for verification:
>> 1. gst-launch-0.10 -v
>> http://192.168.1.3:9000/disk/DLNA-PNAAC_ISO-OP01-FLAGS01700000/O0$1$8I2829.m4a! qtdemux ! ffdec_aac ! audioconvert ! audio/x-raw-int,width=16 ! filesink
>> location=/var/tmp/usb/sda1/aac_test.pcm
>>
>> 2. gst-launch-0.10 -v
>> http://192.168.1.3:9000/disk/DLNA-PNAAC_ISO-OP01-FLAGS01700000/O0$1$8I2829.m4a! qtdemux ! ffdec_aac ! audioconvert ! audio/x-raw-int,width=16 ! alsasink
>>
>>
>>
>> In the pipe 1 , the output file /var/tmp/usb/sda1/aac_test.pcm can be
>> played normally.
>> In the pipe 2, the output from usb sound card can not be hear normally
>> after about 1 seconds.
>>
>> Does anyone have any idea about the issue?
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131206/d1e31834/attachment-0001.html>


More information about the gstreamer-devel mailing list