[gstreamer-bugs] [Bug 627263] New: add property for pulsesrc to "use native format without any conversions"
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Aug 18 07:00:27 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=627263
GStreamer | gst-plugins-good | unspecified
Summary: add property for pulsesrc to "use native format
without any conversions"
Classification: Desktop
Product: GStreamer
Version: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: bug-track at fisher-privat.net
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Pleas add option to pulsesrc to use same format in source.
For example:
i have webcam which provide "s16le 1ch 16000Hz" pulsesrc
will take "float32le 1ch 44100Hz". In this case pulse will convert it.
At end point we have bigger file with 44100Hz even if we used source
with 16000Hz and more CPU load.
Solution is to use flags when creating the stream: PA_STREAM_FIX_FORMAT,
PA_STREAM_FIX_RATE and PA_STREAM_FIX_CHANNELS.
here is patch what i used to hard code this flags, it work fine for me:
--- gst-plugins-good0.10-0.10.24.3.orig/ext/pulse/pulsesrc.c
+++ gst-plugins-good0.10-0.10.24.3/ext/pulse/pulsesrc.c
@@ -963,6 +963,8 @@ gst_pulsesrc_prepare (GstAudioSrc * asrc
#ifdef HAVE_PULSE_0_9_11
PA_STREAM_ADJUST_LATENCY |
#endif
+ PA_STREAM_FIX_FORMAT | PA_STREAM_FIX_RATE |
+ PA_STREAM_FIX_CHANNELS |
PA_STREAM_START_CORKED) < 0) {
GST_ELEMENT_ERROR (pulsesrc, RESOURCE, FAILED,
("Failed to connect stream: %s",
Take a loot to this discussion:
http://comments.gmane.org/gmane.comp.video.gstreamer.devel/30839?set_blog_all=yes
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list