mp3

Streaming audio/radio in Java?

那年仲夏 提交于 2019-12-07 15:11:40
问题 I've been looking around the entire web, and tried a bunch of different stuff, but I can't figure out how to play streaming audio in java - which is crucial for the application Iam developing now. It's a radio. I've already written it for the web, but I want a desktop version, and I though java might be the way to go. Streams look like this (mostly MP3s): http://lyd.nrk.no/nrk_radio_mp3_mp3_h (example from NRK MP3 - a radio channel in Norway). So where should I go from here? I've tried both

微信JS SDK录音功能的使用

大城市里の小女人 提交于 2019-12-07 13:32:02
根据公众号JS-SDK的官网文档( 链接 ),可以比较方便的集成录音和播放功能。但录音保存的文件至多在他们服务器上保存3天,所有如果要长期保存,得下载到自己的服务器上( 下载的方法 ),但下载的格式是AMR的,在手机和网站上都不能直接使用,而且微信的API下载多媒体文件接口也没法指定我要下载的类型是MP3还是AMR(我已经向他们反馈此问题,不过让他们提供转换可能机会不大),目前经测试音频在手机上要兼容的好还只有MP3这种格式了。MP3经测试在safari和微信里都可以正常播放。 剩下的问题就是将下载的AMR格式转成MP3了。 选择的转换工具当然是ffmpeg了。 下面就是例行公事的几步了(环境centos 7)。 下载最新版本 http://ffmpeg.org/releases/ffmpeg-3.0.2.tar.bz2 下载AMR编解码器 https://sourceforge.net/projects/opencore-amr/?source=directory 下载MP3 编解码器 https://sourceforge.net/projects/lame/?source=directory 编译ffmpeg ./configure --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3

How can I make 3gp video with mp3 audio file and images?

浪子不回头ぞ 提交于 2019-12-07 11:59:01
问题 I am trying to create a 3gp video file by combining an mp3 audio clip and an image for my android application. That is: mp3 + image = 3gp video clip. I did so much research on this but found that help available was limited. Please let me know how to do this. 回答1: If you are looking to do that outside of your application then check out this post which gives ffmpeg command that can be used to achieve the same. Also ffmpeg can also be compiled for android and used using the JNI as discussed in

Stream data (such as music) using PHP (or another language)

烈酒焚心 提交于 2019-12-07 11:37:37
问题 For years, I've been investigating how to create music streams from my computer. I've seen programs, but anything useful I've seen is Windows only (I use a Mac). Eventually, I got interested in how streams work. Is there any way I could create my own stream, possibly using socket functions in PHP ? Is there a PHP library for this? 回答1: Take a look at Ampache. It is a Web-based Open Source Audio file manager. It is implemented with MySQL, and PHP. It allows you to view, edit, and play your

taglib : how to edit Album Artist?

混江龙づ霸主 提交于 2019-12-07 10:33:44
How to modify the "Album Artist" field of a MP3 file with the library TagLib ? Is there something similar to : f.tag()->setArtist("blabla"); ? scotchi ID3v2 doesn't actually support a field called "album artist". iTunes uses the TPE2 frame, which is supposed to be: TPE2 The 'Band/Orchestra/Accompaniment' frame is used for additional information about the performers in the recording. For a complete list of frames see http://id3.org/id3v2.3.0#Declared_ID3v2_frames . To write that with TagLib, this would do the trick: #include <mpegfile.h> #include <id3v2tag.h> #include <textidentificationframe.h

Certain MP3 files not playing in Chrome

天涯浪子 提交于 2019-12-07 09:42:43
问题 I have a site which has a collection of audio clips for voice actors to promote their skills and talents. Recently it has been brought to my attention that in Google Chrome some of the clips do not play. However you can download the .mp3 and it will play fine, or you can listen to it fine in Firefox, Safari, IE, etc. So I started Googling and found this bug which was closed a couple of years ago: https://code.google.com/p/chromium/issues/detail?id=110309 I also found this page: http://cro.ma/

Waveform Visualization in Ruby

你。 提交于 2019-12-07 08:12:37
问题 I'm about to start a project that will record and edit audio files, and I'm looking for a good library (preferably Ruby, but will consider anything other than Java or .NET) for on-the-fly visualization of waveforms. Does anybody know where I should start my search? 回答1: That's a lot of data to be streaming into a browser. Flash or Flex charts is probably the only solution that will be memory efficient. Javascript charting tends to break-down for large data sets. 回答2: When displaying an audio

CentOs 下安装 ffmpeg 以及添加 ogg 音频支持

微笑、不失礼 提交于 2019-12-07 08:03:26
简单介绍 FFmpeg 是一个 自由软件 ,可以运行音频和视频多种格式的录影、转换、流功能 [1] ,包含了libavcodec ─这是一个用于多个项目中音频和视频的解码器库,以及libavformat——一个音频与视频格式转换库。(来自维基百科) 安装前提 由于在centos下使用 yum install ffmpeg 是找不到安装包的,所以需要通过其他方法来安装:(以下摘自网络 http://aqbjzxl.iteye.com/blog/1408478 ) 一、安装ffmpeg 操作系统:centos 5.6 (一)安装编译环境 #yum install -y automake autoconf libtool gcc gcc-c++ (二)安装所需程序库的RPM包到 centos(因为centos自带的库中没有ffmpeg包,这里相当于是扩展) view plaincopy to clipboardprint? #rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm (三)安装 Install ffmpeg 等模块 yum -y install ffmpeg ffmpeg-devel 本人就是使用以上方法安装成功的。

Need Android equivalent of AudioInputStream

 ̄綄美尐妖づ 提交于 2019-12-07 06:33:24
问题 I'm trying to write an Android app that analyzes content from the user's music library. Let's assume that these are mp3 files on the SD drive, for starters. I'm able to find Java algorithms to analyze music files, but I can't find an API to read and decode the files (not play them. There's an API to play the files, and even classes for audio effects, but I don't see any way for an app to get to the decoded data from a music file. I can read from microphone. J2SE has a class AudoInputStream

Get embedded mp3 file embedded art failed

天涯浪子 提交于 2019-12-07 06:04:36
问题 I'm trying to get the album art of a MP3 file. I thought the best and cleanest way to do this is use the MediaMetadataRetriever class. But for some reason calling the getEmbeddedPicture method doesn't work. The image isn't showing, LogCat shows an error: 04-29 18:36:19.520: E/MediaMetadataRetrieverJNI(25661): getEmbeddedPicture: Call to getEmbeddedPicture failed. This is the code that doesn't seem to work: @Override protected Void doInBackground(Void... params) { // TODO Auto-generated method