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 23rd October 2011, 01:11   #1  |  Link
nekrovski
Registered User
 
nekrovski's Avatar
 
Join Date: Oct 2011
Posts: 57
Audio encoding error with MeGui

Yo

when I try to encode DTS to AAC .mp4 extension (Nero AAC codec) with MeGui, I get instant error and the following in the log



http://i.imgur.com/IEjN9.jpg

what could be the problem here?

I'm also getting similar error when I try to do the same thing with BeHappy.
nekrovski is offline   Reply With Quote
Old 23rd October 2011, 18:00   #2  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Like I say in Videohelp forum please put a MediaInfo of the file.

NicAudio work with 2.0 DTS files but not with LtRt DTS.

If isn't the problem maybe your file is corrupt.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 23rd October 2011, 18:09   #3  |  Link
nekrovski
Registered User
 
nekrovski's Avatar
 
Join Date: Oct 2011
Posts: 57
General
Unique ID : 203565891891659855560961219905525665472 (0x99255D5BFF169BE0862EF201AA044EC0)
Format : Matroska
File size : 6.69 GiB
Duration : 1h 42mn
Overall bit rate : 9 310 Kbps
Encoded date : UTC 2008-12-19 08:50:36
Writing application : mkvmerge v2.4.0 ('Fumbling Towards Ecstasy') built on Oct 11 2008 20:13:15
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Cover : Yes / Yes / Yes

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 42mn
Bit rate : 7 530 Kbps
Width : 1 200 pixels
Height : 720 pixels
Display aspect ratio : 1.667
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.364
Stream size : 5.28 GiB (79%)
Writing library : x264 core 65 r1047M f773bf0
Encoding settings : cabac=1 / ref=8 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=9 / psy_rd=0.9:0.0 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=0 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=7530 / ratetol=1.0 / qcomp=0.60 / qpmin=8 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=50000 / vbv_bufsize=50000 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:0.80
Language : Chinese

Audio #1
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 1h 42mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 1.09 GiB (16%)
Title : DTS 1536 Kbps
Language : Chinese

Audio #2
ID : 3
Format : Vorbis
Format settings, Floor : 1
Codec ID : A_VORBIS
Duration : 1h 42mn
Bit rate mode : Constant
Bit rate : 80.0 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 58.9 MiB (1%)
Writing library : libVorbis 1.1.1/1.1.2 (UTC 2005-03-04)
Language : English

Audio #3
ID : 6
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 1h 42mn
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 141 MiB (2%)
Title : AC3 192 Kbps
Language : Russian

Text #1
ID : 4
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Language : English

Text #2
ID : 5
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Language : French
nekrovski is offline   Reply With Quote
Old 23rd October 2011, 18:44   #4  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
But this is a .mkv with a track 2: DTS 5.1

How have extract you the "T2_Audio - 2.0 channels.dts"?

I need the Avisynth script (full log, Right click -> Save -> Log, and put here the .log file) to analyze the problem.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 23rd October 2011, 19:09   #5  |  Link
nekrovski
Registered User
 
nekrovski's Avatar
 
Join Date: Oct 2011
Posts: 57
Oh my bad sorry, I gave you the mediainfo of another file.

I have to go out now, probably for a few hours, I'll paste you the info then.

Last edited by nekrovski; 23rd October 2011 at 19:18.
nekrovski is offline   Reply With Quote
Old 23rd October 2011, 21:18   #6  |  Link
nekrovski
Registered User
 
nekrovski's Avatar
 
Join Date: Oct 2011
Posts: 57
Here you go

Quote:
General
Unique ID : 221530243325473762481330833689115589423 (0xA6A92C44897AA84CA07DF342B39B7B2F)
Format : Matroska
File size : 4.61 GiB
Duration : 1h 33mn
Overall bit rate : 6 659 Kbps
Encoded date : UTC 2011-10-11 10:49:07
Writing application : mkvmerge v4.8.0 ('I Got The...') built on May 24 2011 03:12:58
Writing library : libebml v1.2.0 + libmatroska v1.1.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 33mn
Bit rate : 5 150 Kbps
Width : 1 280 pixels
Height : 688 pixels
Display aspect ratio : 1.860
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.244
Title : Video
Writing library : x264 core 118 r2085 8a62835
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 /

trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=18 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 /

constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0

/ rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=5150 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : French

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Muxing mode : Header stripping
Codec ID : A_DTS
Duration : 1h 33mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossy
I extract the audio via megui, tools, hd streams extractor.

here's the full log from megui

Quote:
[Error] Log
-[Information] Versions
--[Information] [23.10.2011 20:13:06] MeGUI Version : 2050 (svn)
--[Information] [23.10.2011 20:13:06] OS : Windows Seven Ultimate Edition x86 SP1 (6.1.65536.7601)
--[Information] [23.10.2011 20:13:06] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] [23.10.2011 20:13:06] Avisynth Version : 2.5.8.5 (21.12.2008 21:46:54)
-[Information] Update detection
--[Information] [23.10.2011 20:13:07] Connecting to server: http://megui.xvidvideo.ru/auto/stable/
--[Information] [23.10.2011 20:13:09] All files are up to date
-[Information] Log for job2 (ext, video.mkv -> xxx)
--[Information] [23.10.2011 22:09:30] Started handling job
--[Information] [23.10.2011 22:09:30] Preprocessing
--[Information] [23.10.2011 22:09:30] Job commandline: "C:\Users\ZIVKO\Desktop\MeGUI_2028_x86\tools\eac3to\eac3to.exe" "D:\video.mkv" 2:"D:\T2_Audio - 2.0 channels.dts" -core

-progressnumbers
--[Information] [23.10.2011 22:09:30] Extracting started
--[Information] [23.10.2011 22:11:03] Standard output stream
---[NoImage] MKV, 1 video track, 1 audio track, 1:33:57, 24p /1.001
---[NoImage] 1: h264/AVC, French, 1280x688 24p /1.001 (80:43)
---[NoImage] "Video"
---[NoImage] 2: DTS, 2.0 channels, 24 bits, 1509kbps, 48kHz
---[NoImage] a02 Extracting audio track number 2...
---[NoImage] a02 Creating file "D:\T2_Audio - 2.0 channels.dts"...
---[NoImage] Video track 1 contains 135146 frames.
---[NoImage] eac3to processing took 1 minute, 29 seconds.
---[NoImage] Done.
--[Information] [23.10.2011 22:11:03] Standard error stream
--[Information] [23.10.2011 22:11:03] Postprocessing
---[Information] Deleting intermediate files
--[Information] [23.10.2011 22:11:04] Job completed
-[Error] Log for job1 (audio, T2_Audio - 2.0 channels.dts -> T2_Audio - 2.0 channels.mp4)
--[Information] [23.10.2011 22:14:04] Started handling job
--[Information] [23.10.2011 22:14:04] Preprocessing
--[Information] [23.10.2011 22:14:04] MediaInfo
---[Information] File: D:\T2_Audio - 2.0 channels.dts
---[Information] General
----[Information] Format: DTS
----[Information] FormatString: DTS
----[Information] FileSize: 1063225304
----[Information] PlayTime: 01:33:53.915
---[Information] Audio
----[Information] ID:
----[Information] Format: DTS
----[Information] FormatProfile:
----[Information] FormatSettingsSBR:
----[Information] FormatSettingsPS:
----[Information] SamplingRate: 48000
----[Information] SamplingRateString: 48.0 KHz
----[Information] Channels: 2
----[Information] ChannelsString: 2 channels
----[Information] ChannelPositionsString2: 2/0/0
----[Information] BitRateMode: CBR
----[Information] Delay:
----[Information] Title:
----[Information] Language:
----[Information] LanguageString:
--[Information] [23.10.2011 22:14:04] Trying to open the file with NicAudio
--[Information] [23.10.2011 22:14:05] Successfully opened the file with NicAudio
--[Information] [23.10.2011 22:14:05] Avisynth script
---[NoImage] LoadPlugin("C:\Users\ZIVKO\Desktop\MeGUI_2028_x86\tools\avisynth_plugin\NicAudio.dll")
---[NoImage] NicDtsSource("D:\T2_Audio - 2.0 channels.dts")
---[NoImage] Normalize()
---[NoImage] return last
--[Information] [23.10.2011 22:14:05] Commandline used: -ignorelength -cbr 256000 -if - -of "{0}"
--[Information] [23.10.2011 22:14:05] Encoding started
--[Information] [23.10.2011 22:14:05] Avisynth script environment opened
--[Information] [23.10.2011 22:14:05] Script loaded
--[Information] Output Decoder
---[Information] [23.10.2011 22:14:05] Channels: 2
---[Information] [23.10.2011 22:14:05] Bits per sample: 32
---[Information] [23.10.2011 22:14:05] Sample rate: 48000
--[Information] [23.10.2011 22:14:05] Commandline: C:\Users\ZIVKO\Desktop\MeGUI_2028_x86\win32\neroAacEnc.exe -ignorelength -cbr 256000 -if - -of "D:\T2_Audio - 2.0 channels.mp4"
--[Information] [23.10.2011 22:14:05] Encoder process started
--[Error] [23.10.2011 22:14:05] An error occurred
---[Error] [23.10.2011 22:14:05] Exception message: m2AudioDTSSource: error in file "D:\T2_Audio - 2.0 channels.dts"
---[Error] [23.10.2011 22:14:05] Stacktrace: at MeGUI.AviSynthAudioEncoder.encode()
---[Error] [23.10.2011 22:14:05] Inner exception: null
--[Information] [23.10.2011 22:14:05] Job completed
nekrovski is offline   Reply With Quote
Old 24th October 2011, 02:50   #7  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Try replacing C:\Users\ZIVKO\Desktop\MeGUI_2028_x86\tools\avisynth_plugin\NicAudio.dll" with the attached one.

