ChinnaSuhas / ossbuild

Automatically exported from code.google.com/p/ossbuild
Other
0 stars 1 forks source link

Audio recording issues on Windows #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Note: this post is a summary and follow up to the gstreamer mailing list post 
titled "Distorted audio capture on 
Vista" (http://sourceforge.net/mailarchive/forum.php?
thread_name=772db3281002060812v23c0ac39weaec27e00ef4fa09@mail.gmail.com&forum_na
me=gstreamer-devel).

Following command produces a short recording of the microphone input:

gst-launch-0.10 dshowaudiosrc num-buffers=400 ! audioconvert !
audioresample ! faac ! mp4mux ! filesink location=test.mp4

 I have different results depending on the test machine:

- Macbook Pro running Windows 7: OK
- Acer laptop running Vista: jerky and distorted audio
- 2nd Acer laptop running Vista: jerky and distorted audio
- PC running Windows XP: OK

To ensure that it isn't simply a hardware problem on the Vista laptops I made a 
recording using the vendor built-
in webcam utility. It produced a fine recording which makes me think that 
something is wrong with the 
dshowaudiosrc component.

My hopes are currently on directsoundsrc. This element is not included in the 
current GStreamer WinBuild. After 
adding it locally I can verify that it works find on the Windows XP PC. 
However, I still haven't verified if it 
works on the Vista laptops!! (I'll test Monday)

The patch is included as an attachment. Before applying the patch you need to 
copy the "bad" directsoundsrc source 
files the "good" directsound plugin:

cp Main/GStreamer/Source/gst-plugins-bad/sys/directsound/gstdirectsoundsrc.c 
Main/GStreamer/Source/gst-plugins-
good/sys/directsound
cp Main/GStreamer/Source/gst-plugins-bad/sys/directsound/gstdirectsoundsrc.h 
Main/GStreamer/Source/gst-plugins-
good/sys/directsound

Grts,
Francis

Original issue reported on code.google.com by francis....@gmail.com on 6 Feb 2010 at 5:20

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, 
Your patch is more a hack than a solution ;)
I already added this plugin this afternoon after reading your post on GStreamer 
ML:
http://code.google.com/p/ossbuild/source/detail?r=418
Could you test it in Vista?

Original comment by ylatuya on 7 Feb 2010 at 3:56

GoogleCodeExporter commented 9 years ago
I somehow suspected that shamelessly promoting a "bad" plugin to a "good" one 
isn't exactly how things are done. I just wanted to test the directsoundsrc 
element quickly 
:)

I'll test the Vista machines on Monday.

Grts,
Francis

Original comment by francis....@gmail.com on 7 Feb 2010 at 4:14

GoogleCodeExporter commented 9 years ago
On the Vista laptops don't have the audio jitter when using directsoundsrc. The 
distortions (noisy cracks) remain. 

Original comment by francis....@gmail.com on 9 Feb 2010 at 8:33

GoogleCodeExporter commented 9 years ago
This needs to be submitted as a patch to the gstreamer folks. Once they include 
it 
in a release, it'll appear in a subsequent ossbuild/winbuilds release. But I 
don't 
won't to get in the business of maintaining extra plugins/patches that aren't 
being 
submitted upstream.

The goal of any patch should be to have it included in gstreamer and approved 
by 
their folks. If it doesn't pass muster w/ them, then it shouldn't be in our 
release.

Also, please keep in mind that issues surrounding gstreamer plugins should be 
submitted directly to the gstreamer folks. If there's a problem or bug or crash 
with 
the built binaries/installers, then that's an issue for us. We really just 
compile 
and generate installers for gst and its dependencies (when you get down to it). 
All 
other issues should be directed elsewhere. Thanks for using the gst mailing 
list - 
you can also try IRC (#gstreamer, irc.freenode.net) to speak w/ the devs. I'm 
on 
there myself every now and then.

Original comment by david.g.hoyt on 9 Feb 2010 at 9:24

GoogleCodeExporter commented 9 years ago
I'm closing this out since it should be fixed in the gst source (not here).

Original comment by david.g.hoyt on 9 Feb 2010 at 10:17