在Fedora 23下1h 33m后停止录制 [英] Recording with arecord stops after 1h 33m Under Fedora 23

查看:97
本文介绍了在Fedora 23下1h 33m后停止录制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此命令在Linux Fedora 23中录制音频

I'm using this command to record audio in Linux Fedora 23

/usr/bin/arecord -d 11400 -D hw:1,0 -f S32_LE -c2 -r48000 -t wav | lame -b 192 - longrec.mp3 >> output.txt 2>&1 & echo $!

基本上,我希望从输入声卡获得3小时10分钟(11400秒)的mp3记录.启动时一切正常,但始终会在1h33m12s后停止.文件output.txt没有显示任何有趣的内容:

Basically I want an mp3 record of 3 hours and 10 minutes (11400 seconds) from the input soundcard. Everything works fine when started, but it always stops after 1h33m12s. File output.txt shows nothing of any interest:

LAME 3.99.5 64bits (http://lame.sf.net)
Using polyphase lowpass filter, transition band: 18774 Hz - 19355 Hz
Encoding <stdin> to longrec.mp3
Encoding as 48 kHz j-stereo MPEG-1 Layer III (8x) 192 kbps qval=3

有什么问题的线索吗?

推荐答案

[已解决]而不是使用 arecord ,我已切换到ffmpeg,命令:

[SOLVED] instead of using arecord I have switched to ffmpeg, command:

ffmpeg -f pulse -i alsa_input.usb-Focusrite_Scarlett_Solo_USB-00.analog-stereo -t 11400 -c:a libmp3lame -b:a 192k longrec.mp3

具有与 arecord 相同的效果,并且也不会阻止声卡资源(我可以从同一来源运行多个ffmpeg记录实例,而记录我只能做一个).

Has the same effect as arecord one and it also doesn't block sound-card resource (I can run multiple ffmpeg record instance from the same source, while with arecord I can do only one).

这篇关于在Fedora 23下1h 33m后停止录制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