mp3

How can I get the BPM property of an MP3 file in a Windows Forms App

蹲街弑〆低调 提交于 2019-12-22 04:26:27
问题 I am trying to get the BPM property from an MP3 file: I can see how to do this in a Windows Store App as per this question: How to read Beats-per-minute tag of mp3 file in windows store apps C#? but can't see how to use Windows.Storage in a Windows Forms app. (If I understand it correctly it's because Windows.Storage is specific to UWP.) How can I read this in a Forms app? Happy to use a (hopefully free) library if there is nothing native. 回答1: You can use Windows' Scriptable Shell Objects

Chrome won't play mp3 files?

元气小坏坏 提交于 2019-12-22 04:15:10
问题 There's something very weird on my server- chrome won't play mp3 files on it. for example, when chrome is pointed to an mp3 file on first server: http://tinyurl.com/czqfw5a - it won't play. When I place the same file on my second server: http://tinyurl.com/cju4yg4 - it works fine. I checked http response headers, on both servers it looks fine- mime type is set correctly. The problem happens only with chrome. ff / ie work fine. Anyone have an idea? 回答1: Short story , it's this bug: http://code

Trim an MP3 Programmatically

冷暖自知 提交于 2019-12-22 01:02:04
问题 What is the best way to trim a mp3 file programmatically. For example, say I want to get rid of the first 2 minutes or last 2 minutes or both. Is there a good way to do this from .NET? Or .NET calling out to a command line tool? 回答1: There are two approaches to trimming MP3 files: First, convert to WAV, trim off the samples you don't want, and then convert back to MP3. The disadvantage is that there will be a very slight loss of quality in the process. The advantage is that you will find

Python VLC binding- playing a playlist

拥有回忆 提交于 2019-12-21 23:15:46
问题 I was wondering if it is possible to open(play) a music playlist ( .m3u file) with the use of vlc.py ? I searched for an answer but could not find it. I managed to play a simple mp3 file, even a mp3 stream, but I dont have any luck with the playlists. Can you help me, give me some example code? I want to be able to go through tracks( Next and Previous) within my python program. Thans in advance 回答1: Here is a " very " rough mock up of some code that I wrote for something else, adapted to your

Error while playing some MP3s using JavaZOOM BasicPlayer classes

情到浓时终转凉″ 提交于 2019-12-21 21:28:02
问题 Here is the stack trace: java.io.IOException: Resetting to invalid mark at java.io.BufferedInputStream.reset(BufferedInputStream.java:433) at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:324) at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(Unknown Source) at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(Unknown Source) at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1179)

Get metadata of local mp3 file using html5 filesystem api

我的梦境 提交于 2019-12-21 20:52:32
问题 I was trying to get the title and artist (and other metadata eventually) of each mp3 file in a directory. Currently the code I have appends the div "thelist" with the file name of the mp3 file. How could I go about getting the title and artist properties/tags of the file instead of the entire file name? Here is my code: <!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Get Directory</title> <script type="text/javascript" src="jquery.min

How can I extract the album art from an MP3 ID3 tag?

纵饮孤独 提交于 2019-12-21 20:35:14
问题 I can successfully get the mp3 ID3 tags out of my mp3 app, using php. I am left with a huge BLOB. I'm sure this is pretty straightforward, but I just need a little help in the right direction. What I'd like to end up with is (BLOB DATA CORRECTED): $media_year = implode($ThisFileInfo['comments_html']['year']); $media_genre = implode($ThisFileInfo['comments_html']['genre']); $media_jpg = [BLOBDATA]; ( I know that makes no programming sense, but you get the idea. The first two lines work fine

Is it possible, using TagLibSharp, to remove a Lyrics3v2 tag from a MP3 file?

本秂侑毒 提交于 2019-12-21 20:29:22
问题 I wonder if it's possible to remove a Lyrics3v2 tag type from a MP3 file using TagLibSharp library. This documentation says that the block entry starts with word " LYRICSBEGIN " and ends with " LYRICS200 ", also it says that the ID3 tag should be present to let exists the Lyrics3v2 tag ...but it doesn't specifies if reffers to ID3v1 or ID3v2 tag, or any of them, anyways I don't understand that part, because Lyrics3v2 tag is a single tag type, is not part of an ID3v1/ID3v2 tag type, it has its

Audio Crossfading in Android

怎甘沉沦 提交于 2019-12-21 16:51:22
问题 I am develping a media player for my learning purpose and I want to have crossfading feature in media player app. But I don't have clue where to start from. i tried searching on inernet but no luck. I am using Android MediaPlayer class for all media player related operation. Anyone know any workaround to achieve the same. thanks for your support 回答1: Try to use the AudioTrack instead of MediaPlayer. Generally, I'd suggest the following plan: Learn some sources for an app that uses AudioTrack.

How to fix gstreamer error in Qt5?

半城伤御伤魂 提交于 2019-12-21 15:44:30
问题 I want to create a small mp3 player as a toy project so started with Qt for the GUI. When I try to play an mp3 file i get this error. Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'." Error: "Your GStreamer installation is missing a plug-in." I installed gstreamer and it's plugins after googling around sudo apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad