You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
(3) |
Oct
(4) |
Nov
(10) |
Dec
(23) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(17) |
Feb
(13) |
Mar
(26) |
Apr
(4) |
May
(18) |
Jun
|
Jul
(12) |
Aug
(5) |
Sep
(8) |
Oct
|
Nov
(9) |
Dec
(2) |
2003 |
Jan
(21) |
Feb
(10) |
Mar
(2) |
Apr
|
May
(3) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(10) |
Nov
(1) |
Dec
(2) |
2004 |
Jan
(1) |
Feb
(5) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(4) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
(2) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(13) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(4) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Wiebe C. <wi...@ha...> - 2013-04-10 16:44:19
|
Hi, Every since I calibrated my subwoofer to be flat to 20 Hz with the rest of the audio bandwidth, bass from films seems weak. So, I was wondering if liba52 actually applies the 10 dB boost the LFE channel is supposed to have. I looked at the source code, but it kind of confuses me. And because I don't find any defines in .h files for 10dB (where there are defines for 3, 6, -3, -6) it's suspect. In any case, when not down-mixing, the output of the LFE channel is routed to the sound card's LFE output, I would gather. Has it already been boosted by 10 dB here? I assume the sound card or driver doesn't apply any boost, because that would potentially yield wrong results for other software and potentially clip the signal. I'm assuming the gain of 10 dB hasn't been applied yet. Because if you read [1]: > One important point is that the 10dB boost to the LFE is performed at the final > amplification stage. The potential extra volume of the LFE channel could not > pass through interconnects, analogue recordings or digital recordings > without going over the specified limits by a factor of 3. So if liba52 is considered an 'external decoder' as [1] calls it, this boost should NOT be applied and it should be applied by the amplification stage. If not, down-mixing would require such a high level of normalization, that some channels have to be multiplied by 0.16 (or lower, when down-mixing to stereo) to prevent it from clipping. I built my own discrete analog bi-amped (pre)amps in which I can easily do that, so if I should, I will. However, one question remains: when down-mixing to a format that doesn't have a .1 channel (like stereo), it must mean either one of these: 1) digital resolution is severely limited because the other signals have to be cut in gain. 2) the proper bass reproduction level is lost. Right? Regards, Wiebe BTW, the link to the AC3 standard on the home page is dead. It should be: http://www.atsc.org/cms/index.php/standards/standards/48-atsc-a52-standard refs: [1] http://www.avsforum.com/t/748147/lfe-subwoofers-and-interconnects-explained |
From: Lee W. h. <okq...@ya...> - 2012-05-27 14:01:18
|
i get this error while compile vlc-2.0.1 /usr/bin/ld: /usr/local/lib/liba52.a(parse.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/liba52.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[4]: *** [liba52tofloat32_plugin.la] Error 1 i have run make distclean ./configure --with-pic but vlc still get this error my system is ubuntu 11.04 Natty Narwhal amd 64 |
From: dE . <de....@gm...> - 2011-12-06 04:37:08
|
Hi. I'm not sure if this's the right place to discuss this but there's no other suitable mailing list. I'm using 0.7.4 version of a52dec and trying to decode 5.1 to Dolby Pro Logic II, but I get just Pro Logic (4 channels). But I've seen in the commits, some mentioning of pro logic II decoding, so is a52dec down mixing to pro logic II? Also if it could downmix to pro logic IIz, it'll be great! |
From: Dmitrij D. C. <cza...@gm...> - 2011-07-03 15:11:41
|
Hello! Sorry for kind a stupid question, but it seams that quite a lot has changed since 0.7.4 release of liba52. Is the 0.7.5 version to be released in some near future? -- Dmitrij D. Czarkoff |
From: Elio B. <eli...@ya...> - 2010-10-26 10:18:27
|
Thanks for the updates! About the show_info feature, I wrote it making a52dec able to print some information about the first decoded block, assuming the remaining ones are the same. But this won't work for vbr streams. So I wonder... Do actually vbr ac3 streams exist? Elio |
From: Jean-Baptiste K. <jb...@vi...> - 2010-02-14 16:25:17
|
On Sun, Jan 03, 2010 at 10:02:07PM +0100, Jean-Baptiste Kempf wrote : > Here are a few patches that were sent to various mailing lists that I > have gathered and re-updated to match HEAD. Ping? Best Regards, -- Jean-Baptiste Kempf http://www.jbkempf.com/ |
From: Jean-Baptiste K. <jb...@vi...> - 2010-01-03 21:19:33
|
Hello, Here are a few patches that were sent to various mailing lists that I have gathered and re-updated to match HEAD. Most patches are not my work. - mono.patch is an update of Elio Blanca's patch [1] for "I saw very soon the module libao/audio_out_wav.c was written to support the creation of 'classic' wav files with one or two channels, but the single channel solution was never reached. The source allows for three output modes: wav, wavdolby and wav6. The last case (wav6) managed the wav creation the right way, the bug raised when choosing wav and wavdolby output, they were forced to always create a wav file with 2 channels. I added a simple check to workaround when the source stream has a single channel. That's all." - infos.patch is an update of Elio Blanca's patch [2] " it adds the show_info feature, to print on stdout full info about the decoded stream: channel config, sampling rate and actual bitrate." - soname.patch is a debian patch for .so name No idea if liba52 actually needs it. - svn.patch is a patch to update README configure.ac INSTALL and remove CVS references to SVN Just for references. Best Regards, 1 - http://sourceforge.net/mailarchive/message.php?msg_name=465B408C.1080207%40yahoo.it 2 - http://sourceforge.net/mailarchive/message.php?msg_name=46542CE7.80106%40yahoo.it -- Jean-Baptiste Kempf http://www.jbkempf.com/ |
From: Luciano G. <luc...@gm...> - 2009-08-10 13:08:46
|
Hello. I am trying to install a52dec in a Linux TV STB that is unable to decode AC3 audio by itself. So i just can hear a thing using optical output. I just cross compiled a52dec for powerpc 405, and it works fine, but when i try to run a52dec i get this error message: a52dec: relocation error: /lib/liba52.so.0: symbol cos, version GLIBC_2.0 not defined in file libm.so.6 with link time reference Does anyone know what can be happening here and how to avoid it? Thank you! Luciano Greiner |
From: Michel L. <wa...@zo...> - 2008-10-14 19:44:48
|
Hi, On Mon, Sep 29, 2008 at 04:36:01PM +0530, Ragas sag wrote: > I am new to this group. And i have been trying to cross compile liba52 for > DVEVM or Davinci DM6446 processor. > I am working on Red Hat Linux. > > If i use " ./configure ==> make =>make install ", it generates files as > mentioned below, > liba52.la , liba52.so , liba52.so.0 & liba52.so.0.0.0 " ( For Linux ) > > When i try to cross compile with the following configuration options, > " ./configure CC=arm_v5t_le-gcc --host=i386 CXX=arm_v5t_le-g++ > --target=armv5tl-montavista-linuxeabi --prefix=/usr/local/ --enable-release > --enable-shared=yes " > Than " make CC=arm_v5t_le-gcc CXX=arm_v5t_le-g++ ==> make install > DESTDIR=$PWD/inst " Sorry I only saw your message now. Also, I've not used cross compiling in a long long while... Would the following work ? CC=arm_v5t_le-gcc ./configure --target=armv5tl-montavista-linuxeabi; make Cheers, -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies. |
From: Ragas s. <inf...@gm...> - 2008-09-29 11:06:08
|
Dear All, I am new to this group. And i have been trying to cross compile liba52 for DVEVM or Davinci DM6446 processor. I am working on Red Hat Linux. If i use " ./configure ==> make =>make install ", it generates files as mentioned below, liba52.la , liba52.so , liba52.so.0 & liba52.so.0.0.0 " ( For Linux ) When i try to cross compile with the following configuration options, " ./configure CC=arm_v5t_le-gcc --host=i386 CXX=arm_v5t_le-g++ --target=armv5tl-montavista-linuxeabi --prefix=/usr/local/ --enable-release --enable-shared=yes " Than " make CC=arm_v5t_le-gcc CXX=arm_v5t_le-g++ ==> make install DESTDIR=$PWD/inst " It generated ,only two files namely liba52.a & liba52.la only . Why? Why no shared objects are not created. Kindly can some body guide me in generating shared files when i cross compile procedure. My configuration options are wrong ? Am i doing anything wrong ? Am i missing any step ? Awaiting for your answer's. Warm Regards, Sagar |
From: Jean-Baptiste K. <jb...@vi...> - 2007-11-21 06:22:54
|
Michel Lespinasse a écrit : > On Wed, Nov 21, 2007 at 07:07:37AM +0100, Jean-Baptiste Kempf wrote: >> Just a quick question, >> Why are there sometime tabs in the source code, and sometimes not ? > > First I thought you were talking 'in general' - and then I'd say everyone > has their own habits and they all suck equally. Yes ;) >> Is there any policy about that ? > > In liba52 and libmpeg2 code indentations are equivalent to 4 spaces each, > tabs align to the next 8-spaces multiple, and tabs used whenever possible > (i.e. one tab is used rather than 8 spaces). This policy used to be > enforced - now the policy itself is all rather arbitrary, I admit. Ok. That is the kind of answer I was hoping. >> Can we remove those ? > Why ? Why not? ;) No, it was more a rhetorical way of ending the mail :D Coin, jb |
From: Michel L. <wa...@zo...> - 2007-11-21 06:20:38
|
On Wed, Nov 21, 2007 at 07:07:37AM +0100, Jean-Baptiste Kempf wrote: > Just a quick question, > Why are there sometime tabs in the source code, and sometimes not ? First I thought you were talking 'in general' - and then I'd say everyone has their own habits and they all suck equally. > Is there any policy about that ? In liba52 and libmpeg2 code indentations are equivalent to 4 spaces each, tabs align to the next 8-spaces multiple, and tabs used whenever possible (i.e. one tab is used rather than 8 spaces). This policy used to be enforced - now the policy itself is all rather arbitrary, I admit. > Can we remove those ? Why ? -- Michel Lespinasse |
From: Jean-Baptiste K. <jb...@vi...> - 2007-11-21 06:07:50
|
Hello *, Just a quick question, Why are there sometime tabs in the source code, and sometimes not ? Is there any policy about that ? Can we remove those ? Best Regards, -- Jean-Baptiste Kempf http://www.jbkempf.com/ |
From: Jean-Baptiste K. <jb...@vi...> - 2007-11-21 05:37:24
|
Hello, For those who don't know, you can checkout the svn with any Subversion software at: svn://svn.videolan.org/liba52/ and svn://svn.videolan.org/liba52/trunk for the trunk. If you have any trivial patch, please send them to this list, and I'll try to commit them. If you have big patches, I may not be the one able to commit, but we can figure how to do it. I have commited the -mtune patch that I had found on the mailing list... Best regards, Jean-Baptiste Kempf |
From: Elio B. <eli...@ya...> - 2007-05-28 20:50:28
|
Hi, this patch for svn-r598 replaces my old patch liba52-svn-r598_print-stream-infos.diff, aside the feature for printing stream infos, now the mono issue was fixed. Apply with: cd <liba52 dir> diff -i liba52-svn-r598_infos+mono.patch -p1 I saw very soon the module libao/audio_out_wav.c was written to support the creation of 'classic' wav files with one or two channels, but the single channel solution was never reached. The source allows for three output modes: wav, wavdolby and wav6. The last case (wav6) managed the wav creation the right way, the bug raised when choosing wav and wavdolby output, they were forced to always create a wav file with 2 channels. I added a simple check to workaround when the source stream has a single channel. That's all. I did a fast test session and all went ok, now more brave testers can check this patch too :-) Thank you, Elio |
From: Johan A L H. <ja...@ke...> - 2007-05-23 12:19:50
|
I was also wondering about single channel output, it seems like either the downmix.c - static uint8_t table may needs to be adjusted to allow it, or a special Case needs to be written for it Johan Elio Blanca wrote: > This is my patch against svn version r598, it adds the show_info > feature, to print on stdout full info about the decoded stream: channel > config, sampling rate and actual bitrate. > This feature let a bug raise: when i decode a single channel (mono) ac3 > stream i wish a52dec to create a single channel wav file, but it creates > a stereo file anyway! Is this done on purpose? (if not i think the > required fix may be small... i think) > Elio > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Liba52-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/liba52-devel > |
From: Elio B. <eli...@ya...> - 2007-05-23 12:14:44
|
ooops, forgot to attach the file :-) Elio |
From: Elio B. <eli...@ya...> - 2007-05-23 12:08:50
|
This is my patch against svn version r598, it adds the show_info feature, to print on stdout full info about the decoded stream: channel config, sampling rate and actual bitrate. This feature let a bug raise: when i decode a single channel (mono) ac3 stream i wish a52dec to create a single channel wav file, but it creates a stereo file anyway! Is this done on purpose? (if not i think the required fix may be small... i think) Elio |
From: Elio B. <eli...@ya...> - 2007-05-23 09:43:24
|
KouPengtao ha scritto: > My code version is a52dec-0.7.4. Just checkd the latest svn version (r598) and the bug is still there, none of the three ac3 samples were played. Read the page http://wiki.videolan.org/Subversion to checkout the latest version and how to send a patch. Elio |
From: KouPengtao <pen...@ho...> - 2007-05-23 04:05:18
|
My code version is a52dec-0.7.4. > From: lib...@li...> Subject: Liba52-devel Digest, Vol 2, Issue 5> To: lib...@li...> Date: Tue, 22 May 2007 20:06:38 -0700> > Send Liba52-devel mailing list submissions to> lib...@li...> > To subscribe or unsubscribe via the World Wide Web, visit> https://lists.sourceforge.net/lists/listinfo/liba52-devel> or, via email, send a message with subject or body 'help' to> lib...@li...> > You can reach the person managing the list at> lib...@li...> > When replying, please edit your Subject line so it is more specific> than "Re: Contents of Liba52-devel digest..."> > > Today's Topics:> > 1. Some question about the liba52? (KouPengtao)> > > ----------------------------------------------------------------------> > Message: 1> Date: Wed, 23 May 2007 11:05:09 +0800> From: KouPengtao <pen...@ho...>> Subject: [a52-dev] Some question about the liba52?> To: <lib...@li...>> Cc: pen...@ho...> Message-ID: <BAY...@ph...l>> Content-Type: text/plain; charset="utf-8"> > > Hi: Recently I worked on the AC3 decoder and found some problems in liba52.I use ba16.ac3(the attachment) for testing and the code will die for exp unpacking error(exponent>24), Compare with Dolby ref code, I found liba52 read less bit(18 bits) from ac3 bit stream in the 1st block 1st frame.So in the 2nd block, liba52 read wrong stream with the wrong file pointer.Then I found the liba52 didn't read enough bit stream in 'coeff_get_coupling()'.At last, it seems the problem is caused by wrong 'state->cpl_expbap.bap' calculation.Plus, ba18.ac3 and blksz1.ac3 cannot be decoded too.> Can you help me to check it? Thanks! Kevin Kou> _________________________________________________________________> ?? Live.com ???????????????????> http://www.live.com/getstarted.aspx> -------------- next part --------------> An HTML attachment was scrubbed...> -------------- next part --------------> A non-text attachment was scrubbed...> Name: ba16.ac3> Type: application/octet-stream> Size: 13374 bytes> Desc: not available> -------------- next part --------------> A non-text attachment was scrubbed...> Name: ba18.ac3> Type: application/octet-stream> Size: 5850 bytes> Desc: not available> -------------- next part --------------> A non-text attachment was scrubbed...> Name: blksz1.ac3> Type: application/octet-stream> Size: 6686 bytes> Desc: not available> > ------------------------------> > -------------------------------------------------------------------------> This SF.net email is sponsored by DB2 Express> Download DB2 Express C - the FREE version of DB2 express and take> control of your XML. No limits. Just data. Click to get it now.> http://sourceforge.net/powerbar/db2/> > ------------------------------> > _______________________________________________> Liba52-devel mailing list> Lib...@li...> https://lists.sourceforge.net/lists/listinfo/liba52-devel> > > End of Liba52-devel Digest, Vol 2, Issue 5> ****************************************** _________________________________________________________________ 中国十大热门旅游景点 http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE |
From: =A=RGOS <ar...@gm...> - 2007-05-04 19:59:13
|
Re, The more updated source code can be checkout on * svn://svn.videolan.org/liba52* (view this wiki for more information http://wiki.videolan.org/Subversion). bye, 2007/5/4, Elio Blanca <eli...@ya...>: > > David Liontooth ha scritto: > > Thanks for the code, Elio and Argos -- > > > > So you've tried e-mailing the project admins and not heard back? > > > > http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-announce > > shows no announcements since 2002-07-29. > > I'm not able to access the e-mail archives for checkins and devel -- is > > there a working archive somewhere? > > > The checkins and devel mailing lists were working until a couple days > ago, when i just saw some activity (svn commit) in the list checkins. > Think we are facing a temporary maintain work by the sourceforge team. > > > Argos, what do you mean you've found a 0.7.5-cvs version from the > > sourceforge cvs? Where is it? > > > You can get the cvs code from both an enhanced explorer-like view, and > by command line (launching 'cvs -options -options and so on), you can > find very detailed infos on the page "CVS" accessible in the 'CODE' menu > on sourceforge pages. Anyway, if you're not a registered admin/developer > for a given project, you just get read-only permissions on the cvs. > > Aside from the sourceforge pages, i think the project is still > maintained because of the svn commit logs in the checkins list. Further, > i know the videolan.org guys are using this code base to develop their > libdca (formerly libdts), this is the reason i asked for a svn access > either from sourceforge or from videolan.org. > Elio > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Liba52-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/liba52-devel > |
From: Elio B. <eli...@ya...> - 2007-05-04 11:55:17
|
David Liontooth ha scritto: > Thanks for the code, Elio and Argos -- > > So you've tried e-mailing the project admins and not heard back? > > http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-announce > shows no announcements since 2002-07-29. > I'm not able to access the e-mail archives for checkins and devel -- is > there a working archive somewhere? > The checkins and devel mailing lists were working until a couple days ago, when i just saw some activity (svn commit) in the list checkins. Think we are facing a temporary maintain work by the sourceforge team. > Argos, what do you mean you've found a 0.7.5-cvs version from the > sourceforge cvs? Where is it? > You can get the cvs code from both an enhanced explorer-like view, and by command line (launching 'cvs -options -options and so on), you can find very detailed infos on the page "CVS" accessible in the 'CODE' menu on sourceforge pages. Anyway, if you're not a registered admin/developer for a given project, you just get read-only permissions on the cvs. Aside from the sourceforge pages, i think the project is still maintained because of the svn commit logs in the checkins list. Further, i know the videolan.org guys are using this code base to develop their libdca (formerly libdts), this is the reason i asked for a svn access either from sourceforge or from videolan.org. Elio |
From: =A=RGOS <ar...@gm...> - 2007-05-04 06:42:38
|
Hello, Thanks for your respond, I have send it on the liba52-devel mailing list. I found the 0.7.5-cvs source code when I get this on the sourceforge CVS but I'm in anonymous login and I can't access for commit my change. Apparently a svn server exist and it maintain more frequently (2007-02-22 for the last time) but I don't find this. Sam Hocevar is a french people and a new Debian Leader, but I think he are a lot of jobs. Bye bye. 2007/5/4, David Liontooth <lio...@co...>: > > > Thanks for the code, Elio and Argos -- > > So you've tried e-mailing the project admins and not heard back? > > http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-announce > shows no announcements since 2002-07-29. > I'm not able to access the e-mail archives for checkins and devel -- is > there a working archive somewhere? > > http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-checkins > http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-devel > > Argos, what do you mean you've found a 0.7.5-cvs version from the > sourceforge cvs? Where is it? > Have you merged your patch so that it's now on sourceforge, or do you > maintain your own tree? > > BTW it looks like this project is run by French people. > > Would one of you be willing to take over and maintain the project? One > of the current maintainers is Sam Hocevar, the Debian leader; he should > be able to give you guys write access to the CVS, or just give you admin > rights. It would be great to have a new release with the new code. A lot > of projects use this code. > > Cheers, > Dave > > > > > =A=RGOS wrote: > > Hello, > > > > This project is apparently abandoned. > > I proposed an improvement which adds the possibility to save into a > > wave file and I did not have a return of the author. > > I have find a 0.7.5-cvs version from the sourceforge cvs (another > > project it based on the cvs tree). > > My modification work correctly. > > > > Can you put your modification to the tree and resend it on this > > mailing-list please ? > > > > Sorry for my little english, i'm french people. > > Bye, > > > > 2007/5/2, Elio Blanca <eli...@ya... <mailto:eli...@ya... > >>: > > > > Hi, i just discovered this mailing list, i'm glad this project is > > still > > alive. > > > > I's been several years now i'm using a52dec version 0.7.4 since no > new > > versions were released and in the meanwhile i created a simple > > patch for > > the configure script and for the decoder frontend to get some new > > feature. I attach it and i'm going to explain: > > * the configure script was just updated to use the -mtune flag for > the > > compiler (so it stops complaining!) > > * the a52dec received more fixes: > > o first of all, it now prints out details about the decoded > > stream. I > > take some flag from the first frame decoded to get these infos. > > o fixed some return character (decoding rate lines). > > o fixed (some way) frame counter > > o added the option -h for print help > > o forced the program to print help ONLY if the user calls it > > with the > > option -h > > o minor fixes > > Some of the fixes required a bit of testing but i feel so > comfortable > > with comman line... > > I know the project is now far away from version 0.7.4 (by the way, > how > > can i get the latest source code? cvs? svn? from sourceforge? from > > videolan.org? <http://videolan.org?>) but i send you this patch > > and, if there is something > > useful, well, it can be made available to all users. > > Thank you, > > Elio > > > > > > diff -urN a52dec-0.7.4/configure a52dec-0.7.4.t2/configure > > --- a52dec-0.7.4/configure Sun Jul 28 03:50:42 2002 > > +++ a52dec-0.7.4.t2 /configure Thu Sep 28 13:55:31 2006 > > @@ -2858,11 +2858,11 @@ > > case "$host" in > > i?86-* | k?-*) > > case "$host" in > > - i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";; > > - i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";; > > - i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";; > > - i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";; > > - k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";; > > + i386-*) OPT_CFLAGS="$CFLAGS -mtune=i386";; > > + i486-*) OPT_CFLAGS="$CFLAGS -mtune=i486";; > > + i586-*) OPT_CFLAGS="$CFLAGS -mtune=pentium";; > > + i686-*) OPT_CFLAGS="$CFLAGS -mtune=pentiumpro";; > > + k6-*) OPT_CFLAGS="$CFLAGS -mtune=k6";; > > esac > > echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS > > flags" >&5 > > echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... > > $ECHO_C" >&6 > > diff -urN a52dec-0.7.4/src/a52dec.c a52dec-0.7.4.t2/src/a52dec.c > > --- a52dec-0.7.4/src/a52dec.c Fri Jun 28 03:11:49 2002 > > +++ a52dec-0.7.4.t2/src/a52dec.c Thu Sep 28 16:35:44 2006 > > @@ -53,6 +53,7 @@ > > static ao_open_t * output_open = NULL; > > static ao_instance_t * output; > > static a52_state_t * state; > > +int saltati=0; > > > > #ifdef HAVE_GETTIMEOFDAY > > > > @@ -87,6 +88,8 @@ > > total_elapsed = (tv_end.tv_sec - tv_start.tv_sec) * 100 + > > (tv_end.tv_usec - tv_start.tv_usec) / 10000; > > > > + frame_counter++; > > + > > if (final) { > > if (total_elapsed) > > tfps = frame_counter * 100.0 / total_elapsed; > > @@ -99,8 +102,6 @@ > > return; > > } > > > > - frame_counter++; > > - > > if (elapsed < 50) /* only display every 0.50 seconds */ > > return; > > > > @@ -111,7 +112,7 @@ > > tfps = frame_counter * 100.0 / total_elapsed; > > > > fprintf (stderr, "%d frames in %.2f sec (%.2f fps), " > > - "%d last %.2f sec (%.2f fps)\033[K\r", frame_counter, > > + "%d last %.2f sec (%.2f fps)\r", frame_counter, > > total_elapsed / 100.0, tfps, frames, elapsed / 100.0, > > fps); > > > > last_count = frame_counter; > > @@ -139,6 +140,7 @@ > > "\t-r\tdisable dynamic range compression\n" > > "\t-a\tdisable level adjustment based on output mode\n" > > "\t-g\tadd specified gain in decibels, -96.0 to > +96.0\n" > > + "\t-h\tshow this help screen\n" > > "\t-o\taudio output mode\n", argv[0]); > > > > drivers = ao_drivers (); > > @@ -156,15 +158,17 @@ > > char * s; > > > > drivers = ao_drivers (); > > - while ((c = getopt (argc, argv, "s::t:crag:o:")) != -1) > > + opterr=0; > > + while ((c = getopt (argc, argv, "s::t:crag:ho:")) != -1) > > switch (c) { > > case 'o': > > for (i = 0; drivers[i].name != NULL; i++) > > if (strcmp (drivers[i].name, optarg) == 0) > > output_open = drivers[i].open; > > if (output_open == NULL) { > > - fprintf (stderr, "Invalid video driver: %s\n", > > optarg); > > - print_usage (argv); > > + fprintf (stderr, "Invalid audio driver: %s\n", > > optarg); > > + exit (1); > > + //print_usage (argv); > > } > > break; > > > > @@ -176,7 +180,8 @@ > > demux_track += 0x80; > > if ((demux_track < 0x80) || (demux_track > 0x87) > > || (*s)) { > > fprintf (stderr, "Invalid track number: %s\n", > > optarg); > > - print_usage (argv); > > + exit (1); > > + //print_usage (argv); > > } > > } > > break; > > @@ -185,7 +190,8 @@ > > demux_pid = strtol (optarg, &s, 16); > > if ((demux_pid < 0x10) || (demux_pid > 0x1ffe) || (*s)) > { > > fprintf (stderr, "Invalid pid: %s\n", optarg); > > - print_usage (argv); > > + exit (1); > > + //print_usage (argv); > > } > > break; > > > > @@ -205,13 +211,20 @@ > > gain = strtod (optarg, &s); > > if ((gain < -96) || (gain > 96) || (*s)) { > > fprintf (stderr, "Invalid gain: %s\n", optarg); > > - print_usage (argv); > > + exit (1); > > + //print_usage (argv); > > } > > gain = pow (2, gain / 6); > > break; > > > > - default: > > + case 'h': > > print_usage (argv); > > + break; > > + > > + default: > > + if (strchr("tgo",optopt)==NULL) fprintf(stderr, "-%c: > > invalid option, use -h for help.\n",optopt); > > + else fprintf(stderr, "-%c: missing argument, use > > -h for help.\n",optopt); > > + exit(1); > > } > > > > /* -o not specified, use a default driver */ > > @@ -229,6 +242,25 @@ > > in_file = stdin; > > } > > > > +void show_info (int Mio_flags, int Mio_sample_rate, int > > Mio_bit_rate) > > +{ > > + int Ci,Sub=0; > > + char s[6]=""; > > + if (Mio_flags&A52_LFE) Sub=1; > > + switch (Mio_flags&A52_CHANNEL_MASK) > > + { > > + case A52_MONO:{Ci=1; break;} > > + case A52_STEREO:{Ci=2; break;} > > + case A52_3F:{Ci=3; break;} > > + case A52_2F1R:{Ci=3; break;} > > + case A52_3F1R:{Ci=4; break;} > > + case A52_2F2R:{Ci=4; break;} > > + case A52_3F2R:{Ci=5; break;} > > + case A52_DOLBY:{Ci=2; strcpy(s,"Dolby "); break;} > > + default: Ci=-1;} > > + fprintf(stderr, "Stream info: %s%d.%d channels at %d Hz, rate > > %d kbps.\n",s,Ci,Sub,Mio_sample_rate,Mio_bit_rate/1000); > > +} > > + > > void a52_decode_data (uint8_t * start, uint8_t * end) > > { > > static uint8_t buf[3840]; > > @@ -243,8 +275,9 @@ > > > > static int sample_rate; > > static int flags; > > + static uint8_t primo=1; > > int bit_rate; > > - int len; > > + int len, flags_tampone; > > > > while (1) { > > len = end - start; > > @@ -261,16 +294,20 @@ > > > > length = a52_syncinfo (buf, &flags, &sample_rate, > > &bit_rate); > > if (!length) { > > - fprintf (stderr, "skip\n"); > > - for (bufptr = buf; bufptr < buf + 6; bufptr++) > > + if (!saltati) fprintf (stderr, > "Skipping..."); > > + saltati+=7; > > + for (bufptr = buf; bufptr < buf + 6; > > bufptr++) > > bufptr[0] = bufptr[1]; > > - continue; > > + continue; > > } > > + > > bufpos = buf + length; > > - } else { > > + } else { > > sample_t level, bias; > > int i; > > > > + flags_tampone=flags; > > + > > if (ao_setup (output, sample_rate, &flags, &level, > > &bias)) > > goto error; > > if (!disable_adjust) > > @@ -288,6 +325,18 @@ > > } > > bufptr = buf; > > bufpos = buf + 7; > > + > > + // E' andata bene, il pacchetto sembra corretto > > + if (saltati) { > > + fprintf (stderr," %d bytes (%d > > bits).\n",saltati,saltati*8); > > + saltati=0; > > + } > > + // Do le info una sola volta, appena trovo un > > pacchetto corretto > > + if (primo) { > > + show_info (flags_tampone, sample_rate, > > bit_rate); > > + primo=0; > > + } > > + > > print_fps (0); > > continue; > > error: > > @@ -572,8 +621,7 @@ > > setmode (fileno (stdout), O_BINARY); > > #endif > > > > - fprintf (stderr, PACKAGE"-"VERSION > > - " - by Michel Lespinasse < wa...@zo... > > <mailto:wa...@zo...>> and Aaron Holtzman\n"); > > + fprintf (stderr, "a52dec-0.7.4.t2 - by Michel Lespinasse > > <wa...@zo... <mailto:wa...@zo...>> and Aaron > > Holtzman\nPatched by topolinik.\n"); > > > > handle_args (argc, argv); > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Liba52-devel mailing list > > Lib...@li... > > <mailto:Lib...@li...> > > https://lists.sourceforge.net/lists/listinfo/liba52-devel > > <https://lists.sourceforge.net/lists/listinfo/liba52-devel> > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Liba52-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/liba52-devel > > > > |
From: David L. <lio...@co...> - 2007-05-03 22:03:29
|
Thanks for the code, Elio and Argos -- So you've tried e-mailing the project admins and not heard back? http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-announce shows no announcements since 2002-07-29. I'm not able to access the e-mail archives for checkins and devel -- is there a working archive somewhere? http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-checkins http://sourceforge.net/mailarchive/forum.php?forum_name=liba52-devel Argos, what do you mean you've found a 0.7.5-cvs version from the sourceforge cvs? Where is it? Have you merged your patch so that it's now on sourceforge, or do you maintain your own tree? BTW it looks like this project is run by French people. Would one of you be willing to take over and maintain the project? One of the current maintainers is Sam Hocevar, the Debian leader; he should be able to give you guys write access to the CVS, or just give you admin rights. It would be great to have a new release with the new code. A lot of projects use this code. Cheers, Dave =A=RGOS wrote: > Hello, > > This project is apparently abandoned. > I proposed an improvement which adds the possibility to save into a > wave file and I did not have a return of the author. > I have find a 0.7.5-cvs version from the sourceforge cvs (another > project it based on the cvs tree). > My modification work correctly. > > Can you put your modification to the tree and resend it on this > mailing-list please ? > > Sorry for my little english, i'm french people. > Bye, > > 2007/5/2, Elio Blanca <eli...@ya... <mailto:eli...@ya...>>: > > Hi, i just discovered this mailing list, i'm glad this project is > still > alive. > > I's been several years now i'm using a52dec version 0.7.4 since no new > versions were released and in the meanwhile i created a simple > patch for > the configure script and for the decoder frontend to get some new > feature. I attach it and i'm going to explain: > * the configure script was just updated to use the -mtune flag for the > compiler (so it stops complaining!) > * the a52dec received more fixes: > o first of all, it now prints out details about the decoded > stream. I > take some flag from the first frame decoded to get these infos. > o fixed some return character (decoding rate lines). > o fixed (some way) frame counter > o added the option -h for print help > o forced the program to print help ONLY if the user calls it > with the > option -h > o minor fixes > Some of the fixes required a bit of testing but i feel so comfortable > with comman line... > I know the project is now far away from version 0.7.4 (by the way, how > can i get the latest source code? cvs? svn? from sourceforge? from > videolan.org? <http://videolan.org?>) but i send you this patch > and, if there is something > useful, well, it can be made available to all users. > Thank you, > Elio > > > diff -urN a52dec-0.7.4/configure a52dec-0.7.4.t2/configure > --- a52dec-0.7.4/configure Sun Jul 28 03:50:42 2002 > +++ a52dec-0.7.4.t2 /configure Thu Sep 28 13:55:31 2006 > @@ -2858,11 +2858,11 @@ > case "$host" in > i?86-* | k?-*) > case "$host" in > - i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";; > - i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";; > - i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";; > - i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";; > - k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";; > + i386-*) OPT_CFLAGS="$CFLAGS -mtune=i386";; > + i486-*) OPT_CFLAGS="$CFLAGS -mtune=i486";; > + i586-*) OPT_CFLAGS="$CFLAGS -mtune=pentium";; > + i686-*) OPT_CFLAGS="$CFLAGS -mtune=pentiumpro";; > + k6-*) OPT_CFLAGS="$CFLAGS -mtune=k6";; > esac > echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS > flags" >&5 > echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... > $ECHO_C" >&6 > diff -urN a52dec-0.7.4/src/a52dec.c a52dec-0.7.4.t2/src/a52dec.c > --- a52dec-0.7.4/src/a52dec.c Fri Jun 28 03:11:49 2002 > +++ a52dec-0.7.4.t2/src/a52dec.c Thu Sep 28 16:35:44 2006 > @@ -53,6 +53,7 @@ > static ao_open_t * output_open = NULL; > static ao_instance_t * output; > static a52_state_t * state; > +int saltati=0; > > #ifdef HAVE_GETTIMEOFDAY > > @@ -87,6 +88,8 @@ > total_elapsed = (tv_end.tv_sec - tv_start.tv_sec) * 100 + > (tv_end.tv_usec - tv_start.tv_usec) / 10000; > > + frame_counter++; > + > if (final) { > if (total_elapsed) > tfps = frame_counter * 100.0 / total_elapsed; > @@ -99,8 +102,6 @@ > return; > } > > - frame_counter++; > - > if (elapsed < 50) /* only display every 0.50 seconds */ > return; > > @@ -111,7 +112,7 @@ > tfps = frame_counter * 100.0 / total_elapsed; > > fprintf (stderr, "%d frames in %.2f sec (%.2f fps), " > - "%d last %.2f sec (%.2f fps)\033[K\r", frame_counter, > + "%d last %.2f sec (%.2f fps)\r", frame_counter, > total_elapsed / 100.0, tfps, frames, elapsed / 100.0, > fps); > > last_count = frame_counter; > @@ -139,6 +140,7 @@ > "\t-r\tdisable dynamic range compression\n" > "\t-a\tdisable level adjustment based on output mode\n" > "\t-g\tadd specified gain in decibels, -96.0 to +96.0\n" > + "\t-h\tshow this help screen\n" > "\t-o\taudio output mode\n", argv[0]); > > drivers = ao_drivers (); > @@ -156,15 +158,17 @@ > char * s; > > drivers = ao_drivers (); > - while ((c = getopt (argc, argv, "s::t:crag:o:")) != -1) > + opterr=0; > + while ((c = getopt (argc, argv, "s::t:crag:ho:")) != -1) > switch (c) { > case 'o': > for (i = 0; drivers[i].name != NULL; i++) > if (strcmp (drivers[i].name, optarg) == 0) > output_open = drivers[i].open; > if (output_open == NULL) { > - fprintf (stderr, "Invalid video driver: %s\n", > optarg); > - print_usage (argv); > + fprintf (stderr, "Invalid audio driver: %s\n", > optarg); > + exit (1); > + //print_usage (argv); > } > break; > > @@ -176,7 +180,8 @@ > demux_track += 0x80; > if ((demux_track < 0x80) || (demux_track > 0x87) > || (*s)) { > fprintf (stderr, "Invalid track number: %s\n", > optarg); > - print_usage (argv); > + exit (1); > + //print_usage (argv); > } > } > break; > @@ -185,7 +190,8 @@ > demux_pid = strtol (optarg, &s, 16); > if ((demux_pid < 0x10) || (demux_pid > 0x1ffe) || (*s)) { > fprintf (stderr, "Invalid pid: %s\n", optarg); > - print_usage (argv); > + exit (1); > + //print_usage (argv); > } > break; > > @@ -205,13 +211,20 @@ > gain = strtod (optarg, &s); > if ((gain < -96) || (gain > 96) || (*s)) { > fprintf (stderr, "Invalid gain: %s\n", optarg); > - print_usage (argv); > + exit (1); > + //print_usage (argv); > } > gain = pow (2, gain / 6); > break; > > - default: > + case 'h': > print_usage (argv); > + break; > + > + default: > + if (strchr("tgo",optopt)==NULL) fprintf(stderr, "-%c: > invalid option, use -h for help.\n",optopt); > + else fprintf(stderr, "-%c: missing argument, use > -h for help.\n",optopt); > + exit(1); > } > > /* -o not specified, use a default driver */ > @@ -229,6 +242,25 @@ > in_file = stdin; > } > > +void show_info (int Mio_flags, int Mio_sample_rate, int > Mio_bit_rate) > +{ > + int Ci,Sub=0; > + char s[6]=""; > + if (Mio_flags&A52_LFE) Sub=1; > + switch (Mio_flags&A52_CHANNEL_MASK) > + { > + case A52_MONO:{Ci=1; break;} > + case A52_STEREO:{Ci=2; break;} > + case A52_3F:{Ci=3; break;} > + case A52_2F1R:{Ci=3; break;} > + case A52_3F1R:{Ci=4; break;} > + case A52_2F2R:{Ci=4; break;} > + case A52_3F2R:{Ci=5; break;} > + case A52_DOLBY:{Ci=2; strcpy(s,"Dolby "); break;} > + default: Ci=-1;} > + fprintf(stderr, "Stream info: %s%d.%d channels at %d Hz, rate > %d kbps.\n",s,Ci,Sub,Mio_sample_rate,Mio_bit_rate/1000); > +} > + > void a52_decode_data (uint8_t * start, uint8_t * end) > { > static uint8_t buf[3840]; > @@ -243,8 +275,9 @@ > > static int sample_rate; > static int flags; > + static uint8_t primo=1; > int bit_rate; > - int len; > + int len, flags_tampone; > > while (1) { > len = end - start; > @@ -261,16 +294,20 @@ > > length = a52_syncinfo (buf, &flags, &sample_rate, > &bit_rate); > if (!length) { > - fprintf (stderr, "skip\n"); > - for (bufptr = buf; bufptr < buf + 6; bufptr++) > + if (!saltati) fprintf (stderr, "Skipping..."); > + saltati+=7; > + for (bufptr = buf; bufptr < buf + 6; > bufptr++) > bufptr[0] = bufptr[1]; > - continue; > + continue; > } > + > bufpos = buf + length; > - } else { > + } else { > sample_t level, bias; > int i; > > + flags_tampone=flags; > + > if (ao_setup (output, sample_rate, &flags, &level, > &bias)) > goto error; > if (!disable_adjust) > @@ -288,6 +325,18 @@ > } > bufptr = buf; > bufpos = buf + 7; > + > + // E' andata bene, il pacchetto sembra corretto > + if (saltati) { > + fprintf (stderr," %d bytes (%d > bits).\n",saltati,saltati*8); > + saltati=0; > + } > + // Do le info una sola volta, appena trovo un > pacchetto corretto > + if (primo) { > + show_info (flags_tampone, sample_rate, > bit_rate); > + primo=0; > + } > + > print_fps (0); > continue; > error: > @@ -572,8 +621,7 @@ > setmode (fileno (stdout), O_BINARY); > #endif > > - fprintf (stderr, PACKAGE"-"VERSION > - " - by Michel Lespinasse < wa...@zo... > <mailto:wa...@zo...>> and Aaron Holtzman\n"); > + fprintf (stderr, "a52dec-0.7.4.t2 - by Michel Lespinasse > <wa...@zo... <mailto:wa...@zo...>> and Aaron > Holtzman\nPatched by topolinik.\n"); > > handle_args (argc, argv); > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Liba52-devel mailing list > Lib...@li... > <mailto:Lib...@li...> > https://lists.sourceforge.net/lists/listinfo/liba52-devel > <https://lists.sourceforge.net/lists/listinfo/liba52-devel> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > Liba52-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/liba52-devel > |
From: =A=RGOS <ar...@gm...> - 2007-05-03 17:24:29
|
Hello, This project is apparently abandoned. I proposed an improvement which adds the possibility to save into a wave file and I did not have a return of the author. I have find a 0.7.5-cvs version from the sourceforge cvs (another project it based on the cvs tree). My modification work correctly. Can you put your modification to the tree and resend it on this mailing-list please ? Sorry for my little english, i'm french people. Bye, 2007/5/2, Elio Blanca <eli...@ya...>: > > Hi, i just discovered this mailing list, i'm glad this project is still > alive. > > I's been several years now i'm using a52dec version 0.7.4 since no new > versions were released and in the meanwhile i created a simple patch for > the configure script and for the decoder frontend to get some new > feature. I attach it and i'm going to explain: > * the configure script was just updated to use the -mtune flag for the > compiler (so it stops complaining!) > * the a52dec received more fixes: > o first of all, it now prints out details about the decoded stream. I > take some flag from the first frame decoded to get these infos. > o fixed some return character (decoding rate lines). > o fixed (some way) frame counter > o added the option -h for print help > o forced the program to print help ONLY if the user calls it with the > option -h > o minor fixes > Some of the fixes required a bit of testing but i feel so comfortable > with comman line... > I know the project is now far away from version 0.7.4 (by the way, how > can i get the latest source code? cvs? svn? from sourceforge? from > videolan.org?) but i send you this patch and, if there is something > useful, well, it can be made available to all users. > Thank you, > Elio > > > diff -urN a52dec-0.7.4/configure a52dec-0.7.4.t2/configure > --- a52dec-0.7.4/configure Sun Jul 28 03:50:42 2002 > +++ a52dec-0.7.4.t2/configure Thu Sep 28 13:55:31 2006 > @@ -2858,11 +2858,11 @@ > case "$host" in > i?86-* | k?-*) > case "$host" in > - i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";; > - i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";; > - i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";; > - i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";; > - k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";; > + i386-*) OPT_CFLAGS="$CFLAGS -mtune=i386";; > + i486-*) OPT_CFLAGS="$CFLAGS -mtune=i486";; > + i586-*) OPT_CFLAGS="$CFLAGS -mtune=pentium";; > + i686-*) OPT_CFLAGS="$CFLAGS -mtune=pentiumpro";; > + k6-*) OPT_CFLAGS="$CFLAGS -mtune=k6";; > esac > echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" > >&5 > echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 > diff -urN a52dec-0.7.4/src/a52dec.c a52dec-0.7.4.t2/src/a52dec.c > --- a52dec-0.7.4/src/a52dec.c Fri Jun 28 03:11:49 2002 > +++ a52dec-0.7.4.t2/src/a52dec.c Thu Sep 28 16:35:44 2006 > @@ -53,6 +53,7 @@ > static ao_open_t * output_open = NULL; > static ao_instance_t * output; > static a52_state_t * state; > +int saltati=0; > > #ifdef HAVE_GETTIMEOFDAY > > @@ -87,6 +88,8 @@ > total_elapsed = (tv_end.tv_sec - tv_start.tv_sec) * 100 + > (tv_end.tv_usec - tv_start.tv_usec) / 10000; > > + frame_counter++; > + > if (final) { > if (total_elapsed) > tfps = frame_counter * 100.0 / total_elapsed; > @@ -99,8 +102,6 @@ > return; > } > > - frame_counter++; > - > if (elapsed < 50) /* only display every 0.50 seconds */ > return; > > @@ -111,7 +112,7 @@ > tfps = frame_counter * 100.0 / total_elapsed; > > fprintf (stderr, "%d frames in %.2f sec (%.2f fps), " > - "%d last %.2f sec (%.2f fps)\033[K\r", frame_counter, > + "%d last %.2f sec (%.2f fps)\r", frame_counter, > total_elapsed / 100.0, tfps, frames, elapsed / 100.0, fps); > > last_count = frame_counter; > @@ -139,6 +140,7 @@ > "\t-r\tdisable dynamic range compression\n" > "\t-a\tdisable level adjustment based on output mode\n" > "\t-g\tadd specified gain in decibels, -96.0 to +96.0\n" > + "\t-h\tshow this help screen\n" > "\t-o\taudio output mode\n", argv[0]); > > drivers = ao_drivers (); > @@ -156,15 +158,17 @@ > char * s; > > drivers = ao_drivers (); > - while ((c = getopt (argc, argv, "s::t:crag:o:")) != -1) > + opterr=0; > + while ((c = getopt (argc, argv, "s::t:crag:ho:")) != -1) > switch (c) { > case 'o': > for (i = 0; drivers[i].name != NULL; i++) > if (strcmp (drivers[i].name, optarg) == 0) > output_open = drivers[i].open; > if (output_open == NULL) { > - fprintf (stderr, "Invalid video driver: %s\n", optarg); > - print_usage (argv); > + fprintf (stderr, "Invalid audio driver: %s\n", optarg); > + exit (1); > + //print_usage (argv); > } > break; > > @@ -176,7 +180,8 @@ > demux_track += 0x80; > if ((demux_track < 0x80) || (demux_track > 0x87) || (*s)) > { > fprintf (stderr, "Invalid track number: %s\n", > optarg); > - print_usage (argv); > + exit (1); > + //print_usage (argv); > } > } > break; > @@ -185,7 +190,8 @@ > demux_pid = strtol (optarg, &s, 16); > if ((demux_pid < 0x10) || (demux_pid > 0x1ffe) || (*s)) { > fprintf (stderr, "Invalid pid: %s\n", optarg); > - print_usage (argv); > + exit (1); > + //print_usage (argv); > } > break; > > @@ -205,13 +211,20 @@ > gain = strtod (optarg, &s); > if ((gain < -96) || (gain > 96) || (*s)) { > fprintf (stderr, "Invalid gain: %s\n", optarg); > - print_usage (argv); > + exit (1); > + //print_usage (argv); > } > gain = pow (2, gain / 6); > break; > > - default: > + case 'h': > print_usage (argv); > + break; > + > + default: > + if (strchr("tgo",optopt)==NULL) fprintf(stderr, "-%c: invalid > option, use -h for help.\n",optopt); > + else fprintf(stderr, "-%c: missing argument, use -h for > help.\n",optopt); > + exit(1); > } > > /* -o not specified, use a default driver */ > @@ -229,6 +242,25 @@ > in_file = stdin; > } > > +void show_info (int Mio_flags, int Mio_sample_rate, int Mio_bit_rate) > +{ > + int Ci,Sub=0; > + char s[6]=""; > + if (Mio_flags&A52_LFE) Sub=1; > + switch (Mio_flags&A52_CHANNEL_MASK) > + { > + case A52_MONO:{Ci=1; break;} > + case A52_STEREO:{Ci=2; break;} > + case A52_3F:{Ci=3; break;} > + case A52_2F1R:{Ci=3; break;} > + case A52_3F1R:{Ci=4; break;} > + case A52_2F2R:{Ci=4; break;} > + case A52_3F2R:{Ci=5; break;} > + case A52_DOLBY:{Ci=2; strcpy(s,"Dolby "); break;} > + default: Ci=-1;} > + fprintf(stderr, "Stream info: %s%d.%d channels at %d Hz, rate %d > kbps.\n",s,Ci,Sub,Mio_sample_rate,Mio_bit_rate/1000); > +} > + > void a52_decode_data (uint8_t * start, uint8_t * end) > { > static uint8_t buf[3840]; > @@ -243,8 +275,9 @@ > > static int sample_rate; > static int flags; > + static uint8_t primo=1; > int bit_rate; > - int len; > + int len, flags_tampone; > > while (1) { > len = end - start; > @@ -261,16 +294,20 @@ > > length = a52_syncinfo (buf, &flags, &sample_rate, > &bit_rate); > if (!length) { > - fprintf (stderr, "skip\n"); > - for (bufptr = buf; bufptr < buf + 6; bufptr++) > + if (!saltati) fprintf (stderr, "Skipping..."); > + saltati+=7; > + for (bufptr = buf; bufptr < buf + 6; bufptr++) > bufptr[0] = bufptr[1]; > - continue; > + continue; > } > + > bufpos = buf + length; > - } else { > + } else { > sample_t level, bias; > int i; > > + flags_tampone=flags; > + > if (ao_setup (output, sample_rate, &flags, &level, &bias)) > goto error; > if (!disable_adjust) > @@ -288,6 +325,18 @@ > } > bufptr = buf; > bufpos = buf + 7; > + > + // E' andata bene, il pacchetto sembra corretto > + if (saltati) { > + fprintf (stderr," %d bytes (%d > bits).\n",saltati,saltati*8); > + saltati=0; > + } > + // Do le info una sola volta, appena trovo un pacchetto > corretto > + if (primo) { > + show_info (flags_tampone, sample_rate, bit_rate); > + primo=0; > + } > + > print_fps (0); > continue; > error: > @@ -572,8 +621,7 @@ > setmode (fileno (stdout), O_BINARY); > #endif > > - fprintf (stderr, PACKAGE"-"VERSION > - " - by Michel Lespinasse <wa...@zo...> and Aaron > Holtzman\n"); > + fprintf (stderr, "a52dec-0.7.4.t2 - by Michel Lespinasse < > wa...@zo...> and Aaron Holtzman\nPatched by topolinik.\n"); > > handle_args (argc, argv); > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Liba52-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/liba52-devel > > |