mp3

Download a .mp3 link and save it to computer with PHP

时光毁灭记忆、已成空白 提交于 2019-12-06 12:15:00
问题 I've got lots of direct .mp3 links in a .txt file that I'd like to save on my computer (like this: http://mylink.mp3 ), and I was wondering how I could do this with PHP ? Should I use file_get_contents ? (Sorry if my questions was already answered here, I searched but it didn't help me) Thank you :). 回答1: $file = 'http://somewebsite.com/thesong.mp3'; header("Content-type: application/x-file-to-save"); header("Content-Disposition: attachment; filename=".basename($file)); readfile($file); You

Convert mp3 to ogg via php

廉价感情. 提交于 2019-12-06 12:02:50
I have a website where users can upload music and get it converted to mp3, but I need mp3 and ogg file support to play the music in html5. So, is there any php script that can convert mp3 to ogg? azat Use ffmpeg. You can execute commands directly from your php script. 来源: https://stackoverflow.com/questions/5105134/convert-mp3-to-ogg-via-php

Is it possible to read music file metadata using R?

随声附和 提交于 2019-12-06 11:54:42
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 ? 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 to R. No magic bullet. A cheaper and less reliable way is to use a cmdline tool that does what you want and

asp.net create waveform image from mp3

守給你的承諾、 提交于 2019-12-06 11:54:36
问题 I am looking for a way to create a graphical waveform of mp3 files uploaded to a server. From a little research i beleive the mp3 would need converting to a raw format first...but i have no idea on how to create a .gif format of the waveform for this sound file. 90% of the sound files would be over 60 minutes in length. I understand this wouldn't be able to done right after it is uploaded, it would need to be placed into a queue and processed. I have looked at several libaries such as lame,

Using Web Audio API decodeAudioData with external binary data

半城伤御伤魂 提交于 2019-12-06 11:49:04
I've searched related questions but wasn't able to find any relevant info. I'm trying to get the Web Audio API to play an mp3 file which is encoded in another file container, so what I'm doing so far is parsing said container, and feeding the result binary data (arraybuffer) to the audioContext.decodeAudioData method, which supposedly accepts any kind of arraybuffer containing audio data. However, it always throws the error callback. I only have a faint grasp of what I'm doing so probably the whole approach is wrong. Or maybe it's just not possible. Has any of you tried something like this

concatenating mp3 files or joining mp3 files using java [closed]

社会主义新天地 提交于 2019-12-06 11:21:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . We would like to concatenate/merge/join mp3 files seamlessly using "java" in any environment. We are trying the following options at the moment ( please let us know any other options): Using JMF -- ruled out as it supported only in windows http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs

Protect audio files in HTML5 audio tags

只愿长相守 提交于 2019-12-06 11:06:05
问题 I am making a site which will have music playing on the site using HTML5 tags and was wondering if there was any way to protect the files from being downloaded? I am calling the music file through PHP and if needed it selects an OGG file for browsers that don't support MP3. The actual files are inaccessible to the public but the PHP file can be downloaded and played. I was wondering if there was anything I could do which would stop people downloading the file but allow it to be played through

pydub音频处理库的使用

和自甴很熟 提交于 2019-12-06 10:53:21
pydub音频处理库的使用 在使用pydub这个模块之前应确保你的libav或者FFmpeg Mac上安装libav或FFmpeg brew install libav --with-libvorbis --with-sdl --with-theora # 安装libav brew install ffmpeg --with-libvorbis --with-sdl2 --with-theora # 安装ffmpeg Linux(使用apt 安装) apt-get install libav-tools libavcodec-extra # libav apt-get install ffmpeg libavcodec-extra # ffmpeg Windows libav下载地址 ffmpeg下载地址 然后要添加环境变量 模块的使用 安装模块 pip install pydub 打开文件    from pydub import AudioSegment wav_file = AudioSegment.for_wav("filepath") # 读取wav文件 mp3_file = AudioSegment.for_mp3("filepath") # 读取mp3文件 ogg_file = AudioSegment.for_ogg("filepath") # 读取ogg文件

Looking for Wii compatible Javascript Flash mp3 player

时间秒杀一切 提交于 2019-12-06 10:49:22
I am looking for a flash mp3 player that will work within the Opera-based browser on the Wii. The player needs to be javascript enabled (support methods like play, stop etc.) The mp3 tracklist will be built dynamically using ajax on the same page as the player so it must trigger an event when a track finishes playing (or at least provide functionality of some kind to indicate that it's time to start the next track). Does anyone know of such a player? I have looked at these players: jPlayer : Does not work on the Wii. flash mp3 player : All versions of this player work on the Wii except the js

Looking for a simple MP3 library for C# [closed]

匆匆过客 提交于 2019-12-06 10:11:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm writing a larger project and a part of the project is playing MP3 files. Nothing fancy, just playing files from a playlist, start/stop, next/previous (can be done outside the library), fast forward/rewind. I'm looking for a (free) library, or any other method of doing that. Relying on an external player is