Bad desktop audio capture quality

About encoding, codec settings, muxers and filter usage
Wallboy
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Apr 2010 08:53

Bad desktop audio capture quality

Postby Wallboy » 18 Oct 2010 04:45

I'm trying to capture my Stereo Mix on my Omega Striker soundcard and I can get it to capture, but the quality sounds terrible. Here's my current command line (VLC 1.1.4):

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv -I oldrc dshow:// --dshow-vdev "None" --dshow-adev "Stereo Mix (HTO STRIKER 7.1)" --dshow-audio-channels 2 --dshow-audio-samplerate 44100 --dshow-audio-bitspersample 16 --dshow-caching 200 --sout="#transcode{venc=x264{preset=fast,tune=film,profile=baseline,level=3.0,keyint=350,bframes=0,ref=2,weightp=0,scenecut=40,cabac=0,qpmin=1,qpmax=51,qcomp=0.6,ratetol=0.01,vbv-maxrate=1200,vbv-bufsize=600},vcodec=h264,vb=1200,scale=1,audio-sync,acodec=mp3,ab=128,channels=2,samplerate=44100}:standard{access=file,mux=ts,dst="C:\jtv\screen.ts"}"

Ignore the video transcode settings. What might be the problem? I'm tryed various codecs as well (mp3, mpga, mp4a, etc) Couldm't get a log saved out through command line, so I just reproduced the same audio settings within GUI and get the same result. Here's the log from that:

Code: Select all

