mp3

Concatenating MP3 files

强颜欢笑 提交于 2019-12-12 04:09:04
问题 Seeing as how MP3 frames are (mostly) independent units, I thought it would work well to simply concatenate several tagless MP3 files together in order to merge them losslessly. However, as it seems, many player programs (including mplayer and mpd ) seem to be detecting the file length in some way that I cannot find documentation for, and only see and play the part corresponding to the first of the files I concatenated. Whatever this information is, I'm sure it can't be too hard to write a

How to convert from wma to mp3 using NAudio

感情迁移 提交于 2019-12-12 03:35:05
问题 Please note This is NOT a duplicate of the other question linked. That uses classes I couldn't find, as detailed in my question below. I'm trying to convert wma files to mp3. I need a solution that I can integrate into my code base, not rely on an external resource, so using ffmpeg isn't an option. I've been trying NAudio, but without any success. One problem is that there seem to be two versions of NAudio around, and neither seems complete. The one you get from Nuget doesn't include the

how to correct the misencoded string?

六眼飞鱼酱① 提交于 2019-12-12 03:02:14
问题 i used mutagen to read the mp3 metadata, since the id3 tag is read in as unicode but in fact it is GBK encoded. how to correct this in python? audio = EasyID3(name) title = audio["title"][0] print title print repr(title) produces µ±Äã¹Âµ¥Äã»áÏëÆðË­ u'\xb5\xb1\xc4\xe3\xb9\xc2\xb5\xa5\xc4\xe3\xbb\xe1\xcf\xeb\xc6\xf0\xcb\xad' but in fact it should be in GBK (chinese). 当你孤单你会想起谁 回答1: It looks like the string has been decoded to unicode using the wrong encoding (latin-1). You need to encode it to

how to divide an audio file (mp3 or wav) into smaller ones at silent segments

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:39:32
问题 I have mp3 and wav audio files. I want to divide them into smaller files programmatically. Is there any easy-to-use Java library I can use to process the audio file, seek the silent segments, and divide the file somewhere in a silent segment? 回答1: This page: http://www.labbookpages.co.uk/audio/javaWavFiles.html has WavFile class you can use to read wave files (the download link to WavFile.tar.gz is in the top right corner - WavFile.tar.gz). Seeking the silent segments can be done by scanning

Embed an MP3 music file onto an image

五迷三道 提交于 2019-12-12 02:27:11
问题 Good afternoon, I have am image and I want to embed the MP3 file associated with the image into/onto the image, instead of having the MP3 under the image. Is this at all possible. Kind regards Gary <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Untitled Document</title> </head> <body> <img src="Logoghp.jpg" width="224" height="134" alt=""/><br> <audio controls> <embed src="Soul Train Easter 2016 Mke Vitti One Hour Mix Show.mp3" width="32" height="32"></embed> </audio> </body> <

Pyglet won't quit after playing mp3

守給你的承諾、 提交于 2019-12-12 02:12:01
问题 I was looking for a solution to play mp3 files in python and many stackoverflow answers (to other questions) seemed to recommend pyglet. I am writing a program that takes a piece of text, breaks it into individual words and then downloads mp3s of those words (if they aren't already downloaded) using gTTs and plays them. from pyglet import media, app, clock from gtts import gTTS import os import time from num2words import num2words cwd = os.getcwd() beep = media.load('beep.mp3', streaming =

Prevent Mp3 file to play in another Media player

倾然丶 夕夏残阳落幕 提交于 2019-12-12 01:34:03
问题 I am developing media player and my application download mp3 file from server . So i want to prevent it from another media player to play it. Case User get file from server (music file1.mp3) in android phone ! User play it in our player but can't share it or download it in computer or play in another media player. I try Below I can encrypt a file and decrypt it again in my app (will take long time, it's a mobile cpu!), but then my application needs to have the decryption key inside. Basically

How do i convert wav file to mp3 file if i have url of file using php?

佐手、 提交于 2019-12-12 01:29:33
问题 I have a url of the wav file http://xyz.com/recordings/employees/test.wav What i want to know is how can i change this file into mp3 format and store it in a particular location using php script because this file is located in some other server? I know about ffmpeg but not sure whether it will work or not. 回答1: I hope you have linux: exec('wget http://xyz.com/recordings/employees/test.wav'); exec('ffmpeg -i test.wav test.mp3'); exec('mv test.mp3 /youlocation/test.mp3'); 回答2: Thats usually no

Howler.js doesn't recognize src path to audio file

一个人想着一个人 提交于 2019-12-12 01:25:59
问题 After successfully playing an audio file with the HTML5 built-in audio tag, I'm trying to switch to use howler.js instead. I've verified that howler.js is properly installed and that the method which creates/plays my song is being called with a console.log, but I'm confused as to why the path isn't recognized here: new Howl({src: ['../music/lofi.mp3']}) while the same path works just fine here: <audio autoplay> <source src="../music/lofi.mp3" type="audio/mpeg" id="track"/> </audio> export

Which format support the audio file with a playing video?

好久不见. 提交于 2019-12-12 01:17:54
问题 i am playing the video and in the background i have to play the audio file and if i do this audio is not playing its sound as it just play video is it a extension problem i am using the .mp3 for the audio and .mp4 for the video . how can we do this we have to play simultanisouly .both the file balraj verma 回答1: Have a look at this: http://developer.apple.com/iphone/library/documentation/MusicAudio/Conceptual/CoreAudioOverview/CoreAudioEssentials/CoreAudioEssentials.html#//apple_ref/doc/uid