First of all this is for Freevo 1.5. When i wrote this mail i didn't even know that Freevo2 was worked on actively.
On Tue, 2006-02-07 at 11:04 +0100, Hans Meine wrote: > That's the -rawaudio format=0x55 part, right? That part looks OK to me, if > Freevo already decided that it's an MP3 file. mmpython / kaa.metadata should > have a good detection code already, so if you made sure it's only called for > MP3 files (i.e. not ACC/Vorbis/WMA/..), that's fine (the code part you > patched decides by extension - whatever ;-) ). Hm, that patch is the first lines of python i ever have written and i found the section using "grep -r" :) Basically i can't claim the absolute correctness of the patch. But it seems to work for me. > However, I wonder if it's really MPlayer not detecting the MP3 right (can you > confirm that with -v output?); it may be that your changing of the demuxer > does the trick. If i only use "mplayer file.mp3" it will wrongly detect certain mp3's as TiVo file format. If i use "-demuxer 17" it will just say "end of file" before even starting to declare what file format it has detected (if i understand mplayers output right). Maybe that is related to something other than filedetection though. If i use "-demuxer 20 -rawaudio format=0x55" it just works like it is supposed to. I will attach the output to this mail. > Hmm, the more I look at your code, I wonder what it does. Maybe you could > explain better what happens; I read in MPlayer's manpage that "-audio-demuxer > 17 forces MP3" (when using -audiofile). However, you use demuxer 20, which > is rawaudio (see > http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/libmpdemux/demuxer.h ). > Couldn't you use "-rawaudio on:format=0x55" instead (note the "on")? > (If not, you should at least call the variable DEMUXER_RAWAUDIO instead, > maybe > even leave DEMUXER_MP3 for future reference.) I'm currently not at home, but i'd say that it probably works with "-rawaudio on:format=0x55" too since they start playback with no error messages and both are using mp3lib. See the actual differences in the attached file. > And the main question remains: Why does or -demuxer 17 not do the trick? I > know there are different MP3 codecs in MPlayer, but (how) do you actually > change it? This is probably a question for the mplayer developers. :) Thanks for the reply! Mattias ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
