FAQ Database Discussion Community


Can NetStream.seek move the playhead of an MP3?

actionscript-3,mp3,metadata,netstream
I create a custom SWF to play MP3s that use RTMP and <NetStream>. I was able to connect to the server, play and pause the mp3, and adjust the volume using <SoundTransform>. But I still can't retrieve metadata from the <NetStream> to make a seek bar. Can <NetStream.seek> move the...

Check if mp3 is playable in swift

ios,objective-c,swift,mp3,avaudioplayer
I'm trying to download & play remote mp3s. Basically: User clicks the mp3, Download starts on background and then, when it's possible, the playback starts. Everything works almost fine - the download is performed by AFHTTPRequestOperation which is downloading the mp3 directly into a file and I get progress updates...

How play .mp3 files loaded from a URL in TMediaPlayer with Firemonkey?

mp3,media-player,firemonkey,playback,delphi-xe7
Is there any way to play .mp3 files from a URL using TMediaPlayer with Firemonkey in Delphi XE7?, this code doesn't works; MediaPlayer1.FileName := 'http://wwww.some_site.com/some_song.mp3'; MediaPlayer1.Play; it throws an exception of File not found, so I suppose that TMediaPlayer works only with local files, isn't it?, please, any helps it...

Connecting an Android ListView onClick to another Activity

android,android-activity,mp3,android-sdcard,onitemclick
I am making a MP3 player Android App. I want to start another activity from a ListView click that opens up the artist directory to show the songs from that one artist. I based my code off of the [Android tutorial][1]. This below is in my onCreate in ArtistList.java ListView...

Regular Expression - Replace all except the file extension for file tagging

regex,replace,mp3
I'm working on cleaning up the tags of mp3s that contain the web links. I tried the regular expression that clears up the web-links (\w+)*(\s|\-)(\w+\.(\w+)) with $1 However, when I try using the same on the file, the extension is replaced. How do I make the extension here, .mp3 as...

Django 1.7 - Any way to stream mp3 playlists?

django,html5,stream,mp3,playlist
I am using django 1.7.5 on python 2.7 and I was wondering if there was a solution for streaming mp3 files? Preferably a stream player with an html5 fallback for non-flash devices. I'm asking because I am having trouble finding something relevant that isn't over 3 years old and outdated...

How to convert base64 string into an audio mp3 file?

php,audio,base64,mp3
I'm getting a base64 string from android side. I have to convert it into an audio file and have to save it into a folder. I thought I have to convert it first into byte array. Then after it, I have to convert it into a mp3 file. But don't...

Testing an MP3 with PhantomJS

