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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 18th November 2007, 21:26   #1501  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by shambles View Post
the pcm file from the first m2ts = 2 294 179 654 bytes

2294179654 / (8 * 16 / 8) = 143386228,375 so yes, indeed, therein lies our bug.

the file from the second m2ts is correctly dividable
Ok, now you can use e.g. a hexedit to cut off the last 6 bytes. Afterwards the channel mapping should be correct when the files are joined. E.g. personally, I'm using this free hexeditor:

http://www.mh-nexus.de/

Also you might want to contact the xport author and ask for a fix. Should be really easy for him to fix.
madshi is offline  
Old 18th November 2007, 21:28   #1502  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Thunderbolt8 View Post
so xport is currently not recommended to use for joined .m2ts files?
I don't know. It usually works for me. But seamless branching can be problematic.

Quote:
Originally Posted by Thunderbolt8 View Post
are there other, more reliable demuxers at present?
You could try Haali Media Splitter -> Dump. Don't know if that's more reliable or not.
madshi is offline  
Old 18th November 2007, 21:45   #1503  |  Link
shambles
Registered User
 
Join Date: Nov 2007
Posts: 132
Quote:
Originally Posted by madshi View Post
The log.txt is written to the "current" folder. The one where the command prompt is at. E.g. if the command prompt sais: "C:>" the log file it written to "C:\log.txt".
you can actually see in my post that the eac3to dir was the current dir.. no log file anywhere
shambles is offline  
Old 18th November 2007, 21:47   #1504  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
hm use the windows file search "log.txt" :P
Thunderbolt8 is offline  
Old 18th November 2007, 21:57   #1505  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by shambles View Post
you can actually see in my post that the eac3to dir was the current dir.. no log file anywhere
I'm confused. Is it really 2.03?
madshi is offline  
Old 18th November 2007, 22:07   #1506  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
new haali version is out btw (doesnt really belong here, but its so universal :P)
Thunderbolt8 is offline  
Old 18th November 2007, 22:08   #1507  |  Link
shambles
Registered User
 
Join Date: Nov 2007
Posts: 132
shambles is offline  
Old 18th November 2007, 22:12   #1508  |  Link
shambles
Registered User
 
Join Date: Nov 2007
Posts: 132
Quote:
Originally Posted by madshi View Post
Ok, now you can use e.g. a hexedit to cut off the last 6 bytes. Afterwards the channel mapping should be correct when the files are joined. E.g. personally, I'm using this free hexeditor:

http://www.mh-nexus.de/

Also you might want to contact the xport author and ask for a fix. Should be really easy for him to fix.
using bla1+bla2 in eac3to after cutting off the last 6 bytes works perfectly. channel mapping and everything perfect.

i'll report the bug to the xport author asap
shambles is offline  
Old 18th November 2007, 22:22   #1509  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Thunderbolt8 View Post
new haali version is out btw (doesnt really belong here, but its so universal :P)
This is actually a VERY important release. I'll post details in a few minutes in the Haali thread.
madshi is offline  
Old 18th November 2007, 22:23   #1510  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by shambles View Post
There really IS something strange with your PC. Can you please test logging on that other PC, too?
madshi is offline  
Old 19th November 2007, 03:16   #1511  |  Link
drmpeg
Registered User
 
Join Date: Jan 2003
Location: Silicon Valley
Posts: 455
Quote:
Originally Posted by madshi View Post
Ok, now you can use e.g. a hexedit to cut off the last 6 bytes. Afterwards the channel mapping should be correct when the files are joined. E.g. personally, I'm using this free hexeditor:

http://www.mh-nexus.de/

Also you might want to contact the xport author and ask for a fix. Should be really easy for him to fix.
I have a fix for the LPCM channel mapping issue with concatenated .m2ts files.

Version 0.99

http://www.w6rz.net/xport.zip

I wasn't able to fully test it, since I don't have any full movie .m2ts files. However, I did regress it with the samples I do have, so it shouldn't be any worse.

