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 > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th May 2009, 14:31   #21  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
deank
Thanks, this is true way. I am in the progress.

turbojet
Similar on the truth, tool show last (current) fps. If you mix different sources you will see fps from last movie.
clark15b is offline   Reply With Quote
Old 5th May 2009, 17:22   #22  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
deank
Some mpls files have strange length prefix before '00000' clip name (red highlight) - 256, but real section length - 266. Other sections is correct.

Besides, the sections counter (blue highlight) contains 1 when we have 3 sections. Near to it there is one more number (yellow highlight) - 2. In the sum it turns out 3.
Usually the first contains actual quantity of sections, and the second 0.

I in confusion.

This is hex dump of turbojet`s example:

Code:
00000000 4D 50 4C 53 │ 30 32 30 30 │ 00 00 00 3A │ 00 00 01 96 │ 00 00 00 00 │ 00 00 00 00  MPLS0200...:............
00000018 00 00 00 00 │ 00 00 00 00 │ 00 00 00 00 │ 00 00 00 00 │ 00 00 00 0E │ 00 01 00 00  ........................
00000030 00 00 01 0F │ 40 00 00 00 │ 40 00 00 00 │ 01 58 00 00 │ 00 01 00 0201 00 30 30  ....@...@....X........00
00000048 30 30 30 4D │ 32 54 53 00 │ 01 00 00 07 │ FF F8 0E 02 │ F7 8F 00 00 │ 00 00 00 00  000M2TS.....џј..ї.......
00000060 00 00 00 00 │ 00 00 00 DE │ 00 00 01 05 │ 05 02 00 00 │ 00 00 00 00 │ 00 00 09 01  .......о................
00000078 10 11 00 00 │ 00 00 00 00 │ 05 EA 61 00 │ 00 00 09 01 │ 11 00 00 00 │ 00 00 00 00  .........ъa.............
00000090 05 81 61 65 │ 6E 67 09 01 │ 11 03 00 00 │ 00 00 00 00 │ 05 83 61 65 │ 6E 67 09 01  ..aeng............aeng..
000000A8 11 04 00 00 │ 00 00 00 00 │ 05 81 31 65 │ 6E 67 09 01 │ 11 01 00 00 │ 00 00 00 00  ..........1eng..........
000000C0 05 81 61 66 │ 72 61 09 01 │ 11 02 00 00 │ 00 00 00 00 │ 05 81 61 73 │ 70 61 09 01  ..afra............aspa..
000000D8 12 00 00 00 │ 00 00 00 00 │ 05 90 65 6E │ 67 00 09 01 │ 12 01 00 00 │ 00 00 00 00  ..........eng...........
000000F0 05 90 66 72 │ 61 00 09 01 │ 12 02 00 00 │ 00 00 00 00 │ 05 90 73 70 │ 61 00 09 01  ..fra.............spa...
00000108 12 03 00 00 │ 00 00 00 00 │ 05 90 66 72 │ 61 00 09 01 │ 12 04 00 00 │ 00 00 00 00  ..........fra...........
00000120 05 90 73 70 │ 61 00 09 02 │ 00 00 14 00 │ 00 00 00 00 │ 05 91 65 6E │ 67 00 09 02  ..spa.............eng...
00000138 01 00 14 00 │ 00 00 00 00 │ 05 91 66 72 │ 61 00 00 00 │ 00 24 00 03 │ 00 00 00 01  ..........fra....$......
00000150 00 1C 30 30 │ 30 30 35 4D │ 32 54 53 00 │ 00 00 02 00 │ 00 07 FF F8 │ 00 08 C5 18  ..00005M2TS.......џј..Х.
00000168 00 00 00 00 │ 00 00 00 00 │ 00 24 00 03 │ 00 00 00 01 │ 00 1C 30 30 │ 30 30 36 4D  .........$........00006M
00000180 32 54 53 00 │ 00 00 02 00 │ 00 07 FF F8 │ 00 08 C5 35 │ 00 00 00 00 │ 00 00 00 00  2TS.......џј..Х5........
00000198 01 1A 00 14 │ 00 01 00 00 │ 00 07 FF F8 │ FF FF 00 00 │ 00 00 00 01 │ 00 00 00 EB  ..........џјџџ.........ы
000001B0 29 C4 FF FF │ 00 00 00 00 │ 00 01 00 00 │ 01 B6 62 65 │ FF FF 00 00 │ 00 00 00 01  )Фџџ.........Жbeџџ......
000001C8 00 00 02 14 │ 17 34 FF FF │ 00 00 00 00 │ 00 01 00 00 │ 03 03 A0 3B │ FF FF 00 00  .....4џџ..........*;џџ..
000001E0 00 00 00 01 │ 00 00 03 C4 │ 6C 2D FF FF │ 00 00 00 00 │ 00 01 00 00 │ 04 A5 2E 20  .......Фl-џџ.........Ѕ.
000001F8 FF FF 00 00 │ 00 00 00 01 │ 00 00 05 34 │ 9A 7E FF FF │ 00 00 00 00 │ 00 01 00 00  џџ.........4.~џџ........
00000210 05 F0 3E C3 │ FF FF 00 00 │ 00 00 00 01 │ 00 00 06 86 │ 15 65 FF FF │ 00 00 00 00  .№>Уџџ...........eџџ....
00000228 00 01 00 00 │ 07 7E 35 E2 │ FF FF 00 00 │ 00 00 00 01 │ 00 00 08 43 │ EE DB FF FF  .....~5тџџ.........Cюлџџ
00000240 00 00 00 00 │ 00 01 00 00 │ 08 BB 12 13 │ FF FF 00 00 │ 00 00 00 01 │ 00 00 09 3C  .........Л..џџ.........<
00000258 2C AC FF FF │ 00 00 00 00 │ 00 01 00 00 │ 0A 1A A4 19 │ FF FF 00 00 │ 00 00 00 01  ,Ќџџ..........Є.џџ......
00000270 00 00 0B 04 │ AD 77 FF FF │ 00 00 00 00 │ 00 01 00 00 │ 0C 19 36 D8 │ FF FF 00 00  ....*wџџ..........6иџџ..
00000288 00 00 00 01 │ 00 00 0C B2 │ D5 3E FF FF │ 00 00 00 00 │ 00 01 00 00 │ 0D 2C 7D A3  .......Ве>џџ.........,}Ѓ
000002A0 FF FF 00 00 │ 00 00 00 01 │ 00 00 0E 02 │ CB 92 FF FF │ 00 00 00 00 │              џџ..........Ы.џџ....
clark15b is offline   Reply With Quote
Old 5th May 2009, 17:36   #23  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
deank
I commited last version to googlecode (sources only). Try now if you can build it independently.
clark15b is offline   Reply With Quote
Old 5th May 2009, 17:53   #24  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
There is nothing wrong with the numbers and everything is what it should be - it is just something you've not seen in AVCHD.

All lengths in red are correct, you're just miscalculating because you're ignoring other data. Also - values in blue and yellow mean different things.

Contact me via email dean[-at-]deanbg.com or skype (deanrk).
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP
deank is offline   Reply With Quote
Old 7th May 2009, 17:24   #25  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
UPDATE is available.

Version 1.02

- fix in mpls parser, thanks to deank
- fix PMT parser
- use Blu-Ray/AVCHD mpls as playlist if specified (example: './tsdemux -l private/avchd/bdmv/playlist/00000.mpl -d private/avchd/bdmv/stream/ -o out -m')
- display pid and track number
- verbose output switch
- fix win32 crash if invalid directory specified
clark15b is offline   Reply With Quote
Old 11th May 2009, 18:07   #26  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,183
Does it work when the files are read directly from the disc ?

I tried this (on windows system) :
Code:
tsdemux -p "G:\BDMV\STREAM\00000.m2ts"
but tsdemux doesn't parse anything (the disc is decrypted w/ AnyDVD HD). If I put my file on the hard drive, all is fine. What's wrong ?
Kurtnoise is offline   Reply With Quote
Old 12th May 2009, 09:50   #27  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
Very strange, any difference should not be.
clark15b is offline   Reply With Quote
Old 5th June 2009, 17:25   #28  |  Link
espero
Registered User
 
Join Date: Jan 2009
Location: Poland
Posts: 70
@clark15b:
Thank you very much for your great prog. THE ONLY ONE which takes care about audio / video sync (while joining mts from camcorders).
I used your prog with success but... I do not need mkv as output. Please let me know if there is a possibility to mux joined video and audio files directly to mts? I can of course use tsmuxer (instead of mkv merge) or other program but they dont care about .tmc files generated by your great programm and than audio and video are still out of sync.
espero is offline   Reply With Quote
Old 5th June 2009, 19:05   #29  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
espero
Hmm.. you right, tsmuxer can`t use .tmc files. I can try write tool special for join .mts files. It will just override timecodes.
clark15b is offline   Reply With Quote
Old 11th June 2009, 12:30   #30  |  Link
mic64
Registered User
 
