GNOME Bugzilla – Bug 411520
gst produces ogg junk
Last modified: 2007-06-26 15:52:23 UTC
Starting from https://answers.launchpad.net/jokosher/+ticket/3205 I was able to reduce my problem down to GST_DEBUG_NO_COLOR=true GST_DEBUG=5 gst-launch-0.10 alsasrc ! audioconvert ! vorbisenc ! oggmux ! filesink location=myfile.ogg 2 &> log failing. The resulting log file and sound file can be found over here: log file (huge, sorry): http://daniel.holba.ch/temp/log.bz2 ogg file (ogg junk): http://daniel.holba.ch/temp/myfile.ogg gst-plugins-base0.10 0.10.11cvs20070222 If there's any missing info you need, let me know.
How about if you don't turn on all debugging? It's going to slow things down a lot, causing x-runs in the capture, especially since that single threaded pipeline isn't doing any buffering - if the encoding + muxing + writing of any buffer stalls for longer than 200ms (the default buffer-time of alsasrc), samples will be lost, causing the effect I hear in the output file. Try: gst-launch-0.10 alsasrc ! queue ! audioconvert ! vorbisenc ! oggmux ! filesink location=myfile.ogg
I reproduced it last night with jokosher 0.2 and gstreamer 0.10.11.2 -- not with the line you mentioned yet - I'll try that today.
(In reply to comment #2) > I reproduced it last night with jokosher 0.2 and gstreamer 0.10.11.2 -- not > with the line you mentioned yet - I'll try that today. Did you have a chance to try this yet? The .ogg file sounds a lot like the vorbis encoder is flushing/resetting itself constantly (which it would do on stream discontinuities, e.g. if alsasrc can't capture fast enough and there are gaps in the captured input).
Up until now the gst-launch-0.10 line still works nicely for me, jokosher is constantly unusable for me. What reasons are there for not being able to capture fast enough? I just noticed that when doing the recording jokosher+metacity+X use 100% CPU. Could it be the time counter which updates every n+1 ms?
Yes, that could well cause it. The fact that X is also chewing a lot of cpu definitely points toward redrawing being expensive.
I filed a jokosher bug: https://launchpad.net/jokosher/+bug/96441
Can this be closed?
Yes, sorry - I still have the problem, but can't trace it back to gstreamer. Thanks.