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. |
![]() |
#22 | Link |
Registered User
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 02 │ 01 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 │ џџ..........Ы.џџ.... |
![]() |
![]() |
![]() |
#24 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,251
|
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). |
![]() |
![]() |
![]() |
#25 | Link |
Registered User
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 |
![]() |
![]() |
![]() |
#26 | Link |
Swallowed in the Sea
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
|
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" |
![]() |
![]() |
![]() |
#28 | Link |
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. |
![]() |
![]() |
![]() |
#30 | Link |
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 11:34. |
![]() |
![]() |
![]() |
#31 | Link |
Registered User
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 |
![]() |
![]() |
![]() |
#32 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,251
|
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 |
![]() |
![]() |
![]() |
#34 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,251
|
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. Last edited by deank; 11th June 2009 at 14:54. |
![]() |
![]() |
![]() |
#36 | Link | |
Registered User
Join Date: Apr 2009
Location: Moscow, Russia
Posts: 61
|
Quote:
They wish to use what container... MKV or TS? |
|
![]() |
![]() |
![]() |
#40 | Link |
Registered User
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. |
![]() |
![]() |
![]() |
Tags |
avchd, blu-ray, mux |
Thread Tools | Search this Thread |
Display Modes | |
|
|