mp3

Convert * (mp3, m4p, and the likes) to OGG via Command Line for HTML5 compatibility

喜你入骨 提交于 2019-12-08 01:34:16
问题 What options do I have for converting MP3's to OGG on the fly using PHP? I assume the only way to do this is via the command line with an execute statement. Is this true? If so, what converters (and associated commands) would I be best off using? I have tried: oggenc2.exe but was told by the program that the MP3 I passed was not a valid filetype ffmpeg.exe but was unable to figure out how to go from mp3 to ogg (found how to go from ogg to mp3 though) Convert mp3 to ogg via php 回答1: You didn't

How to add JFXPanel to already existing swing app

谁都会走 提交于 2019-12-08 00:42:39
问题 I am very stuck in knowing what to do to integrate my JFXPanel (which is an mp3 player) into an existing Swing app that - which is a JFrame with several different JPanels added to it. I am a complete noob to JavaFX and it is very different from swing. I am able to get the code that is below to run and do what I want. It will play mp3 files from a directory that I have them contained in. This is code from a sample that someone wrote. My issue is that this code creates the the JFrame, has the

Is it possible to read music file metadata using R?

半腔热情 提交于 2019-12-07 22:53:30
问题 I've got a bunch of audio files (let's say ogg or mp3), with metadata. I wish to read their metadata into R so to create a data.frame with: file name file location file artist file album etc Any way you know of for doing that ? 回答1: You take an existing mp3 or ogg client, look at what library it uses and then write a binding for said library to R, using the existing client as guide for that side -- and something like Rcpp as a guide on the other side to show you how to connect C/C++ libraries

Java library for extracting audio information from MP3 files

馋奶兔 提交于 2019-12-07 21:46:45
问题 Is there any freely available library (other than java media framework) that I can use to extract the bit rate (eg. 128 kbps, VBR) and the audio quality (eg 44.1KHz, Stereo) from a MP3 file? I would like a standalone library that I can incorporate into my application jar, to be deployed on older Macs too that have only Java 1.5 available and I can't get them upgraded or add any big Java library to. Just to clarify: I will not play, transcode or do anything of the sort with the audio stream

Running lame from php

左心房为你撑大大i 提交于 2019-12-07 19:29:59
问题 I am trying to run lame from a php script. I have tried these, but no luck, I don't get anything returned! Any ideas? system('lame', $returnarr); system('lame --help', $returnarr); exec('lame', $returnarr); passthru('lame', $returnarr); even this one returns nothing: exec('which lame', $returnarr); I am on OSX and final deployment will be on Linux. Do you have better suggestions for an automated wav->mp3 conversion? From php, should I execute a bash script that executes Lame? 回答1: Try

Phonegap Media record mp3 file corrupt

折月煮酒 提交于 2019-12-07 19:14:25
I am using phonegap media to record audio as mp3. After recording, it plays fine on my Android and plays fine on Windows Media Player. However, when I try it in the browser it says that the file is corrupt. Exact errors: Chrome: "We cannot play this audio file right now." Firefox: "Video can't be played because the file is corrupt." IE: Opens the file in WMP and it plays. I used the code from the example. http://docs.phonegap.com/en/2.6.0/cordova_media_media.md.html#media.startRecord // Record audio // function recordAudio() { var src = "myrecording.mp3"; var mediaRec = new Media(src, //

convert audio,mp3 file to string and vice versa

微笑、不失礼 提交于 2019-12-07 18:41:33
问题 Is it possible to convert an audio mp3 file to a string file, or read the mp3 file and write in a text file and vice versa? If possible then how? Also, would the text file size be greater or equal to the original mp3 or audio file? 回答1: An mp3 file like, all files is simply binary encoded data which can be interpreted differently depending on what you use to view that data. If you're asking if you can convert an audio file to a string then that is an incorrect question as binary data is only

Android decode mp3 with MediaCodec. not use MediaExtractor

社会主义新天地 提交于 2019-12-07 18:23:19
问题 I want to decode the mp3 using the MediaCodec. However, I do not want to use the MediaExtractor. Because it is because I want to get the meta data from mp3. icy (Shoutcast) stream are also taken into consideration. I tried writing the code to decode the mp3 files from FileInputStream by improving the sample of MediaExtractor. However decode caused the error is not possible. package com.test; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioManager;

MP3 byte array - convert to WAV and navigate to time index?

怎甘沉沦 提交于 2019-12-07 17:33:40
问题 I have a byte array containing an MP3 stream. Is it correct to assume that this stream would have to be further decoded if I want to be able convert to a WAV? In its current byte state, is it possible to do basic functionality such as get/set position (time-wise)? 回答1: Yeah, MP3 files are very different from WAV files. WAV files contain raw audio data in the form of samples from beginning to end to paint the waveform of the output, the same way a bitmap file contains raw data about pixels

How can I make URLs to music files play in VLC on iOS?

老子叫甜甜 提交于 2019-12-07 16:49:52
问题 I have MP3s and other file formats that I want to provide through my website to iPhone and iPad users. VLC's iOS app seems to fit the bill, but they say Additionally, third party websites and apps may include links to open streams directly in VLC for iOS. Here is the official documentation provided How can I do that? I can't seem to find any documentation about it. I'm considering making a custom app just to accomplish it, but that seems silly. 回答1: Starting from VLC 2.0.2 you can use a link