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 > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th March 2008, 02:45   #1  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
NicAudio 2.0.6 in CodePlex project

IMPORTANT EDIT
At this moment (2016) I recommend use LWLibavAudioSource like AviSynth audio decoder instead NicAudio (or BassAudio).
Then I never will make new versions of NicAudio.
---------------------------------------------------------------------------------------------------- EDIT END
Like was announced in this thread, I open a new project in CodePlex to unify the NicAudio sources and continue the development (if any).

In last years there are mod's from Dimzon, Nic (of course), IanB and now for me. All of them, and also the BeHappy people, are invited to the NicAudio developer team.

In http://www.codeplex.com/NicAudio there are now the source code and a first release (2.0 to begin a new age).

Any comment are welcome.

EDIT: Actual version 2.0.6 (2012-08-27)
Code:
CHANGE LOG 
------
27/08/2012 Tebasuna 2.0.6
ac3,dts  Solved some initialization issues with no-linear decode.
         http://forum.doom9.org/showthread.php?p=1587337
lpcm,raw Some minor improvements.

25/10/2011 Tebasuna 2.0.5
dts   Accepted special stereo dts modes Lt+Rt, A+B (dual mono)...

12/08/2009 Tebasuna 2.0.4
lpcm  Solved bug writing last block in some cases

25/06/2009 Tebasuna 2.0.3
mpa Skip ID3v2,3,4 initial tag to avoid false sync frames.

Last edited by tebasuna51; 30th January 2016 at 13:21. Reason: No new versions
tebasuna51 is offline   Reply With Quote
Old 15th March 2008, 09:14   #2  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
thanks for your effort tebasuna51!

what's about adding support for flac, multichannel pcm (as in bluray dvd), AC3+, DTSHD... ?

yea, know.. tha latter are a little bit difficult... but

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 15th March 2008, 11:52   #3  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by buzzqw View Post
what's about adding support for flac,
BassAudio can decode flac.

Quote:
multichannel pcm (as in bluray dvd),
Done, LPCM in BluRay mode, with something like:
NicLPCMSource("FileName.pcm", 96000, -24, 8)

Quote:
AC3+, DTSHD... ?
See the TODO list in the readme.txt

DTSHD, I don't know a free decoder, actually we can use DelayCut to extract the core dts.

AC3+, is still in beta stage in ffmpeg project.

MLP/ThrueHD, the ffmpeg decoder seems correct, we need a volunteer to include this decoder. Anyone?
tebasuna51 is offline   Reply With Quote
Old 15th March 2008, 13:22   #4  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
Quote:
NicLPCMSource("FileName.pcm", 96000, -24, 8)
nice, but a "automatic" recognition of file will be even better.. like NicLPCMSource("FileName.pcm") .. if possible

i know bassaudio (and thanks again btw).. but having a single dll for most common audio formats will be easier

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 15th March 2008, 21:06   #5  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by buzzqw View Post
nice, but a "automatic" recognition of file will be even better.. like NicLPCMSource("FileName.pcm") .. if possible
Maybe you can persuade Madshi to work in the NicAudio developer team.
tebasuna51 is offline   Reply With Quote
Old 7th April 2008, 18:56   #6  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,803
Mp2 and Mp3 decoding is not perfect
Source (mp2) and transcoded files (AC3 AAC OGG) using BePipe
http://www.sendspace.com/file/nizv9b
Atak_Snajpera is offline   Reply With Quote
Old 8th April 2008, 00:07   #7  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by Atak_Snajpera View Post
Mp2 and Mp3 decoding is not perfect
Source (mp2) and transcoded files (AC3 AAC OGG) using BePipe
http://www.sendspace.com/file/nizv9b
Thanks for the sample.

Of course your output files are corrupted but I can't reproduce these results. Using your source.mp2 and decoding with NicMPG123Source() function I obtain perfect outputs ac3, aac and ogg.

With your source.mp2 I obtain bitidentical wav files using old or new NicAudio, old or new MPASource (WarpEnterprises). The differences with Bass decoder are less than -135 dB (32 bits float), and the differences with Lame 3.97 are less than -96 dB (16 bit int).

