AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1147314

NotABot's questions

Martin Hope
NotABot
Asked: 2021-03-11 03:34:15 +0800 CST

如何将来自 pulseaudio 接收器的音频流(原始格式/字节)流式传输到本地 UDP 服务器?

  • 0

我使用以下链接中的技巧并能够将音频录制到文件 中使用 PulseAudio 录制程序的输出

我一直在调整命令并尝试将字节流式传输到 UDP 服务器。这是我到目前为止所得到的,但它不起作用

parec -d sink_name.monitor | ffmpeg -re -ac 1 -f s16le -ar 16000  -i - - | ffmpeg -re -i - -f mpegts udp://localhost:20001
  1. 第一个命令提供音频流
  2. 此命令部分用于将流存储在 .mp3 文件中,请参阅ffmpeg -ac 1 -f s16le -ar 44100 -i - test.mp3
  3. 这应该将流重定向到 UDP - 从ffmpeg -ac 1 -f s16le -ar 44100 -i - test.mp3

我可以在这里使用一些帮助。提前致谢!

20.04
  • 1 个回答
  • 596 Views
Martin Hope
NotABot
Asked: 2020-11-13 02:01:13 +0800 CST

无法在 Ubuntu 20.04 中打开 Visual Studio 代码

  • 2

我尝试通过 snap 和 apt 安装 Visual Studio 代码,在这两种情况下它都不起作用。击中后请参阅下面的跟踪code --verbose。

其他观察 -

  1. 它适用于sudo code --user-data-dir它只是不正常。
  2. 从应用程序-> 启动器图标尝试时,会出现空白窗口。
  3. 似乎不是--disable-gpu很多人面临的问题
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Failed to get 'appData' path
    at App.l._setDefaultAppPaths (electron/js2c/browser_init.js:17:1420)
    at Object.<anonymous> (electron/js2c/browser_init.js:217:2440)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:217:3716)
    at __webpack_require__ (electron/js2c/browser_init.js:1:128)
    at electron/js2c/browser_init.js:1:1200
    at electron/js2c/browser_init.js:1:1267
    at NativeModule.compile (internal/bootstrap/loaders.js:287:5)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:222:8)
    at loadNativeModule (internal/modules/cjs/helpers.js:23:9)
    at Module._load (internal/modules/cjs/loader.js:745:15)
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
[15861:1112/150521.850343:ERROR:gl_surface_glx.cc(90)] glXGetFBConfigs failed.
[15861:1112/150521.850568:ERROR:gl_surface_glx.cc(130)] Failed to get GLXConfig
[15861:1112/150521.850684:ERROR:gl_surface_glx.cc(479)] CreateDummyWindow(gfx::GetXDisplay()) failed
[15861:1112/150521.850761:ERROR:gl_initializer_x11.cc(148)] GLSurfaceGLX::InitializeOneOff failed.
[15861:1112/150521.854457:WARNING:x11_util.cc(1520)] X error received: serial 218, error_code 8 (BadMatch (invalid parameter attributes)), request_code 78, minor_code 0 (X_CreateColormap)
[15861:1112/150521.854938:ERROR:viz_main_impl.cc(152)] Exiting GPU process due to errors during initialization

我尝试了很多东西,但没有成功。 帮助!

的输出apt-cache policy gvfs:*; readelf -s /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so | grep g_date_time ; snap info --verbose code

gvfs:
  Installed: 1.44.1-1ubuntu1
  Candidate: 1.44.1-1ubuntu1
  Version table:
 *** 1.44.1-1ubuntu1 500
        500 http://in.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
gvfs:i386:
  Installed: (none)
  Candidate: 1.44.1-1ubuntu1
  Version table:
     1.44.1-1ubuntu1 500
        500 http://in.archive.ubuntu.com/ubuntu focal/main i386 Packages
     6: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND g_date_time_unref
   265: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND g_date_time_new_now_local
   463: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND g_date_time_format_iso860
name:    code
summary: Code editing. Redefined.
health:
  status:  unknown
  message: health has not been set
publisher: Visual Studio Code (vscode✓)
store-url: https://snapcraft.io/code
contact:   https://twitter.com/code
license:   unset
description: |
  Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and
  is available for Linux, macOS and Windows. It comes with built-in support for JavaScript,
  TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++,
  C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
  
  By downloading and using Visual Studio Code, you agree to the license terms
  (https://code.visualstudio.com/License/) and privacy statement
  (https://privacy.microsoft.com/en-us/privacystatement). Visual Studio Code automatically sends
  telemetry data and crash dumps to help us improve the product. If you would prefer not to have
  this data sent please go see
  https://code.visualstudio.com/docs/supporting/FAQ#_how-to-disable-crash-reporting to learn how to
  disable it.
  
  VSCode
  https://github.com/Microsoft/vscode
commands:
  - code
  - code.url-handler
notes:               
  private:           false
  confinement:       classic
  devmode:           false
  jailmode:          false
  trymode:           false
  enabled:           true
  broken:            false
  ignore-validation: false
snap-id:      Ht0aUHi7ofh9Fbwh6m7jUN2pAy6kzBiu
tracking:     latest/stable
refresh-date: today at 15:04 IST
channels:
  latest/stable:    e5a624b7 2020-11-11 (50) 153MB classic
  latest/candidate: ↑                              
  latest/beta:      ↑                              
  latest/edge:      ↑                              
installed:          e5a624b7            (50) 153MB classic

visual-studio-code 20.04
  • 1 个回答
  • 4406 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve