Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Out of all the music players I have, only Windows Media Player is able to play my .mp3 file produced from an rtmpdump of a audio stream. All my other media players, even VLC player are unable to correctly play the file. Whether it be they say the file is corrupt, or that they play nothing, they all have a problem but WMP. Even uploading to a service such as Mixcloud will say that my MP3 is not correct.

Here is the command I'm using to obtain an mp3 from a audio stream:

#!/bin/sh
rtmpdump -r "rtmp://w1-ovh.evanovradio.com/live" --playpath "CIDCFM" -o /home/jhvisser/Music/driveAt5_$(date +%y%m%d).mp3

And in case you need it, here is an mp3 file generated (whole hour of audio at low bitrate) https://dl.dropboxusercontent.com/u/9099649/driveAt5_131001.mp3

share|improve this question

1 Answer 1

up vote 1 down vote accepted

rtmpdump don't produce MP3 files, it produces FLV files (even if it only contains audio). Some players ignore the file extension and detect the format automatically from the file content, thats why it may work in some players but not in others.

Use ffmpeg to extract the audio from this file:

ffmpeg -i file.flv -vn -acodec copy file.mp3
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.