Как записать звук во время его воспроизведения? [дубликат]

Можно ли записывать воспроизводимый звук на ноутбуке с Ubuntu 16.04? Я имею в виду часть аудио из видеофайла или проигрываемую музыку.

Как указано в комментариях:

Вывод arecord -l

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: 92HD87B1/3 Analog [92HD87B1/3 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Я пробовал

ffmpeg -f alsa -i hw:0 -t 360 na_re_full.wav

Вывод был просто пустым файлом (выбранной длины) с некоторым случайным шумом. Ничего не было записано из потоковой передачи музыки: (

$ arecord -L
default
    Playback/recording through the PulseAudio sound server
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=PCH
    HDA Intel PCH, 92HD87B1/3 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    Hardware device with all software conversions
1
задан 10 December 2017 в 21:09

1 ответ

  1. Использовать Audacity

  2. Удалите все подключенные наушники / микрофон

  3. Используйте источник записи как default ( если не работает, попробуйте метод проб и ошибок)

  4. Нажмите кнопку «Запись» (темно-бордовая точка)

  5. Вы можете увидеть список GUI вариации при записи звука

  6. Запуск и остановка в нужных точках

  7. Сохранить как Audacity проект

  8. Удалить ненужную часть аудио

  9. Использовать Файл> Сохранить другое> Экспортировать как mp3 в нужное место

enter image description here

3
ответ дан 10 December 2017 в 21:09

Другие вопросы по тегам:

Похожие вопросы: