Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Want to play AAC files on my website

19 replies [Last post]

I am truly a novice, so please go easy on me with these beginner questions.

I currently play MP3 audio files at my website using the embedded XSPF Music Player (xspf_player.swf). An XSPF playlist (playlist.xspf) contains the MP3 files. I create the MP3 files by converting from wav files. The wav files are songs I create in Pro Tools.

The problem: MP3 audio quality.
What I want to do is to convert the audio wav files to AAC files……….with presumably better quality.

I was told the XSPF Music Player is not the player for AAC and that instead I need a player written in Actionscript 3 to easily play AAC files.

Questions:
(1) Is JW Player written in Actionscript 3 and will it play AAC files?
(2) Where do I get help in building the correct code? I have looked at the Setup Wizard for “flvplayer for a single song”, but I am struggling with the precise coding and flashvars. I’m willing to work thru it……..but it would sure help if somebody has already done this.
(3) Do I have to use a specific program to convert the wav files to AAC files, so the AAC files will play in FLV Player?

FYI, I got this accomplished with great help from tech support...........Ethan responded to many questions, many times, at night and on weekends!

I was very please that the m4a files work great, even when using highest quality.

If anybody needs code for this, let me know.
You can see it working here at my website for testing and working out rough song mixes, before I seriously start mixing an album.......all for free for some musician friends.........can't have any more fun than this :) :

http://www.masoncreekstudios.com/

And thanks to Quang Nguyen for the skin!

Now if I can just figure out how to put a border around the player.
Mike

Please could you post the code? I'm having your problem... I've tried to rename the file as m4a, map, aac but nothing happens!

Thanks!

Diego

www.diegortuso.com

Hi Diego,

This is Ethan from LongTail here to help you.

Can you link me to where you are running our player on your site so I can take a look at your implementation so I can better help you?

Please email me directly at ethan [at] longtailvideo [dot] com to follow up if you have any other questions, thank you.

Best Regards,
-Ethan

Hi Ethan,

You are right, the file was too short because I had problems uploading it.
Now I've overcome this issue and it's ok.

I have an aac version of the file but I can't play it with JW Player, I tried to rename it as aac, mp4, m4a but nothing...

the link is: file:///Users/Diego/Documents/Progetti%20Web/Diego%20Ortuso/recordings/recordings_it.html

Thanks a lot for your support!

Hi Diego,

The link the link is: file:///Users/Diego/Documents/Progetti%20Web/Diego%20Ortuso/recordings/recordings_it.html is to your local computer, I cannot access it. Can you provide a web link?

Best,
-Ethan

Hi Ethan,

I'm sorry for the wrong web link.

This is the correct one: http://www.diegortuso.com/recordings/recordings_it.html

The second file (aac) is an m4a format and locally it works.

Best,
Diego

The AAC file does not exist on your server, it results in a 404 error.

Hi Ethan,

I hope you're still monitoring this thread. I am trying to play two AAC files from my web site, and both fail with JW Player.

http://walsingham-choir.org/anerio.mp4
http://walsingham-choir.org/anerio2.mp4

The first one just dies, with the player saying it failed to read. The second one makes the player just sit there and do nothing.

Both play in VLC on my desktop; the first reports duration incorrectly, though.

oops! those have .m4a extensions, not .mp4.

http://walsingham-choir.org/anerio.m4a
http://walsingham-choir.org/anerio2.m4a

They do fail, even with the correct extensions.

They work fine, you just need to set the type flashvar to sound.

Hi Ethan,

Thanks for replying.

When I add type: "sound" to the flashVars, it still does the same thing.

I can freely swap in "test.m4a", and it will play (with or without the type: "sound").

Would you mind posting the actual code that can make this work?

BTW, the site in question is:

http://walsingham-choir.org/

You are using 5.0.716, the latest version is 5.0.753, please update it.

The same behavior happens with 5.0.753....:-/

Flash/JWMP seems not to like AAC files that come from a command like this:

ffmpeg -i some_working_file.m4a -acodec copy test_file.m4a

I’ve used a couple different versions (both recent) of ffmpeg here.

Does the M4A work with this player? (4.7) - http://developer.longtailvideo.com/player/trunk/as3/player.swf

No, it doesn’t work.

The file is being *downloaded*, according to Firebug, but it’s just not playing.

E-mail me at ethan [at] longtailvideo [dot] com, I have a demo of this and it *should* be working, I don't understand why yours is not.