[gst-devel] Recordind from alsasrc to filesink

Guilherme grlongo.ireland at gmail.com
Sun Apr 26 18:24:12 CEST 2009


Mates, just for reference

running

gst-launch audiotestsrc ! audioconvert ! wavenc ! filesink 
location=/home/guilherme/Desktop/test.wav

creates a test.wav file of 18 minutes, no matter when I stop recording 
and also it generates a horrible cracking sound...

;o/

Looking for help with waveenc I cant find much information as you can see:

http://gstreamer.freedesktop.org/data/doc/gstreamer/0.10.0/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-wavenc.html

;0/

Tks!

-------------------

Guilherme Longo
Dept. Eng. da Computação
Unaerp

Linux User - #484927

*Before Asking
http://www.istf.com.br/?page=perguntas

!- I'd rather die on my feet than live on my knees -!



Guilherme wrote:
> Stefan...
>
> I did figure out this early this morning but the problem persist.
>
> 1 - Iam using the right source "alsasrc"!
>
> That's what is happening:
>
> gst-launch -m alsasrc ! audioconvert ! level ! audioconvert ! wavenc ! 
> filesink location=/home/guilherme/Desktop/guilherme.wav
>
>
> [..]
> Setting pipeline to PLAYING ...
> Got Message from element "pipeline0" (new-clock): GstMessageNewClock, 
> clock=(GstClock)"\(GstAudioClock\)\ GstAudioSrcClock";
> New clock: GstAudioSrcClock
> Got Message from element "wavenc0" (state-changed): GstMessageState, 
> old-state=(GstState)GST_STATE_PAUSED, 
> new-state=(GstState)GST_STATE_PLAYING, 
> pending-state=(GstState)GST_STATE_VOID_PENDING;
> Got Message from element "audioconvert1" (state-changed): 
> GstMessageState, old-state=(GstState)GST_STATE_PAUSED, 
> new-state=(GstState)GST_STATE_PLAYING, 
> pending-state=(GstState)GST_STATE_VOID_PENDING;
> Got Message from element "level0" (state-changed): GstMessageState, 
> old-state=(GstState)GST_STATE_PAUSED, 
> new-state=(GstState)GST_STATE_PLAYING, 
> pending-state=(GstState)GST_STATE_VOID_PENDING;
> Got Message from element "audioconvert0" (state-changed): 
> GstMessageState, old-state=(GstState)GST_STATE_PAUSED, 
> new-state=(GstState)GST_STATE_PLAYING, 
> pending-state=(GstState)GST_STATE_VOID_PENDING;
> Got Message from element "alsasrc0" (state-changed): GstMessageState, 
> old-state=(GstState)GST_STATE_PAUSED, 
> new-state=(GstState)GST_STATE_PLAYING, 
> pending-state=(GstState)GST_STATE_VOID_PENDING;
> ^CCaught interrupt -- handling interrupt.
> Got Message from element "pipeline0" (application): 
> GstLaunchInterrupt, message=(string)"Pipeline\ interrupted";
> Interrupt: Stopping pipeline ...
> Execution ended after 17225878195 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> ^C
> guilherme at lap:~$
>
> And then, when I open  guilherme.wav ,  gxine  says that the file is 
> empty
>
> Tks!
>
> -------------------
>
> Guilherme Longo
> Dept. Eng. da Computação
> Unaerp
>
> Linux User - #484927
>
> *Before Asking
> http://www.istf.com.br/?page=perguntas
>
> !- I'd rather die on my feet than live on my knees -!
>
>
>
> Stefan Kost wrote:
>> Guilherme schrieb:
>>  
>>> Also trying:
>>>
>>>
>>> gst-launch alsasrc ! audioconvert ! level ! audioconvert ! flacenc ! 
>>> filesink location=my_file.mp3
>>>
>>> does create the file but no snd is recorded.
>>>
>>> ;o(
>>>
>>> Tks!
>>>
>>> -------------------
>>>
>>> Guilherme Longo
>>> Dept. Eng. da Computac,a~o
>>> Unaerp
>>>
>>>     
>>
>> Please check with gnome mixer if you have selected the right source for
>> reording. Also you gst-launch -m to see the level-meter messages from 
>> level
>> element. ALso flacenc ! filesink location=my_file.mp3 is wrong. Use 
>> lame if you
>> want to encode into an mp3, use .flac as an extension, if you really 
>> want flac.
>>
>> Finaly the level element has a demo app under
>> gst-plugins-good/tests/examples/level/
>> which you might want to checkout.
>>
>> Stefan
>>
>> ------------------------------------------------------------------------------ 
>>
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensign option that enables unlimited
>> royalty-free distribution of the report engine for externally 
>> facing server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>   
>




More information about the gstreamer-devel mailing list