javascript,phantomjs,mp3
I want to set up a testing routine in Phantom that scans a podcast RSS feed, grabs the URLs of MP3 files, then tests to see that they exist. I have this: /* For checking one mp3 file */ function checkFile(url) { var fs = require('fs'); if (fs.exists(url)) { console.log('"'+url+'"...

Convert youtube video to mp3 using Quick MP3 API

php,api,youtube,mp3
I need convert youtube video to mp3 using Quick MP3 API. http://www.quick-mp3.com/api/v1/docs/ my code example is : <?php $url="http://www.youtube.com/watch?v=qpgTC9MDx1o"; // i need to fetch video informations and get mp3 download link ?> Thank you....

Storing custom information in an audio/mp3 file

file,tags,mp3,id3
I want to store some custom information (tags) in a mp3 file (or even better, in any audio file, but mp3 would be a start). What would be a good way to do that? ID3? If yes, in what ID3-Section should that be (it shouldn't be overwritten by other programs)....

Why Does Javascript Alarm Audio Keep Replaying?

javascript,audio,timer,mp3
Javascript CountDown Timer: When the timer reaches zero, I want an audio recording to play. I've gotten my audio to play, but seconds after it starts, the same audio plays again with the original audio and it never stops. Here is my code: //Javascript Countdown Timer. //set the amount of...

Streaming audio only (.mp3) files using MPEG DASH

html5,google-chrome,mp3,html5-audio,mpeg-dash
Is there any way to stream audio only files (.mp3) using MPEG DASH. I'm looking at ways to get HTML5 audio working on chrome without using progressive downloads. Any ideas ?

Splitting up a variable in bash

bash,ffmpeg,mp3
I have a bunch of songs that I have downloaded that I am trying to convert to .mp3 and rename. After converting the .m4a file to mp3 with ffmpeg, they are all in the format of Artist Name - Song Name.mp3. I want to be able to separate the Song...

Is it possible to save a mp3 file downloaded from server without converting it to ByteArray? (AS3)

ios,actionscript-3,flash,download,mp3
After searching around the net, I couldn't find a method to download a mp3 from a server, save it in the local storage (iPad) and then load and play it other than converting it to byteArray, saving it as .mp3 and then load it and read it back to mp3...

Continue streaming audio when offline/disconnected for a few minutes?

cordova,audio,mp3,audio-streaming,internet-radio
I have searched for a few days, and I can't seem find a solution. I am hoping someone here can point me in the right direction. I am building a radio iOS application using Cordova/Angular, and I have one mp3 stream (http://mp3lg3.tdf-cdn.com/5593/goo_102004.mp3) that I am playing with HTML5. I would...

How to join several mp3s (wavs) on server?

php,mp3
I'm looking for a possibility to join several audio files in one on the server. Example: audio_01.mp3 / 33sec + audio_02.mp3 / 22sec = audio_03.mp3 / 55sec Server - Linux based, my main language is PHP (just in case) Could you please point me in the right direction? Thanks in...

How to create MP3 file using CSCore from WAV file or how to solve “No MP3-Encoder was found”

c#,mp3,wav,encode,cscore
I was wondering if it is possible to encode to mp3 after recording a wav file. I tried to change the WasapiCapture parameters but I think that is not working since the sound length has only 5 seconds and 1,20 MB. Here the sample code trying to converting to mp3...

Restricting upload to mp3 only

php,mp3,media,uploading
I have been working on a PHP script that allows people to upload MP3 files to the server: $target_dir = "upload/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $fileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $uploadOk = 1; }...

Finding main_data_begin in a MP3 file

matlab,mp3,decoder
I want to decode a MP3 file. I manage to find the 32 bits in the header (sync word, ID, Layer, Bitrate, etc). The problem is I have no idea on how to find the starting (the position) of main_data_begin (side information). I am using MATLAB in this case. I...

How to extract “Encoded by” from mp3 metadata using Python?

python,metadata,mp3,eyed3
I am trying to write a Python script to extract metadata tags from some mp3 files. Specifically, I am looking to extract "Album" and "Encoded by", which are available if I right-click on the files and look under details: I am using currently using the eyeD3 library to parse metadata....

play and stop or pause mp3

android,android-activity,mp3,android-togglebutton
ok my toggle button is working fine , but my mp3 not got started after when its stopped. here is my code please do tell me proper way to stop and start again mp3 sound. here is my code and debug logs. public void toggleclick(View v) throws IllegalStateException, IOException{ if(tg.isChecked())...

Android MediaPlayer play mp3 from url with bad network

android,mp3,media-player
I want to play mp3 from url with MediaPlayer, but the network is disconnected when buffering a part of stream, how can I going on buffering the remaining stream when the network connects again. mp = MediaPlayer.create(this, Uri.parse("http://media.cmechina.net/mobile/201500011693/02/flv/5.mp3")); mp.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() { @Override public void onBufferingUpdate(MediaPlayer mp, int percent) { Log.d("TAG",...

Full quality MP3 streaming via webRTC

mp3,html5-audio,webrtc,audio-streaming,p2p
I'm interested in webRTC's ability to P2P livestream an mp3 audio from user's machine. Only example, that I found is this: https://webrtc-mp3-stream.herokuapp.com/ from this article http://servicelab.org/2013/07/24/streaming-audio-between-browsers-with-webrtc-and-webaudio/ But, as you can see, the audio quality on receiving side is pretty poor (45kb\sec), is there any way to get a full quality...

iOS Streaming MP3 File

ios,audio,streaming,buffer,mp3
I am a relatively new developer to iOS and I am writing an application that deals with streaming audio from an mp3 file on a website. I want to play the audio as I stream it and I want the user to be able to scrub through the audio. I...

How to interpret raw pcm data from an MP3 file

c#,audio,mp3
I am using NAudio to retrieve the raw pcm data from an MP3 file. Then I need to read this data at set intervals (time based). However, I'm having a hard time understanding how to interpret this data. For example, if the MP3 was stereo vs mono vs anything else,...

How to code to play MP3?

java,mp3,javasound
I was making a few lines of code which alternatively prints out "tick"s and "tock"s every 0.5 second, and prints out "done!" after 60 seconds. import javax.sound.sampled.*; public class Thread0001 { public static void main(String args[]) { for(int i=0; i<60; i++) { try { Thread.sleep(500); if(i%2 == 0) { System.out.print("tick...

MediaPlayer isn't working

java,javafx,mp3
How do I use MediaPlayer to play m4a files? This is my code: public void audioPlayerButtons(ActionEvent actionEvent) { String bip = "Songs/01 Clarity.m4a"; Media hit = new Media(bip); MediaPlayer mediaPlayer = new MediaPlayer(hit); if (actionEvent.getSource() == playbtn) { mediaPlayer.play(); } else if (actionEvent.getSource() == pausebtn) { mediaPlayer.pause(); } else if...

Get ID3 tag from MP3 Streaming ~ SOLVED

javascript,php,mp3,id3,webradio
I encounter difficulties in recovering informations (ID3 tag) from an MP3 stream. I want this informations for display the albumArt and the title of the current song on the homepage of the radiomed's website. Update With PHP , I worked with ID3 library for PHP, but this library was not...

Why Apache Tomcat does not see mp3 file?

jsf,tomcat,mp3
I develop website that must play music. But tomcat does not see mp3 file that I want to listen. Here is part of my internalAccountTemplate.xhtml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:p="http://primefaces.org/ui"...

Multiple Hide and show div using jquery

jquery,mp3,audio-player
I want a Mp3 player like this one. My search script show 10 result per page. I want to insert an mp3 for every search result item. When I click "play", the player opens fine, and when I click "Stop", the player stops fine, but when I click "Play" and...

Get HTTP mp3 stream from every song

json,mp3,soundcloud
I need to get the direct URL from a SoundCloud mp3 file. I normally used the following method: Resolve the track url to get the track id, e.g. using https://soundcloud.com/linkin_park/burn-it-down with http://api.soundcloud.com/resolve.json?url=http://soundcloud.com/your/link/to/the/track&client_id=client_id Then go for the stream_urls with http://api.sndcdn.com/i1/tracks/track_id_here/streams?client_id=client_id In most cases, the "http_128_mp3_url", the URL I need, is returned,...

Copy mp3 with ffmpeg not playable by QuickTime

ffmpeg,mp3
I am trying to create a video out of one image and copy audio on top. Following this (last section), I tried: $ ffmpeg -loop 1 -i img.jpg -i audio.mp3 -c:v libx264 -c:a copy -shortest h264.mp4 ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers built on Feb 23 2015...

Group Binary and add a space after 8 numbers Matlab (Duplicate) [duplicate]

string,matlab,matrix,binary,mp3
This question already has an answer here: Group characters and form a matrix in Matlab 3 answers I wish to group 8 binary numbers together and then shape it into matrix which is as shown: 01001001 10110100 10111101 10000111 10110101 10100011 10110010 10111000 010 My input will be a...

Changing The Current Time of a JavaScript Audio Object, When Getting the audio file from a PHP script

javascript,php,header,mp3
I have built a PHP script that sends *.MP3 files form outside the public_html directory, it works OK and sends the file. The problem is that I have a JavaScript script which should change the current time of the audio file (audioFile.currentTime = 25;). When I do this(Get the file...

mp3 to sample array NAudio

mp3,naudio
How can I use NAudio library to get sample float array from mp3 file? Here is my code: float[] buffer = new float[2000]; AudioFileReader reader = new AudioFileReader(filePath); reader.Read(buffer, 0, 2000); After that buffer is always empty (only zeros inside). You could also provide me another useful library in C#...

Javascript:: Is it possible to create an array of new audio objects?

javascript,audio,asynchronous,mp3,sync
This example work perfectly : var audio=new Audio(); audio.src="Hezi.mp3"; audio.play(); But I was wondering if there is a possibility to create an array of new audio objects like such: var audio[0]=new Audio(); audio[0].src="Hezi.mp3"; audio[0].play(); var audio[1]=new Audio(); audio[1].src="Gangina.mp3"; audio[1].play(); Off-course the second example is not the current syntax but just...