Join Date: Jun 2005
Posts: 42
Hi

I was looking for a program, which could be run natively under Linux, so thank you for your effort.
But somehow I cant get this to work with anything.
Under Linux the -l switch just does nothing.
Pointing tsdemux directly to a m2ts file, gives me "Value too large for defined data type"

Can this version already be used under Linux?

Last edited by mic64; 11th June 2009 at 12:34.
mic64 is offline   Reply With Quote
Old 11th June 2009, 12:42   #31  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
mic64
Yes, this program is initially developed for linux.
Take sources from svn and build it:
svn checkout http://tsdemuxer.googlecode.com/svn/trunk/
make
clark15b is offline   Reply With Quote
Old 11th June 2009, 14:20   #32  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
clark,

I added your tool to multiAVCHD, so people with camcoders can input STREAM folders directly.

A lot of tests were done the last few days:

1) If I use *.264 + *.ac3 it all works fine
2) If I create MKV file from these 2 and then convert to m2ts - output is distorted (frame artifacts, framerate changes, etc).

(if you play the MKV file - it is okay, but all breaks after it is converted to m2ts by tsmuxer)

So I decided to use *.ac3+*.264+chapters.xml and load them as a title in multiAVCHD. It now works fine for a lot of users as it seems.

Thanks again!

