I have searched and searched but am not having luck with this. I am playing back audio and streaming it via HTTP. I set my input and output device to "SoundFlower (2ch)" in the Audio/MIDI Setup inside OSX. I can successfully capture the audio, but for some reason it is trying to do a 44100 conversion, which results in a slightly lower pitch and choppy audio output on the stream.
The path should be 48000 sample rate the entire way. I play audio using an audio program and tell it to output to the Soundflower 2ch, which is set at 48000. My audio source is also 48000. I see in the log it is trying to do a conversion involving a 44100 sample rate, which is definitely the cause of my sample rate mismatch.
Is there a parameter to tell it to capture at 48000 instead? The device is definitely set to 48000 as well as my transcoded stream is set to 48000..
Here is the command I am issuing:
Code: Select all
/Applications/VLC.app/Contents/MacOS/VLC -vvv qtsound://SoundflowerEngine:0 --sout "#transcode{acodec=mp3,ab=320,channels=2,samplerate=48000}:std{access=http,mux=ts}" --http-host=192.168.0.230 http-port=8080
Here is part of the log output (the rest is on my next posts due to character limit)
Code: Select all
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[00007f9f73c1bba0] main libvlc debug: VLC media player - 3.0.8 Vetinari
[00007f9f73c1bba0] main libvlc debug: Copyright © 1996-2019 the VideoLAN team
[00007f9f73c1bba0] main libvlc debug: revision 3.0.8-0-gf350b6b5a7
[00007f9f73c1bba0] main libvlc debug: configured with /Users/d-fu/vlc-3.0/extras/package/macosx/../../../configure '--prefix=/Users/d-fu/vlc-3.0/build/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-osx-notifications' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-qtkit' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-pulse' '--disable-sdl-image' '--disable-vnc' '--build=x86_64-apple-darwin17' '--host=x86_64-apple-darwin17' '--with-macosx-version-min=10.7' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk' '--with-breakpad=https://mac.crashes.videolan.org' 'build_alias=x86_64-apple-darwin17' 'host_alias=x86_64-apple-darwin17' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-g' 'LDFLAGS=' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-g' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-g'
[00007f9f73c1bba0] main libvlc debug: searching plug-in modules
[00007f9f73c1bba0] main libvlc debug: loading plugins cache file /Applications/VLC.app/Contents/MacOS/plugins/plugins.dat
[00007f9f73c1bba0] main libvlc debug: recursively browsing `/Applications/VLC.app/Contents/MacOS/plugins'
[00007f9f73c1bba0] main libvlc debug: plug-ins loaded: 469 modules
[00007f9f73c1bba0] main libvlc debug: opening config file (/Users/protoolsx99/Library/Preferences/org.videolan.vlc/vlcrc)
[00007f9f73c1be80] main logger debug: looking for logger module matching "any": 3 candidates
[00007f9f73c1be80] main logger debug: using logger module "console"
[00007f9f73c1bba0] main libvlc debug: translation test: code is "C"
[00007f9f73d0fe00] main keystore debug: looking for keystore module matching "memory": 3 candidates
[00007f9f73d0fe00] main keystore debug: using keystore module "memory"
[00007f9f73c1bba0] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU
[00007f9f73c1bba0] main libvlc warning: Key "Command+0" bound to multiple actions
[00007f9f76800af0] main input debug: Creating an input for 'Media Library'
[00007f9f76800af0] main input debug: Input is a meta file: disabling unneeded options
[00007f9f76800af0] main input debug: using timeshift granularity of 50 MiB
[00007f9f76800af0] main input debug: using default timeshift path
[00007f9f76800af0] main input debug: `file/directory:///Users/protoolsx99/Library/Application%20Support/org.videolan.vlc/ml.xspf' gives access `file' demux `directory' path `/Users/protoolsx99/Library/Application%20Support/org.videolan.vlc/ml.xspf'
[00007f9f73d19af0] main input source debug: creating demux: access='file' demux='directory' location='/Users/protoolsx99/Library/Application%20Support/org.videolan.vlc/ml.xspf' file='/Users/protoolsx99/Library/Application Support/org.videolan.vlc/ml.xspf'
[00007f9f73d19cc0] main demux debug: looking for access_demux module matching "file": 14 candidates
[00007f9f73d19cc0] main demux debug: no access_demux modules matched
[00007f9f73d1a230] main stream debug: creating access: file:///Users/protoolsx99/Library/Application%20Support/org.videolan.vlc/ml.xspf
[00007f9f73d1a230] main stream debug: (path: /Users/protoolsx99/Library/Application Support/org.videolan.vlc/ml.xspf)
[00007f9f73d1a230] main stream debug: looking for access module matching "file": 23 candidates
[00007f9f73d1a230] main stream debug: using access module "filesystem"
[00007f9f73e04d60] main stream debug: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
[00007f9f73e04d60] cache_read stream debug: Using stream method for AStream*
[00007f9f73e04d60] cache_read stream debug: starting pre-buffering
[00007f9f73e04d60] cache_read stream debug: received first data after 0 ms
[00007f9f73e04d60] cache_read stream debug: pre-buffering done 296 bytes in 0s - 1795 KiB/s