mp3

Read mp3 tags in android application

旧巷老猫 提交于 2019-12-24 13:25:28
问题 I use jid3lib for java. When i'm working with this library on file that stored in my computer it works great, but when I try to read mp3 tags of files on the emulator's sdcard I got Exeption. I use the following code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); File musicPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC); File[] songs = musicPath.listFiles(); for (int i=0; i <

Hide audio url in PHP

浪子不回头ぞ 提交于 2019-12-24 11:31:23
问题 I am playing audio in mp3 format but I want to hide the mp3 url. I'm using PHP and I try this code but his is not working. HTML <audio controls> <source src="mp3.php?id=1" type="audio/mpeg"> Your browser does not support the audio element. </audio> PHP <?php $id = $_GET['id']; if($id == 1){ echo '/path/to/audio.mp3'; } ?> What is wrong with this code any suggestion. How can I do that. Thanks... 回答1: Not tried, but this might work: $filename = '/path/to/audio.mp3'; if(is_file($filename)) {

Slow MP3 decoding on Android using jlayer

你说的曾经没有我的故事 提交于 2019-12-24 10:56:40
问题 It require 1 minute to decode 10 seconds, how can I decode the MP3 faster? public static byte[] decode(String path, int startMs, int maxMs) throws FileNotFoundException { float totalMs = 0; ByteArrayOutputStream os = new ByteArrayOutputStream(); File file = new File(path); InputStream inputStream = new BufferedInputStream(new FileInputStream(file), 8 * 1024); try { Bitstream bitstream = new Bitstream(inputStream); Decoder decoder = new Decoder(); boolean done = false; while (! done) { Header

Installing libmp3lame to work with FFMPEG on raspberry pi

痞子三分冷 提交于 2019-12-24 09:48:27
问题 I am using the moviepy module with python 3.2 on my RPi 2. It uses FFMPEG to read and write the video, so I installed FFMPEG using these instructions to the letter. Now when I run the program, it says that my video export failed because FFMPEG didn't find the libmp3lame codec that it needs. How do I got about installing the libmp3lame codec onto my RPi 2 (running Raspian Wheezy)? I think I have to reinstall FFMPEG to install the codec.. how do I do that correctly? 回答1: First, install lame mp3

Playing embedded resource mp3 file

橙三吉。 提交于 2019-12-24 08:14:42
问题 I'm trying to play a mp3 file, which is embedded in my c# application (winforms) but with no result. I don't want to create a file from the resource and play it. I've searched the internet but haven't found any working examples. All of them are creating a file from the resource and save it, then pass the file path to mci or wmp. Is it possible to pass a stream? public partial class Form1 : Form { [DllImport("winmm.dll")] private static extern long mciSendString(string lpstrCommand,

How do I /actually/ link mp3 into html?

霸气de小男生 提交于 2019-12-24 07:59:00
问题 I've just started learning how to use this; unsure on how linking audio files into the script works. All I'm trying to do is have a small audio player. <audio controls width="100" height="100"> <source src="somethin.mp3" type="audio/mp3"> <!-- Fallback for older browsers --> Your browser doesn't support html5 audio </audio> 回答1: It all depends on the file location. For your script above you would put your somethin.mp3 in the same location as you html file. If you want to put it in a sub

Universal MP3 and WMA tag reader for Delphi

瘦欲@ 提交于 2019-12-24 03:43:51
问题 I know similar subjects have appeared in SO, but there wasn’t answer I am looking for. I need a Delphi library for reading tag information from music files. Currently I am using TJvID3v1 from JEDI library, but as far as I see, JEDI does not work with WMA files. I have found some manuals on how to implement such tag reading, but most of them go quite low level (reading file byte-by-byte and analyzing). So, do you know of any Delphi library capable of reading that information? Support of OGG

Universal MP3 and WMA tag reader for Delphi

浪尽此生 提交于 2019-12-24 03:43:11
问题 I know similar subjects have appeared in SO, but there wasn’t answer I am looking for. I need a Delphi library for reading tag information from music files. Currently I am using TJvID3v1 from JEDI library, but as far as I see, JEDI does not work with WMA files. I have found some manuals on how to implement such tag reading, but most of them go quite low level (reading file byte-by-byte and analyzing). So, do you know of any Delphi library capable of reading that information? Support of OGG

Php MP3 Tag Processing

 ̄綄美尐妖づ 提交于 2019-12-24 03:32:10
问题 I have a php script that I want to provide a list of music from. The files are named 01.mp3 02.mp3 and 03.mp3 and so on. They all have tag info. My question is how do I access that in my php script. 回答1: You need a script to parse the mp3 file to acces to the data. From google: http://getid3.sourceforge.net http://www.codediesel.com/pear/reading-mp3-file-tags-in-php/ ... 来源: https://stackoverflow.com/questions/7536713/php-mp3-tag-processing

Java: Fade out music

被刻印的时光 ゝ 提交于 2019-12-24 02:06:31
问题 I'm making a game. Now if my player goes to another level the music is still playing. Now I want to let the music fade out to let start the new music of the next level. I use mp3 to play. With the packages: jl1.0, mp3spi1.9.4, tritonus_share-0.3.6. Oh yeah. Volume is not supported in the FloatControll class. 回答1: I suppose you're trying to get Volume control instead of MasterGain . Try this: if (line.isControlSupported(FloatControl.Type.MASTER_GAIN)) { masterGain = (FloatControl) line