Fw: [MPlayer-users] [Bug] Mlayer/MP3Lib ?
Hi, Got the attached bugreport on -users. I tried the file and got those infos: File is in ftp://mplayerhq.hu/MPlayer/incoming/techno/output.avi and, ftp://mplayerhq.hu/MPlayer/incoming/techno/output.txt mplayer version i used is current cvs (from 10m ago) --- (gdb) run -v /tmp/output.avi Starting program: /home/attila/src/mplayer/main/mplayer -v /tmp/output.avi [New Thread 16384 (LWP 3984)] Using GNU internationalization Original domain: messages Original dirname: /usr/share/locale Current domain: mplayer Current dirname: /usr/local/share/locale MPlayer dev-CVS-030228-14:06-2.95.4 (C) 2000-2003 Árpád Gereöffy (see DOCS) CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx Reading config file /usr/local/etc/mplayer/mplayer.conf: Datei oder Verzeichnis nicht gefunden Reading config file /home/attila/.mplayer/config Reading /home/attila/.mplayer/codecs.conf: can't open '/home/attila/.mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden Reading /usr/local/etc/mplayer/codecs.conf: 58 audio & 149 video codecs CommandLine: '-v' '/tmp/output.avi' get_path('font/font.desc') -> '/home/attila/.mplayer/font/font.desc' Font /home/attila/.mplayer/font/font.desc loaded successfully! (140 chars) Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Linux RTC init error in ioctl (rtc_irqp_set 1024): Keine Berechtigung Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts. Using usleep() timing get_path('input.conf') -> '/home/attila/.mplayer/input.conf' Can't open input config file /home/attila/.mplayer/input.conf : Datei oder Verzeichnis nicht gefunden Can't open input config file /usr/local/etc/mplayer/input.conf : Datei oder Verzeichnis nicht gefunden Falling back on default (hardcoded) input config get_path('output.avi.conf') -> '/home/attila/.mplayer/output.avi.conf' Playing /tmp/output.avi Not an URL! [file] File size is 5242880 bytes STREAM: [file] /tmp/output.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) AVI file format detected. list_end=0x2292 ======= AVI Header ======= us/frame: 41700 (fps=23.981) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED frames total: 20547 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 640 x 480 list_end=0x10F4 ==> Found video stream: 0 ======= STREAM Header ======= Type: vids FCC: div3 (33766964) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 1000000/41700 = 23.981 Start: 0 Len: 20547 Suggested BufferSize: 72506 Quality 10000 Sample size: 0 found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 640 biHeight 480 biPlanes 1 biBitCount 24 biCompression 861292868='DIV3' biSizeImage 921600 =========================== Regenerating keyframe table for DIVX 3 video list_end=0x2186 ==> Found audio stream: 1 ======= STREAM Header ======= Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 1 Rate: 16000/1 = 16000.000 Start: 0 Len: 13708809 Suggested BufferSize: 8000 Quality -1 Sample size: 1 found 'wf', 30 bytes of 18 ======= WAVE Format ======= Format Tag: 85 (0x55) Channels: 2 Samplerate: 44100 avg byte/sec: 16000 Block align: 1 bits/sample: 0 cbSize: 12 mp3.wID=1 mp3.fdwFlags=0x2 mp3.nBlockSize=417 mp3.nFramesPerBlock=1 mp3.nCodecDelay=1393 list_end=0x2292 Broken chunk? chunksize=1382 (id=JUNK) list_end=0x8283D3E Found movie at 0x280C - 0x8283D3E stream_seek: WARNING! Can't seek to 0x8283D3E ! Auto-selected AVI audio ID = 1 Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:1) AVI video size=122971409 (20547) audio size=13708809 VIDEO: [DIV3] 640x480 24bpp 23.98 fps 1148.2 kbps (140.2 kbyte/s) [V] filefmt:3 fourcc:0x33564944 size:640x480 fps:23.98 ftime:=0.0417 get_path('sub/') -> '/home/attila/.mplayer/sub/' get_path('default.sub') -> '/home/attila/.mplayer/default.sub' ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer mp3lib: made decode tables with MMX optimization mp3lib: using 3DNow!Ex optimized decore! MP3lib: init layer2&3 finished, tables done Blocktype == 0 and window-switching == 1 not allowed. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 3984)] 0x080f5466 in III_dequantize_sample (xr=0x8367940, scf=0xbfffe240, gr_info=0xbfffe058, sfreq=5, part2bits=38) at layer3.c:875 875 register short *val = h->table,a; (gdb) bt #0 0x080f5466 in III_dequantize_sample (xr=0x8367940, scf=0xbfffe240, gr_info=0xbfffe058, sfreq=5, part2bits=38) at layer3.c:875 #1 0x080f98e6 in do_layer3 (fr=0x836ab60, single=-1) at layer3.c:1641 #2 0x080f9f3b in MP3_DecodeFrame ( hova=0xa9eef28 <Address 0xa9eef28 out of bounds>, single=-1) at sr1.c:518 #3 0x080b8f16 in init (sh=0xffffffff) at ad_mp3lib.c:49 #4 0x080b7432 in init_audio_codec (sh_audio=0xffffffff) at dec_audio.c:105 #5 0x080b76c8 in init_audio (sh_audio=0x840a878, codecname=0x0, afm=0x0, status=1) at dec_audio.c:195 #6 0x080b7947 in init_best_audio_codec (sh_audio=0x840a878, audio_codec_list=0xbfffe434, audio_fm_list=0x0) at dec_audio.c:240 #7 0x080703dd in main (argc=3, argv=0xbffff7d4) at mplayer.c:1594 (gdb) l 870 /* 871 * short (count1table) values 872 */ 873 for(;l3 && (part2remain > 0);l3--) { 874 struct newhuff *h = htc+gr_info->count1table_select; 875 register short *val = h->table,a; 876 877 while((a=*val++)<0) { 878 part2remain--; 879 if(part2remain < 0) { (gdb) p htc+gr_info->count1table_select $1 = (struct newhuff *) 0xa9eef28 (gdb) p *(htc+gr_info->count1table_select) Cannot access memory at address 0xa9eef28 (gdb) p htc $2 = {{linbits = 0, table = 0x83287c0}, {linbits = 0, table = 0x8328800}} (gdb) p gr_info->count1table_select $3 = 1078824125 --- Greetings Attila Kinali -- Emacs ist für mich kein Editor. Für mich ist das genau das gleiche, als wenn ich nach einem Fahrrad (für die Sonntagbrötchen) frage und einen pangalaktischen Raumkreuzer mit 10 km Gesamtlänge bekomme. Ich weiß nicht, was ich damit soll. -- Frank Klemm, de.comp.os.unix.discussion
Hi,
0x080f5466 in III_dequantize_sample (xr=0x8367940, scf=0xbfffe240, gr_info=0xbfffe058, sfreq=5, part2bits=38) at layer3.c:875 875 register short *val = h->table,a;
yes we know that mp3lib is broken to hell (Actually mpg123 is broken to hell and mp3lib is based on it) esp. when come to broken mp3 files... but unfortunatelly no one was brave enough to fix it yet :( actually i guess there is no way to reach error robustness and speed at teh same time... so there is -ac mad for errors, and mp3lib for speed. A'rpi / Astral & ESP-team -- Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
On Thu, 2003-06-26 at 00:11, Arpi wrote:
yes we know that mp3lib is broken to hell (Actually mpg123 is broken to hell and mp3lib is based on it) esp. when come to broken mp3 files... but unfortunatelly no one was brave enough to fix it yet :(
actually i guess there is no way to reach error robustness and speed at teh same time... so there is -ac mad for errors, and mp3lib for speed.
as i don't mind mp3 decoding being a little slower, i'd like to use mad always instead of mp3lib. is there a way to tell mplayer to prefer mad over mp3lib? thanks, gabor -- "Don't worry. I used the back of my sword. Oh, it's double-sided. Sorry." -Zelgadis, Slayers
Hi,
On Thu, 2003-06-26 at 00:11, Arpi wrote:
yes we know that mp3lib is broken to hell (Actually mpg123 is broken to hell and mp3lib is based on it) esp. when come to broken mp3 files... but unfortunatelly no one was brave enough to fix it yet :(
actually i guess there is no way to reach error robustness and speed at teh same time... so there is -ac mad for errors, and mp3lib for speed.
as i don't mind mp3 decoding being a little slower, i'd like to use mad always instead of mp3lib.
is there a way to tell mplayer to prefer mad over mp3lib?
yes, RTFM (or ask on -users :)) A'rpi / Astral & ESP-team -- Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
On Thu, 2003-06-26 at 00:21, Arpi wrote:
Hi,
On Thu, 2003-06-26 at 00:11, Arpi wrote:
yes we know that mp3lib is broken to hell (Actually mpg123 is broken to hell and mp3lib is based on it) esp. when come to broken mp3 files... but unfortunatelly no one was brave enough to fix it yet :(
actually i guess there is no way to reach error robustness and speed at teh same time... so there is -ac mad for errors, and mp3lib for speed.
as i don't mind mp3 decoding being a little slower, i'd like to use mad always instead of mp3lib.
is there a way to tell mplayer to prefer mad over mp3lib?
yes, RTFM (or ask on -users :))
ok, i was stupid :) btw. the codec config system is great and simple, but there is one thing i don't like. usually i don't want to customize the whole codecs.conf, i only want to adjust it a little, for example:never-use-mp3lib. for that i have to i copy the /usr/local/etc/codecs.conf to $HOME/.mplayer, and edit it. the problems begin when i update mplayer from cvs. make-install of course overwrites /usr/local/etc/codecs.conf with the newest version, but mplayer will still use $HOME/.mplayer/codecs.conf, which isn't based on the newest one. i know i can create a diff for the custom-codecs-conf, and patch codecs.conf after every update, but it would be nice to have a simpler way. i just don't know what that way should be. gabor -- "Don't worry. I used the back of my sword. Oh, it's double-sided. Sorry." -Zelgadis, Slayers
Hi,
(or ask on -users :))
ok, i was stupid :)
was?
btw. the codec config system is great and simple, but there is one thing i don't like.
usually i don't want to customize the whole codecs.conf, i only want to adjust it a little, for example:never-use-mp3lib. for that i have to i copy the /usr/local/etc/codecs.conf to $HOME/.mplayer, and edit it.
argh. i did say that RTFM!!!!!!!!!!!!!!!!!!! changing codecs.conf is not the recomemnded way to customize the codecs order. look at -ac/-vc/-avf/-vfm A'rpi / Astral & ESP-team -- Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
btw. the codec config system is great and simple, but there is one thing i don't like.
usually i don't want to customize the whole codecs.conf, i only want to adjust it a little, for example:never-use-mp3lib. for that i have to i copy the /usr/local/etc/codecs.conf to $HOME/.mplayer, and edit it.
argh. i did say that RTFM!!!!!!!!!!!!!!!!!!! changing codecs.conf is not the recomemnded way to customize the codecs order. look at -ac/-vc/-avf/-vfm
I think you're missing the point; the question, as I read it was not "how do you change the search order of codecs?", but "how do you make a small (arbitrary) change to the codec configuration without having to copy the entire codecs.conf to ~/.mlpayer and modify it for every release?". The manual doesn't say anything about this--or, for that matter, about using -ac/-vc/-afm(?)/-vfm rather than changing codecs.conf to change the order of codecs--so "RTFM" is not appropriate here (though "you can't" would be). --Andrew Church achurch@achurch.org http://achurch.org/
Andrew Church writes:
btw. the codec config system is great and simple, but there is one thing i don't like.
usually i don't want to customize the whole codecs.conf, i only want to adjust it a little, for example:never-use-mp3lib. for that i have to i copy the /usr/local/etc/codecs.conf to $HOME/.mplayer, and edit it.
argh. i did say that RTFM!!!!!!!!!!!!!!!!!!! changing codecs.conf is not the recomemnded way to customize the codecs order. look at -ac/-vc/-avf/-vfm
I think you're missing the point; the question, as I read it was not "how do you change the search order of codecs?", but "how do you make a small (arbitrary) change to the codec configuration without having to copy the entire codecs.conf to ~/.mlpayer and modify it for every release?". The manual doesn't say anything about this--or, for that matter, about using -ac/-vc/-afm(?)/-vfm rather than changing codecs.conf to change the order of codecs--so "RTFM" is not appropriate here (though "you can't" would be).
Just put vfm=XXX in your config file. Diego
Hi,
argh. i did say that RTFM!!!!!!!!!!!!!!!!!!! changing codecs.conf is not the recomemnded way to customize the codecs order. look at -ac/-vc/-avf/-vfm
I think you're missing the point; the question, as I read it was not "how do you change the search order of codecs?", but "how do you make a small (arbitrary) change to the codec configuration without having to copy the entire codecs.conf to ~/.mlpayer and modify it for every release?".
no, i understood exactly so.
The manual doesn't say anything about this--or, for that matter, about
then keep re-reading it.
using -ac/-vc/-afm(?)/-vfm rather than changing codecs.conf to change the order of codecs--so "RTFM" is not appropriate here (though "you can't" would be).
quoting manpage: -ac <[-]codec1,[-]codec2,...[,]> Specify a priority list of audio codecs to be used, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ according to their codec name in codecs.conf. Use a '-' before the codec name to omit it. NOTE: See -ac help for a full list of available codecs. If the list has a trailing ',' it will fallback to codecs not listed. there is even examples for your case: EXAMPLE: -ac mad, try libmad first, then fallback to others so just put "ac=mad," into your mplayer config file and done. hey, is it so hard to read and understand?????????? A'rpi / Astral & ESP-team -- Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu [Using mailer3 v3.99pre3-CVS beta GSM edition, broken Date: feature enabled]
-ac <[-]codec1,[-]codec2,...[,]> Specify a priority list of audio codecs to be used, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This still doesn't say anything about using this vs. changing codecs.conf, which is the point I was trying to make. (I'm aware of the "echo foo=bar >>~/.mplayer/config" way of doing things.) Since it seems the current behavior is "if ~/.mplayer/codecs.conf exists, ignore .../etc/mplayer/codecs.conf completely", and the documentation doesn't say anything about this other than two oblique references to removing outdated codecs.conf files from ~/.mplayer (documentation.html:818-819 and faq.html:472-473), I would suggest (1) documenting this behavior--I'd be happy to submit documentation updates--and possibly (2) changing the behavior to allow using ~/.mplayer/codecs.conf to add new or modify existing codecs rather than completely replace the system list (this is probably not really that necessary since MPlayer seems to support just about every codec out there already). --Andrew Church achurch@achurch.org http://achurch.org/
On Tue, Jul 01, 2003 at 03:02:41PM +0900, Andrew Church wrote:
-ac <[-]codec1,[-]codec2,...[,]> Specify a priority list of audio codecs to be used, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This still doesn't say anything about using this vs. changing codecs.conf, which is the point I was trying to make. (I'm aware of the "echo foo=bar >>~/.mplayer/config" way of doing things.) Since it seems the current behavior is "if ~/.mplayer/codecs.conf exists, ignore .../etc/mplayer/codecs.conf completely", and the documentation doesn't say anything about this other than two oblique references to removing outdated codecs.conf files from ~/.mplayer (documentation.html:818-819 and faq.html:472-473), I would suggest (1) documenting this behavior--I'd be happy to submit documentation updates--and possibly (2) changing the behavior to allow using ~/.mplayer/codecs.conf to add new or modify existing codecs rather than completely replace the system list (this is probably not really that necessary since MPlayer seems to support just about every codec out there already).
You are more than welcome to update the documentation. Just read DOCS/tech/patches.txt and send me your updates. I will apply it. Thanks Diego
participants (5)
-
achurch@achurch.org -
Arpi -
Attila Kinali -
Diego Biurrun -
gabor