The error message "LPCM sample resync, adding x samples" will occur when xport detects a mismatch (it looks for a match at the beginning of every PES packet). It just adds enough samples to pad out to the expected number of channels. A/V sync should not be affected too much, since it's only 1/48000 of a second (20 microseconds).

The error message should only occur at concatenation points. xport will not pad the end of a demuxed LPCM file.

Ron
__________________
HD MPEG-2 Test Patterns http://www.w6rz.net
drmpeg is offline  
Old 19th November 2007, 03:54   #1512  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
thanks!
Thunderbolt8 is offline  
Old 19th November 2007, 08:45   #1513  |  Link
Rectal Prolapse
Registered User
 
Join Date: Mar 2005
Posts: 433
When combining Ratatouille files you need to run the resultant large m2ts file through tsremux again - rewriting the timestamps. This is NEEDED to fix playback in Haali and many other players, and will probably fix demux issues when using xport on the big file.
Rectal Prolapse is offline  
Old 19th November 2007, 09:02   #1514  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by drmpeg View Post
I have a fix for the LPCM channel mapping issue with concatenated .m2ts files.

Version 0.99

http://www.w6rz.net/xport.zip

I wasn't able to fully test it, since I don't have any full movie .m2ts files. However, I did regress it with the samples I do have, so it shouldn't be any worse.

The error message "LPCM sample resync, adding x samples" will occur when xport detects a mismatch (it looks for a match at the beginning of every PES packet). It just adds enough samples to pad out to the expected number of channels. A/V sync should not be affected too much, since it's only 1/48000 of a second (20 microseconds).

The error message should only occur at concatenation points. xport will not pad the end of a demuxed LPCM file.

Ron
Thanks, Ron!
madshi is offline  
Old 19th November 2007, 10:14   #1515  |  Link
序列人
Registered User
 
Join Date: Jul 2006
Posts: 23
Quote:
Originally Posted by madshi View Post
There really IS something strange with your PC. Can you please test logging on that other PC, too?
Me too, everything goes well before v2.0!
序列人 is offline  
Old 19th November 2007, 10:34   #1516  |  Link
shambles
Registered User
 
Join Date: Nov 2007
Posts: 132
Quote:
Originally Posted by madshi View Post
There really IS something strange with your PC. Can you please test logging on that other PC, too?
logging works on the other pc, except it seems to just print out the log in the command prompt window, it doesn't make a file.
shambles is offline  
Old 19th November 2007, 10:43   #1517  |  Link
Murleen
Registered User
 
Join Date: Jan 2007
Posts: 5
Quote:
Originally Posted by madshi View Post
Is it possible to get the runtime from those DTS bytes? I mean could I just search in the file for the first and last sync word, substract the DTS values and convert them to a runtime somehow? That would be nice.
Alas no - there's only two bytes, which tend to wrap every 1.4s - I think the value is used to perform bitrate smoothing, telling a decoder to decode some samples and buffer them earlier...
Murleen is offline  
Old 19th November 2007, 10:44   #1518  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by 序列人 View Post
Me too, everything goes well before v2.0!
And it does not work for you with v2.0? Can you give me a bit more details, please?
madshi is offline  
Old 19th November 2007, 10:44   #1519  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Murleen View Post
Alas no - there's only two bytes, which tend to wrap every 1.4s - I think the value is used to perform bitrate smoothing, telling a decoder to decode some samples and buffer them earlier...
Ah ok, thanks. Do you happen to be the ffmpeg TrueHD decoder author?
madshi is offline  
Old 19th November 2007, 10:45   #1520  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by shambles View Post
logging works on the other pc, except it seems to just print out the log in the command prompt window, it doesn't make a file.
Don't understand that. But I'll make a new build which will write the log file to the eac3to folder.
madshi is offline  
Closed Thread

Tags
eac3to

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 00:24.


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