Dean
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP
deank is offline   Reply With Quote
Old 11th June 2009, 14:37   #33  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
deank
I am very glad that have helped you!
clark15b is offline   Reply With Quote
Old 11th June 2009, 15:47   #34  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
Well, you helped a lot of happy users out there.

I don't have a camcoder so I can't use the feature myself, but a lot of people appreciate your contribution!

Is there a chance for you to look at a sample file (2 .ts files in fact).

This is the scenario:

1) 1 original .ts file
2) File is processed by some ts-cutter/editor to remove commercials
3) Result is 2 .ts files
4) If played alone - both files have perfect video/audio sync.
5) If joined with your application (or tsmuxer) second part gets out of sync.

I'll attach the file in a minute (40MB) if you have time/will to check it.

Dean

(it was send to me by fellow russian/moscow guy)

Here is the link: pr.exe - 7zip self extractable - contains 2 .ts files.
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP

Last edited by deank; 11th June 2009 at 15:54.
deank is offline   Reply With Quote
Old 11th June 2009, 16:00   #35  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
ok, i will look next week (i leave for the weekend, tomorrow at us a holiday).
clark15b is offline   Reply With Quote
Old 16th June 2009, 13:49   #36  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
Quote:
Originally Posted by deank View Post
This is the scenario:

1) 1 original .ts file
2) File is processed by some ts-cutter/editor to remove commercials
3) Result is 2 .ts files
4) If played alone - both files have perfect video/audio sync.
5) If joined with your application (or tsmuxer) second part gets out of sync.
I have understood in what business and I can think up something.
They wish to use what container... MKV or TS?
clark15b is offline   Reply With Quote
Old 16th June 2009, 13:52   #37  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
Well they use .ts or .m2ts.

The best would be to join multiple .ts or multiple .m2ts without this audio asyncronization.

Dean

p.s. Thanks for looking into it.
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP
deank is offline   Reply With Quote
Old 16th June 2009, 14:10   #38  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
Give me 2-3 days, I will write tool for correct join multiple ts/m2ts to one ts/m2ts file.
If they want to replace the container there will be problems.
clark15b is offline   Reply With Quote
Old 16th June 2009, 14:18   #39  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
mic64
Try './tsdemux - < filename.m2ts'.
clark15b is offline   Reply With Quote
Old 18th June 2009, 17:52   #40  |  Link
clark15b
Registered User
 
clark15b's Avatar
 
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
deank

This is output of my new demuxer:

../samples/ts2/PRINCE-01.ts: TS stream detected (packet length=188)
pid=4113 (0x1011), ch=1, id=1, type=0x1b (264), stream=0xe0, fps=25.00, len=88800ms (2217/2281 frames) : =79ms=>[@@@@@]
pid=4352 (0x1100), ch=1, id=2, type=0x81 (ac3), stream=0xfd, fps=31.25, len=88640ms (2770 frames) : [@@@@@]<=239ms=
../samples/ts2/PRINCE-02.ts: TS stream detected (packet length=188)
pid=4113 (0x1011), ch=1, id=1, type=0x1b (264), stream=0xe0, fps=25.00, len=122400ms (3058/3058 frames) : =111ms=>[@@@@@]
pid=4352 (0x1100), ch=1, id=2, type=0x81 (ac3), stream=0xfd, fps=31.25, len=122272ms (3821 frames) : [@@@@@]<=239ms=

Video track in first clip have 2217 TS frames, but JVT NAL (h.264 ES) contain 2281 frames

Besides I see displacement of the beginning and the end of streams (blue highlight).

You can`t simple merge ES of this clips.

I try prepare correct MKV, then I will think
over TS.
clark15b is offline   Reply With Quote
Reply

Tags
avchd, blu-ray, mux

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 04:56.


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