标签: audio

ffmpeg,libav和avconv之间有什么区别和相似之处?

当我ffmpeg在Ubuntu上运行时,它显示:

$ ffmpeg 
ffmpeg version v0.8, Copyright (c) 2000-2011 the Libav developers
  built on Feb 28 2012 13:27:36 with gcc 4.6.1
This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).
Run Code Online (Sandbox Code Playgroud)

或者它显示(取决于Ubuntu版本):

$ ffmpeg
ffmpeg version 0.8.5-6:0.8.5-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the Libav developers
  built on Jan 24 2013 14:49:20 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility …
Run Code Online (Sandbox Code Playgroud)

audio ubuntu ffmpeg libavcodec libav

243
推荐指数
1
解决办法
14万
查看次数

如何让JavaScript发出哔哔声?

当用户超出我的最大字符数限制时,我希望我的网页发出蜂鸣声<textarea>.

javascript browser audio beep

221
推荐指数
10
解决办法
20万
查看次数

我怎样才能用Java播放声音?

我希望能够在我的程序中播放声音文件.我应该在哪里看?

java audio

167
推荐指数
5
解决办法
31万
查看次数

如何播放Android通知声音

我想知道如何在不播放媒体流的情况下播放通知声音.现在我可以通过媒体播放器这样做,但我不希望它作为媒体文件播放,我希望它作为通知或警报或铃声播放.下面是我的代码现在看起来像一个例子:

MediaPlayer mp = new MediaPlayer();
mp.reset();
mp.setDataSource(notificationsPath+ (String) apptSounds.getSelectedItem());
mp.prepare();
mp.start();
Run Code Online (Sandbox Code Playgroud)

audio notifications android

159
推荐指数
5
解决办法
21万
查看次数

如何使用AVAudioRecorder在iPhone上录制音频?

既然iPhone 3.0 sdk是公开的,我想我可以向那些已经玩过3.0 sdk的人提出这个问题.我想在我的应用程序中录制音频,但我想使用AVAudioRecorder而不是像SpeakHere演示的示例那样的旧录音方式.没有任何关于如何在iPhone开发人员中心做到最好的例子,只引用这些类.我是iPhone开发的新手,所以我正在寻找一个简单的示例来帮助我入门.提前致谢.

iphone audio objective-c recording ios

146
推荐指数
6
解决办法
15万
查看次数

使用ffmpeg将音频文件转换为mp3

我需要使用ffmpeg将音频文件转换为mp3.

当我写命令时ffmpeg -i audio.ogg -acodec mp3 newfile.mp3,我收到错误:

FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: 
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Jun 24 2010 14:56:20, gcc: 4.4.1
Input #0, mp3, from 'ZHRE.mp3':
  Duration: 00:04:12.52, start: 0.000000, bitrate: 208 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 256 kb/s
Output #0, mp3, to …
Run Code Online (Sandbox Code Playgroud)

media audio ffmpeg

126
推荐指数
9
解决办法
16万
查看次数

如何使用ffmpeg将新音频(不混音)添加到视频中?

我使用了如下命令:

ffmpeg -i video.avi -i audio.mp3 -vcodec codec -acodec codec output_video.avi -newaudio
Run Code Online (Sandbox Code Playgroud)

在最新版本中添加新的音频轨道到视频(不混合).

但我将ffmpeg更新为最新版本(ffmpeg版本git-2012-06-16-809d71d),现在在此版本中该参数-newaudio不起作用.

请告诉我如何使用我的视频(而不是混音)添加新音频ffmpeg.

audio video ffmpeg

123
推荐指数
5
解决办法
13万
查看次数

代码完成时发出声音警报

我的情况是我的代码需要很长时间才能运行,我不想一直盯着它,但想知道什么时候完成.

如何完成(Python)代码声音的"警报"?我正在考虑让它在到达代码末尾时播放.wav文件...

这甚至是一个可行的想法吗?如果是的话,我怎么能这样做?

python audio alarm

122
推荐指数
9
解决办法
9万
查看次数

这个gdb输出是什么意思?

我有一个播放声音的按钮,它似乎在模拟器上工作得很好,但我收到这条消息:

Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn:  dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.605 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn:  dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.657 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:  dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in /System/Library/Frameworks/Security.framework/Versions/A/Security
2011-11-01 02:13:02.671 Halloween FX[33484:10703] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:  dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
 in …

audio objective-c playback ios ios-simulator

120
推荐指数
2
解决办法
2万
查看次数

播放资源目录中的音频文件

我有以下代码:

AssetFileDescriptor afd = getAssets().openFd("AudioFile.mp3");
player = new MediaPlayer();
player.setDataSource(afd.getFileDescriptor());
player.prepare();
player.start();
Run Code Online (Sandbox Code Playgroud)

问题是,当我运行这段代码时,它会按字母顺序开始播放资源目录中的所有音频文件,而不是只播放我请求的音频文件.我究竟做错了什么?有没有更好的方法从资源目录播放音频文件?

后续问题:将音频文件保存在资源目录中并将它们保存在res/raw目录中是否有区别?除了他们没有获得ID,如果他们在资产目录中的事实.如果我将音频文件移动到res/raw文件夹,那么我有一个重用MediaPlayers 的问题,因为没有id参数setDataSource().我找不到处理这类问题的好指南.

audio android assets android-assets android-mediaplayer

118
推荐指数
4
解决办法
10万
查看次数