qt4 debug: MRL passed to the Sout: dshow:// qt4 debug: Adding option: dshow-vdev=none qt4 debug: Adding option: dshow-adev=Stereo Mix (HTO STRIKER 7.1) qt4 debug: Adding option: dshow-caching=200 qt4 debug: Adding option: dshow-vdev= qt4 debug: Adding option: dshow-adev= qt4 debug: Adding option: dshow-size= qt4 debug: Adding option: dshow-aspect-ratio=4:3 qt4 debug: Adding option: dshow-chroma= qt4 debug: Adding option: dshow-fps=0 qt4 debug: Adding option: no-dshow-config qt4 debug: Adding option: no-dshow-tuner qt4 debug: Adding option: dshow-tuner-channel=0 qt4 debug: Adding option: dshow-tuner-country=0 qt4 debug: Adding option: dshow-tuner-input=0 qt4 debug: Adding option: dshow-video-input=-1 qt4 debug: Adding option: dshow-video-output=-1 qt4 debug: Adding option: dshow-audio-input=-1 qt4 debug: Adding option: dshow-audio-output=-1 qt4 debug: Adding option: dshow-amtuner-mode=1 qt4 debug: Adding option: dshow-audio-channels=2 qt4 debug: Adding option: dshow-audio-samplerate=44100 qt4 debug: Adding option: dshow-audio-bitspersample=16 qt4 debug: Adding option: dshow-caching=200 qt4 debug: Adding option: :sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:file{dst=test.mp4} qt4 debug: Adding option: no-sout-rtp-sap qt4 debug: Adding option: no-sout-standard-sap qt4 debug: Adding option: sout-keep main debug: adding item `Streaming' ( dshow:// ) main debug: rebuilding array of current - root Playlist main debug: rebuild done - 3 items, index 1 main debug: processing request item Streaming node Playlist skip 0 main debug: resyncing on Streaming main debug: Streaming is at 2 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'Streaming' main debug: thread started main debug: thread (input) created at priority 1 (../.././src/input/input.c:214) main debug: reusing sout main debug: you probably want to use gather stream_out main debug: using timeshift granularity of 50 MiB main debug: using timeshift path 'C:\Users\Wallboy\AppData\Local\Temp' main debug: `dshow://' gives access `dshow' demux `' path `' main debug: creating demux: access='dshow' demux='' path='' main debug: looking for access_demux module: 1 candidate dshow debug: dshow-vdev: none dshow debug: dshow-adev: Stereo Mix (HTO STRIKER 7.1) dshow debug: skipping video device dshow debug: found device: Aux (HTO STRIKER 7.1) dshow debug: found device: CD Player (HTO STRIKER 7.1) dshow debug: found device: Line 1 (Virtual Audio Cable) dshow debug: found device: Line In (HTO STRIKER 7.1) dshow debug: found device: Microphone (HTO STRIKER 7.1) dshow debug: found device: SPDIF In (HTO STRIKER 7.1) dshow debug: found device: Stereo Mix (HTO STRIKER 7.1) dshow debug: asking for device: Stereo Mix (HTO STRIKER 7.1) dshow debug: asked for Stereo Mix (HTO STRIKER 7.1), binding to Stereo Mix (HTO STRIKER 7.1) dshow debug: using device: Stereo Mix (HTO STRIKER 7.1) dshow debug: EnumDeviceCaps: output pin: Capture dshow debug: EnumDeviceCaps: input pin: Master Volume dshow debug: EnumDeviceCaps: trying pin Capture qt4 debug: IM: Setting an input dshow debug: EnumDeviceCaps: input pin default format configured dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:44100 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:44100 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:44100 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:32000 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:32000 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:22050 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:22050 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:11025 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:11025 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:8000 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:8000 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:44100 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:44100 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:22050 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:22050 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:11025 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:11025 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:8000 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:8000 bits/sample:8 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:48000 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:48000 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:2, samples/sec:96000 bits/sample:16 dshow debug: EnumDeviceCaps: input pin accepts format: araw, channels:1, samples/sec:96000 bits/sample:16 dshow debug: CaptureFilter::JoinFilterGraph dshow debug: connecting filters dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [not connected] dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::QueryFilterInfo dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryAccept [OK] (channels=2, samples/sec=44100, bits/samples=16, format=araw) dshow debug: CapturePin::ReceiveConnection [OK] dshow debug: CapturePin::NotifyAllocator dshow debug: filters connected successfully ! dshow debug: MEDIATYPE_Audio dshow debug: selected audio pin accepts format: araw dshow debug: Playing... dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::QueryPinInfo dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CaptureFilter::EnumPins dshow debug: CapturePin::QueryDirection dshow debug: CapturePin::ConnectedTo [OK] dshow debug: CaptureFilter::SetSyncSource dshow debug: CaptureFilter::Pause dshow debug: CaptureFilter::Run main debug: selecting program id=0 main debug: using access_demux module "dshow" main debug: TIMER module_need() : 260.000 ms - Total 260.000 ms / 1 intvls (Avg 260.000 ms) main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:301) main debug: thread started main debug: starting in sync mode main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in C:\Users\Wallboy\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC4\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC4\lua\meta\reader\filename.lua main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: `dshow://' successfully opened main error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR ! main debug: switching to async mode packetizer_copy debug: need valid dts main debug: Buffering 0% main debug: Buffering 50% main debug: adding a new sout input (sout_input:033fef48) stream_out_transcode debug: creating audio transcoding from fcc=`s16l' to fcc=`mp4a' main debug: looking for decoder module: 34 candidates araw debug: samplerate:44100Hz channels:2 bits/sample:16 main debug: using decoder module "araw" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG AAC Audio main debug: using encoder module "avcodec" main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) main error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value main debug: removing module "araw" main debug: removing module "avcodec" main error: cannot create packetizer output (s16l) main debug: Buffering 100% main debug: Stream buffering done (300 ms in 300 ms) main debug: Decoder buffering done in 0 ms
Last edited by Wallboy on 19 Oct 2010 01:11, edited 2 times in total.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Bad desktop audio capture quality

Postby Rémi Denis-Courmont » 18 Oct 2010 19:21

Did you try 48000 Hz? Many recent cheap audio PC hardware sucks at 11025 Hz and multiple thereof.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Wallboy
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Apr 2010 08:53

Re: Bad desktop audio capture quality

Postby Wallboy » 19 Oct 2010 01:29

Yeah I've tried that as well. I got it working sort of though. If something is already playing and I start the command line script, it works fine. If I start the script and then start playing something, it distorts.

Edit: Well now it's just random. Sometimes it will sound terrible, the next time it will sound perfect... :?

Maybe it's my output settings and mux and it's corrupting the file. I'm not sure what I should be using here.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 3 guests