Ask coding questions

← Back to all posts
Play audio
CT2224 (142)

This program, which is supposed to play audio doesn't.
Can someone help?
Thanks

Answered by Bookie0 (6149) [earned 5 cycles]
View Answer
Comments
hotnewtop
Bookie0 (6149)

Hi,

I had a similar problem, open up the shell and do this:

ffmpeg -i audio.mp3 audio.wav # Convert to uncompressed audio-only wav format
ffmpeg -i audio.wav audio.mp3 # Convert back to mp3 format 
rm audio.wav # remove wav file

and replace audio.mp3 with ur music file

Bookie0 (6149)

also don't just copy paste this into the shell, type it out line by line, without the comments and in the first line replace audio.mp3 with your file, and in the second line replace audio.mp3 with a new audio file name with .mp3 at the end! ;) @Bookie0