In your Command_Line_Example.cmd (simplified):

bepipe --script "import(^job1.avs^)" | ...

In job1.avs there are more AviSynth functions or only the NicMPG123Source()?

Any user can reproduce the corrupted outputs?
tebasuna51 is offline   Reply With Quote
Old 8th April 2008, 17:27   #8  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,803

#VideoSource
LoadPlugin("C:\Users\Dawidos\Documents\Delphi_Projects\RipBot264\Tools\dgindex\DGDecode.dll")
video=MPEG2Source("C:\Temp\RipBot264temp\job1\job1.d2v")

#AudioSource
LoadPlugin("C:\Users\Dawidos\Documents\Delphi_Projects\RipBot264\tools\AviSynth plugins\NicAudio\NicAudio.dll")
audio=NicMPG123Source("C:\Temp\RipBot264temp\job1\job1 L2 2ch 48 384 DELAY -221ms.mp2")
audio=ResampleAudio(audio,48000)

#Delay
audio=DelayAudio(audio,-0.221)

#Normalize
audio=Normalize(audio,1)

#AudioDub
audio=ConvertAudioTo16bit(audio)
AudioDub(video,audio)
Atak_Snajpera is offline   Reply With Quote
Old 9th April 2008, 03:07   #9  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by Atak_Snajpera View Post
Mp2 and Mp3 decoding is not perfect
Bug detected and fixed. Thanks for your help.

The problem was a continuous message:

MPEG 1.0 layer II, 384 kbit/s, 48000 Hz stereo

mixed with the audio data only with Bepipe, works fine with BeHappy. A file (common.c in mpg123-lib) send the message to stdout instead stderr.

Please use the new NicAudio.dll v2.0.1
tebasuna51 is offline   Reply With Quote
Old 9th April 2008, 11:39   #10  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
Quote:
Originally Posted by tebasuna51 View Post
The problem was a continuous message:

MPEG 1.0 layer II, 384 kbit/s, 48000 Hz stereo

mixed with the audio data only with Bepipe, works fine with BeHappy. A file (common.c in mpg123-lib) send the message to stdout instead stderr.
OMG! Very funny side-effect
dimzon is offline   Reply With Quote
Old 13th April 2008, 20:01   #11  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
tebasuna51,
Seems, you rename NicMpaSource to NicMPG123Source?
Please add some note to documentation.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 13th April 2008, 20:31   #12  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by Fizick View Post
tebasuna51,
Seems, you rename NicMpaSource to NicMPG123Source?
Please add some note to documentation.
Nope, the original NicMpaSource was based in libmad libraries without support for mp3, only mp1/2.

Dimzon add NicMPG123Source (2006-03-06) using the MPASource from WarpEnterprises and mpg123-lib, with support for mp3 and VBR.

Like NicMPG123Source make the same than NicMpaSource + mp3 + VBR, I supress NicMpaSource.

There are only a reference in the changelog:
"libmad deprecated"
maybe I need explain this better.
tebasuna51 is offline   Reply With Quote
Old 24th April 2008, 20:12   #13  |  Link
Susana
Registered User
 
Susana's Avatar
 
Join Date: Apr 2005
Location: Spain
Posts: 181
Thank you very much for continuing this proyect tebasuna51. I had an ac3 3/0.1 and with nicaudio 1.x couldn't use avisynth; now it works fine with v2.x. Using avisynth scripts speeds up sincronization tasks

Last edited by Susana; 24th April 2008 at 20:14.
Susana is offline   Reply With Quote
Old 3rd May 2008, 21:03   #14  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,803
NicAudio can not decode this AC3
http://www.mediafire.com/?tz0blxwtp9e

Decoding via DirectShowSource (FFDshow Audio) and BassAudio work.
Atak_Snajpera is offline   Reply With Quote
Old 4th May 2008, 01:24   #15  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by Atak_Snajpera View Post
NicAudio can not decode this AC3
http://www.mediafire.com/?tz0blxwtp9e
Yep, NicAudio decode this ac3 and output 10:54 of 5.1 ... silence

