hi ,ensonic£¡
I tried your method( gst-launch -v osssrc num-buffers=1000
! audioconvert ! vorbisenc ! ...
and wait for the gst-launch to end ),and the result is same.
But I found one method to record
successfully.
gst-launch osssrc !
audio/x-raw-int,width=16,depth=16,rate=8000,channels=2 !
audioconvert ! vorbisenc ! oggmux ! filesink
location=osssrc.ogg
And I found a strange thing.If the rate is 8K or 16K ,the
file is fine. If the rate is other
values ,the file has nothing. The cause of this case is that
gst_vorbis_enc_buffer_check_discontinuous (vorbisenc,
buffer).
I can't understand one thing that the rate of other values
will cause discontinuous!
|