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 > (HD) DVD, Blu-ray & (S)VCD > One click suites for DVD backup and DVD creation

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th July 2018, 14:16   #3121  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Posts: 2,222
Quote:
Originally Posted by MrC View Post
Got it. Do you have a small sample with AAC-LATM audio track?

Thanks



Bye
Sure, the link still works...
https://www51.zippyshare.com/v/KY10rZkC/file.html

It is not just this file, it applies to all captured files from stations which use AAC-LATM. About half of the public broadcasters in Germany use this audio format, the other half use E-AC3. Since you fixed A2D recently so it no longer confuses E-AC3 with standard AC3 these captures do work nicely with A2D.


Cheers
manolito

//EDIT//
When I said that mts files with E-AC3 audio tracks work nicely in A2D I forgot to mention that audio delay correction is a little bit tricky with such transport streams (could well be an issue with MediaInfo). The reported delay may be something like -1500 ms for both audio tracks. For a perfect result the delay correction for the first track (the one which is decoded with DirectShowSource) must be disabled. For the second track (the one which gets decoded by ffms2) the delay correction must be applied, but it needs to be reversed. So the "-" sign in the "DelayAudio" command has to be removed.

//EDIT2//
It gets even more confusing. The above behavior only applies when the A2D default settings are used, i.e. DSS2Mod/LavFilters for video, DirectShowSource/LAVFilters for the first audio track and FFmpegSource for the second audio track. If the user forces FFmpegSource for video and audio under "Preferences" then the audio delay correction must be disabled for both audio tracks. Weird...

Last edited by manolito; 21st July 2018 at 19:09.
manolito is offline   Reply With Quote
Old 21st July 2018, 20:41   #3122  |  Link
MrC
AVStoDVD Dev
 
MrC's Avatar
 
Join Date: Apr 2006
Location: Italy
Posts: 1,279
Quote:
Originally Posted by manolito View Post
Could you upload the file elsewhere? When I click on "Download Now" from zippyshare site, I have to download and install first the app "MessengerTime"... I really don't...



Bye
__________________
MrC

AVStoDVD Homepage
AVStoDVD @ Doom9 Forum
MrC is offline   Reply With Quote
Old 21st July 2018, 21:44   #3123  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Posts: 2,222
Sorry for the zippyshare trouble. I always use a custom hosts file from
winhelp2002.mvps.org/hosts.htm
so I never experienced these issues.

You can get the file here:
https://www.zeta-uploader.com/2097415887
and here:
https://we.tl/8EraIY43vo

Let me know if you also need a captured mts file with E-AC3 audio.


Cheers
manolito
manolito is offline   Reply With Quote
Old 22nd July 2018, 11:57   #3124  |  Link
MrC
AVStoDVD Dev
 
MrC's Avatar
 
Join Date: Apr 2006
Location: Italy
Posts: 1,279
Hi manolito, zeta-uploader works

Yes, please, upload the mts with e-ac3 too



Bye
__________________
MrC

AVStoDVD Homepage
AVStoDVD @ Doom9 Forum
MrC is offline   Reply With Quote
Old 22nd July 2018, 16:30   #3125  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Posts: 2,222
No problem, here it is:
https://www.zeta-uploader.com/2130213520

Unfortunately I could not find a station which broadcasts with 2 different audio languages at the moment.


Cheers
manolito
manolito is offline   Reply With Quote
Old 22nd July 2018, 21:54   #3126  |  Link
MrC
AVStoDVD Dev
 
MrC's Avatar
 
Join Date: Apr 2006
Location: Italy
Posts: 1,279
About the mts with aac-latm, switching to FFmpeg Safe Mode for audio encoding is the better workaround. With FFmpeg Safe Mode the audio delay is ignored, and for this capture is the right thing. Somehow MediaInfo is exposing a wrong delay.