If don't work I think the dts is corrupt, try DelayCut to fix.
Attached Files
File Type: 7z NicAudio.7z (172.2 KB, 463 views)
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 24th October 2011, 21:28   #8  |  Link
nekrovski
Registered User
 
nekrovski's Avatar
 
Join Date: Oct 2011
Posts: 57
Wow, it worked! I can encode now. Thanks a lot man, really! But to be honest I'm more interested in what the problem was...?
Is this nicaudio an older/newer version or... ?
nekrovski is offline   Reply With Quote
Old 24th October 2011, 23:17   #9  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Is a new version 2.0.5 with only this upgrade.

The DTS specs can use different channels arrangements:
Code:
Table 5.4: Audio channel arrangement
AMODE    CHS Arrangement
0b000000  1  A
0b000001  2  A + B (dual mono) 
0b000010  2  L + R (stereo)
0b000011  2  (L+R) + (L-R) (sum-difference) 
0b000100  2  LT +RT (left and right total) 
0b000101  3  C + L + R 
0b000110  3  L + R+ S 
0b000111  4  C + L + R+ S 
0b001000  4  L + R+ SL+SR 
0b001001  5  C + L + R+ SL+SR 
0b001010  6  CL + CR + L + R + SL + SR 
0b001011  6  C + L + R+ LR + RR + OV 
0b001100  6  CF+ CR+LF+ RF+LR + RR 
0b001101  7  CL + C + CR + L + R + SL + SR 
0b001110  8  CL + CR + L + R + SL1 + SL2+ SR1 + SR2 
0b001111  8  CL + C+ CR + L + R + SL + S+ SR
The libdts decoder reject the mode:
0b000100 LT +RT (left and right total)
like invalid, I only change the code to accept this mode like:
0b000010 L + R (stereo)
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 24th October 2011 at 23:36.
tebasuna51 is offline   Reply With Quote
Old 24th October 2011, 23:27   #10  |  Link
nekrovski
Registered User
 
nekrovski's Avatar
 
Join Date: Oct 2011
Posts: 57
I didn't understand anything but thanks again
nekrovski 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:52.


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