sine wave signal for 15 seconds

praveen pandey praveen.pande1 at gmail.com
Wed May 18 06:15:24 PDT 2011


Alternatively you can use sampling frequency and num-buffers from your java
app to do this.

The following pipeline would generate 15s of data. You can set
'samplesperbuffer'  = required sampling frequency(the default is 44100)

gst-launch-0.10  audiotestsrc num-buffers=15 samplesperbuffer=44100 !
fakesink -v

Best Regards
Praveen

2011/5/18 Andrea König <andrea.koenig at gmatic.de>

>  Hi Praveen,
> thanks for your reply. Do you know any other functionality to create the
> 15s lasting sine audio signal by gstreamer.
> I need this for an java application. The duration is a parameter can be set
> by customer.
>
> Best regards
> Andrea
>
> Am 18.05.2011 12:47, schrieb praveen pandey:
>
> Yes! It should be proportional.
>
> 2011/5/18 Andrea König <andrea.koenig at gmatic.de>
>
>> Hi Praveen,
>> many thanks for your reply. Is there a proportional behaviour? Means a
>> num-buffers=150 ends in a timestamp of about 3s than a 15s long signal can
>> be calculated by the ration 150num-buffers/3s?
>>
>> Best regards
>> Andrea
>>
>> Am 18.05.2011 10:05, schrieb praveen pandey:
>>
>> It depends on other factors even, like sampling frequency.
>>
>> To confirm  your data you can run
>>
>> audiotestsrc num-buffers=150 ! fakesink -v
>>
>> and observe the last timestamp. by seeing this timestamp you can calculate
>> the num-buffers to adjust to 15 seconds.
>>
>> Best Regards,
>> Praveen
>>
>> 2011/5/18 Andrea König <andrea.koenig at gmatic.de>
>>
>>> Hi all,
>>> I want to create a sine wave audio signal of a defined length, e.g. 15s.
>>> The element audiotestsrc has the property num-buffers. If I set the
>>> property to a defined value the signal gets an EOS. Set the property to
>>> num-buffers=150 the signal has length of about 9s. Is this the right way
>>> to calculate the length of the signal by number of num-buffers or is
>>> there another possibility?
>>>
>>> --
>>> Best regards
>>>
>>> Andrea König
>>> (Development)
>>>
>>>
>>> G.punkt - medical services
>>> Ihre Wünsche sind unser Konzept
>>> Halberstädter Str. 115 A
>>> 39112 Magdeburg
>>>
>>> fon: +49 391 280380
>>> fax: +49 391 2803822
>>>
>>> mail: Andrea.Koenig at gmatic.de
>>> inet: www.gmatic.de
>>>
>>> Institutskennzeichen: IK331530332, OID: 1.2.276.0.76.3.1.51; (c) 2011 by
>>> G.punkt;
>>> G.punkt ist Trust center zertifiziert für elektronischen Datenaustausch
>>> mit Leistungserbringern;
>>> GF: Tino Graßhof; ST-ID: DE210661356; Nr.: 101-225-04463;
>>> Großhandelserlaubnis nach § 52a Arzneimittelgesetz;
>>> G.punkt ist Mitglied im N.I.R. Netzwerk für innovative Rheumadiagnostik
>>> und -therapie;
>>> Neoscreen, NIQ und gmatic sind eingetragene Warenzeichen
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing listgstreamer-devel at lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>>
>> G.punkt - medical services
>> Ihre Wünsche sind unser Konzept
>> Halberstädter Str. 115 A
>> 39112 Magdeburg
>>
>> fon: +49 391 280380
>> fax: +49 391 2803822
>>
>> mail: Andrea.Koenig at gmatic.de
>> inet: www.gmatic.de
>>
>> Institutskennzeichen: IK331530332, OID: 1.2.276.0.76.3.1.51; (c) 2011 by
>> G.punkt;
>> G.punkt ist Trust center zertifiziert für elektronischen Datenaustausch
>> mit Leistungserbringern;
>> GF: Tino Graßhof; ST-ID: DE210661356; Nr.: 101-225-04463;
>> Großhandelserlaubnis nach § 52a Arzneimittelgesetz;
>> G.punkt ist Mitglied im N.I.R. Netzwerk für innovative Rheumadiagnostik
>> und -therapie;
>> Neoscreen, NIQ und gmatic sind eingetragene Warenzeichen
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
> _______________________________________________
> gstreamer-devel mailing listgstreamer-devel at lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> --
> Mit freundlichen Grüßen
>
> Andrea König
> (Teamleiter Entwicklung)
>
>
> G.punkt - medical services
> Ihre Wünsche sind unser Konzept
> Halberstädter Str. 115 A
> 39112 Magdeburg
>
> fon: +49 391 280380
> fax: +49 391 2803822
>
> mail: Andrea.Koenig at gmatic.de
> inet: www.gmatic.de
>
> Institutskennzeichen: IK331530332, OID: 1.2.276.0.76.3.1.51; (c) 2011 by
> G.punkt;
> G.punkt ist Trust center zertifiziert für elektronischen Datenaustausch mit
> Leistungserbringern;
> GF: Tino Graßhof; ST-ID: DE210661356; Nr.: 101-225-04463;
> Großhandelserlaubnis nach § 52a Arzneimittelgesetz;
> G.punkt ist Mitglied im N.I.R. Netzwerk für innovative Rheumadiagnostik und
> -therapie;
> Neoscreen, NIQ und gmatic sind eingetragene Warenzeichen
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110518/3bbefdc6/attachment.html>


More information about the gstreamer-devel mailing list