Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd July 2015, 09:02   #1  |  Link
pandy
Registered User
 
Join Date: Mar 2006
Posts: 1,049
MPEG 1 Layer 2 a.k.a. MP2 software decoder?

Searching for good MP2 software decoder - seem that MP2 decoder in ffmpeg is limited to 16bits, foobar2000 decoder is also limited and seem behave unstable in particular situations...
So is there any 24 - xx bit int of float decoder available (open source / freeware preferred).

Thnx in Advance!
pandy is offline   Reply With Quote
Old 3rd July 2015, 09:32   #2  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
ffmpeg has a float decoder (ie. -c:a mp2float) . Is that one only producing 16-bit of actual relevant data?
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 3rd July 2015, 10:00   #3  |  Link
pandy
Registered User
 
Join Date: Mar 2006
Posts: 1,049
Quote:
Originally Posted by nevcairiel View Post
ffmpeg has a float decoder (ie. -c:a mp2float) . Is that one only producing 16-bit of actual relevant data?
I need to decode MP2 to PCM (with at least 24 bit) - currently ffmpeg with
Code:
@ffmpeg -i %1 -vn -c:a pcm_f32le -y %1_pcm_f32le.wav
produce 32 bit float PCM WAV but signal inside (source is MP2) is 16 bit.
pandy is offline   Reply With Quote
Old 3rd July 2015, 11:05   #4  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Try adding "-c:a mp2float" before the "-i" command, that should make it use the float decoder. No idea why it defaults to the s16 decoder...
Not sure how much more precision that will actually give you, but at least its not artificially cut down to 16-bit.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 3rd July 2015, 15:55   #5  |  Link
pandy
Registered User
 
Join Date: Mar 2006
Posts: 1,049
Quote:
Originally Posted by nevcairiel View Post
Try adding "-c:a mp2float" before the "-i" command, that should make it use the float decoder. No idea why it defaults to the s16 decoder...
Not sure how much more precision that will actually give you, but at least its not artificially cut down to 16-bit.

Thx, indeed default is not float one - but still i see no improvement - depends on source (encoder) and decoder i see strange results (discrete tones not existing in source) - this is very strange - such low quality... (between -70 and -90dBFS noise floor).
pandy is offline   Reply With Quote
Old 11th July 2015, 18:55   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
What about mpg123 decoder library?
http://mpg123.de/
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 15th July 2015, 09:19   #7  |  Link
pandy
Registered User
 
Join Date: Mar 2006
Posts: 1,049
Quote:
Originally Posted by LoRd_MuldeR View Post
What about mpg123 decoder library?
http://mpg123.de/
Thx for tip - i had impression that is no longer actively maintained and such surprise... there is bug fix from 2015-05-24 (but no binaries yet) - i will do test (in free time and when binaries will be available) and provide feedback.
pandy is offline   Reply With Quote
Old 15th July 2015, 18:43   #8  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by pandy View Post
Thx for tip - i had impression that is no longer actively maintained and such surprise... there is bug fix from 2015-05-24 (but no binaries yet) - i will do test (in free time and when binaries will be available) and provide feedback.
If you need up-to-date binaries, look here
https://github.com/lordmulder/LameXP...ster/res/tools
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 16th July 2015, 12:15   #9  |  Link
pandy
Registered User
 
Join Date: Mar 2006
Posts: 1,049
Quote:
Originally Posted by LoRd_MuldeR View Post
If you need up-to-date binaries, look here
https://github.com/lordmulder/LameXP...ster/res/tools


and btw - is there any reference audio MPEG-1 Layer I and II decoder (similar to ISO MPEG-2 video decoder - mpeg2dec)

I should say downloadable reference decoder as buying ISO/IEC TR 13818-5:2005 have no sense to me...

Last edited by pandy; 17th July 2015 at 09:16.
pandy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.