The problem is first frame (5.1), all parameters are taken from first frame and when second frame arrive is a 2.0 then is filled with silence and so on.

This mix of 5.1 frames and 2.0 are common in TV captures (movie-commercials) and fill with silence this frames is a good idea to maintain the sync but the first frame must be the appropriate.

DelayCut is necesary to examine and repair, see the log:
Code:
[Input info]
Bitrate=384
Actual rate=384.000000
Sampling Frec=48000
TotalFrames=20446
Bytesperframe=1536.0000
Filesize=31405056
FrameDuration= 32.0000
Framespersecond= 31.2500
Duration=00:10:54.272
Channels mode=3/2: L+C+R+SL+SR
LFE=LFE: Present
[Target info]
StartFrame=0
EndFrame=20445
NotFixedDelay=  0.0000
Duration=00:10:54.272
====== PROCESSING LOG ======================
Time 00:00:00.000; Frame#= 1.  Crc1 error SILENCED: read = 53A4; calculated=DBA7
Time 00:00:00.032; Frame#= 2. Some basic parameters changed between Frame #1 and this frame
Time 00:04:24.192; Frame#= 8257. Some basic parameters changed between Frame #2 and this frame
Time 00:04:24.192; Frame#= 8257.  Crc1 error SILENCED: read = A88B; calculated=2088
Time 00:04:24.224; Frame#= 8258. Some basic parameters changed between Frame #8257 and this frame
Number of written frames = 20446
Number of Errors= 5
Like you can see the first frame is 5.1. The message:
"Frame#= 2. Some basic parameters changed"
is a big warning, you need use Delay Start -32 ms to delete the first frame and the fixed ac3 is decoded fine by NicAudio.

There are also another 5.1 frame (8257) but now isn't a problem, is filled with silence.
tebasuna51 is offline   Reply With Quote
Old 6th June 2008, 18:48   #16  |  Link
Underground78
Registered User
 
Underground78's Avatar
 
Join Date: Oct 2004
Location: France
Posts: 567
Quote:
Originally Posted by tebasuna51 View Post
Bug detected and fixed. Thanks for your help.

The problem was a continuous message:

MPEG 1.0 layer II, 384 kbit/s, 48000 Hz stereo

mixed with the audio data only with Bepipe, works fine with BeHappy. A file (common.c in mpg123-lib) send the message to stdout instead stderr.

Please use the new NicAudio.dll v2.0.1
Hello,

I have a similar problem when I encode using x264 cli an avs script with NicMPG123Source and SoundOut, I have this kind of output :



I use the last version of NicAudio and SoundOut. If I remove SoundOut the problem disappeares so I don't really know if NicAudio is really guilty ...

Thanks in advance,

Underground78
Underground78 is offline   Reply With Quote
Old 6th June 2008, 20:36   #17  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Yes, but now the message is in stderr and don't corrupt the audio.
The audio output is ok, you can minimize the window.
In next version I delete the annoying message.
tebasuna51 is offline   Reply With Quote
Old 6th June 2008, 20:47   #18  |  Link
Underground78
Registered User
 
Underground78's Avatar
 
Join Date: Oct 2004
Location: France
Posts: 567
Quote:
Originally Posted by tebasuna51 View Post
Yes, but now the message is in stderr and don't corrupt the audio.
The audio output is ok, you can minimize the window.
In next version I delete the annoying message.
Yes, I know it's not really a big problem except for reading the progress of the encoding so thank you !
Underground78 is offline   Reply With Quote
Old 6th June 2008, 23:30   #19  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,803
Will we see eac3 support in near future. FFmpeg should have it by now.
Atak_Snajpera is offline   Reply With Quote
Old 7th June 2008, 01:58   #20  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,881
Quote:
Originally Posted by Atak_Snajpera View Post
Will we see eac3 support in near future. FFmpeg should have it by now.
We need developers to do the job.
tebasuna51 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 11:14.


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