Re: For all G4C music lovers
| Newsgroups | gmane.comp.windows.gui4cli |
|---|---|
| Message-ID | <[email protected]> |
Hi Fer, This is a nice one to learn from. Also for me! It has a jpeg image in it (cd cover) and it seems that players have to handle that themselves before they start the playback. "MPC-HC" can play it out of the box but my plain DirectShow player can't, although it does ID3-tags very well. Now's the time to do some work and let go free your imagination :) http://ffmpeg.zeranoe.com/builds/ http://ffmpeg.zeranoe.com/builds/ Download the latest static FFmpeg from the above link and put it with your custom mp3 player. Perhaps you know FFmpeg. It's a command line audio video converter. It can remove the jpeg and has the options to remove the ID3tag or move it to the end of the mp3. Personally I would modify my mp3 player so it keeps the original mp3's but prepares a playable one in a temp folder for playback with MCI (can all be done with g4c code). Actually that's what players like MPC also do. My thought... when a mp3 is selected for playback, use the original mp3 as FFmpeg intput and output the processed version to the temp folder under a name like e.g. clean.mp3 for MCI playback. Processing is very fast but the console will pop up for a short while but perhaps you find (or have already) a solution for that. Here are the command lines for the two mentioned options; ffmpeg -hide_banner -i "original.mp3" -vn -codec:a copy -id3v2_version 0 -y "clean.mp3" ffmpeg -hide_banner -i "original.mp3" -vn -codec:a copy -write_id3v1 1 -y "clean.mp3" The first one is useful for the clean.mp3 procedure I suggested. It removes both the jpeg image and the ID3-tag. The second one could be used to create a mp3 form the original that still has the ID3-tag but can be played with MCI. It moves the ID3-tag to the end of the file. Both command lines do not re-encode the mp3 but simply re-wrap it so sound quality is preserved. About libmad. Just google for it to find out what it means. Developers have their own sense of humor. I'm sure it can be trusted but libavcodec also works fine. I hope I have supplied enough info for you to set it up the way you want to have it in your player. I know I can leave that up to you :) Chris ---In [email protected], <fmstoopman@...> wrote : Hi Chris, Right now I'm tearing my hair out (what's left of it) trying to play "Calm after the storm". I've zipped it and attached it so maybe you could try to play it with your MCI player. I'm curious if you are able to get it played. I've checked the FFDShow and all settings seem fine. I changed decoder from libavcodec to libmad but that did not change anything. Besides, I don't trust the name libMAD. I still think that MCI is responsible but I don't know how to make ik work so I will continue to remove the tags when necessary. fer