I have found that remuxing the mts to mkv has some benefits: the filesize decreases a lot (padding within the mts?) and FFMS2 is now able to decode the 2nd aac track. In this case, major drawback, the audio delay is messed up even more. Again, FFmpeg Safe Mode with the remuxed mkv works as well.

Still to test the mts with e-ac3



Bye
__________________
MrC

AVStoDVD Homepage
AVStoDVD @ Doom9 Forum
MrC is offline   Reply With Quote
Old 23rd July 2018, 02:10   #3127  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Posts: 2,222
Quote:
Originally Posted by MrC View Post
About the mts with aac-latm, switching to FFmpeg Safe Mode for audio encoding is the better workaround. With FFmpeg Safe Mode the audio delay is ignored, and for this capture is the right thing. Somehow MediaInfo is exposing a wrong delay.
This is what I said in my first post about the problem:
Quote:
Specifying "FFmpeg Safe Mode" under preferences works, but there is no way to process audio.
This may be all which most users need, but others like me really like to be able to manipulate the audo tracks.

Quote:
Originally Posted by MrC View Post
I have found that remuxing the mts to mkv has some benefits: the filesize decreases a lot (padding within the mts?) and FFMS2 is now able to decode the 2nd aac track. In this case, major drawback, the audio delay is messed up even more. Again, FFmpeg Safe Mode with the remuxed mkv works as well.
I agree, I always do this with HEVC transport streams, but mainly for the video track. None of the available source filters does a decent job seeking within such sources. Finding the right cut points when trying to cut out parts is painful. MKV is a much better format to do this.

Great that you found out that ffms2 can decode AAC-LATM when it is in an MKV container, I did not have this situation on my screen. And the messed up audio delay actually is not too challenging. You just need to use the delay value reported by MediaInfo, only reverse the prefix. Just remove the "-" prefix from the "DelayAudio" command.

My take on the whole issue is that such captured transport streams always have non-decodable B-Frames at the beginning. And all the available source filters have different ways how they treat these non-decodable frames. Luckily we only need to deal with DirectShow based source filters and ffms2 (Donald Graft handles such sources differently again).


Cheers
manolito
manolito is offline   Reply With Quote
Old 23rd July 2018, 19:08   #3128  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Posts: 2,222
I am trying to find a fool proof work flow for such captured MTS transport streams which allows me to add audio filters and does not have any audio delay problems. And I believe that I found such a work flow...

These are the steps:
1. Repack the source to MKV while converting the audio tracks to PCM. Here is a universal FFmpeg command line for this task:
Quote:
ffmpeg.exe -fflags +genpts -y -i "ONE.mts" -map 0:0 -c:v:0 copy -aspect:v:0 16:9 -map 0:1 -c:a:0 pcm_s24le -map 0:2 -c:a:1 pcm_s24le -shortest "ONE.mkv"
2. In AVStoDVD preferences disable audio delay correction AND force FFmpegSource for video and audio.

So far I tested 6 different captured sources, and they all came out in perfect sync. During the remuxing to MKV there are dozens of FFmpeg warnings at the beginning, but the garbled non-decodable frames are removed perfectly.


Cheers
manolito
manolito is offline   Reply With Quote
Old 26th July 2018, 15:06   #3129  |  Link
MrC
AVStoDVD Dev
 
MrC's Avatar
 
Join Date: Apr 2006
Location: Italy
Posts: 1,279
@manolito

great, thanks for sharing the workflow



Bye
__________________
MrC

AVStoDVD Homepage
AVStoDVD @ Doom9 Forum
MrC is offline   Reply With Quote
Old 6th August 2018, 14:33   #3130  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Posts: 2,222
New versions of my A2D plugins...
https://files.videohelp.com/u/172211...D%20Plugins.7z

Changes:
For the FF_VBR and the HC_Mod plugins I added an option to append a Prefetch() command to the end of the AVS script generated by AVStoDVD. This is for users of AVS+ who want to automatically enable multithreading.


Cheers
manolito
manolito 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 Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:47.


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