Log in

View Full Version : smartLabs tsMuxeR: Transport Stream muxer


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 [80] 81 82 83 84 85

jdobbs
30th May 2010, 18:57
Hi, is there a way to demux the hole movie sound from a movie even if thereīs seems to be spreed on different m2ts fileson the dvd? Tried with TsMuxed, but it didnt collect hole movie sound only the present one out of the m2ts!? :(
Is there a tool to exktact DTS-HD, DTS and/or AC3 from a movie even if its on several m2tsīs ?

Please help !

P.S works like a charm when movie sound is in only one (1) m2ts. Just open the proper MPLS instead of the M2TS file(s) and TSMUXER will do all the work for you.

mrr19121970
31st May 2010, 19:40
anybody know if there is a way to set audio and video PID's with tsmuxer to specific values?


thanks!

Did anyone find a way to this?

deank
31st May 2010, 19:45
There is no way, unless you parse and rewrite the m2ts files.

Of course - an easier way would be to insert "blank" streams (audio/subtitles) in place of the removed ones. Much easier to go that way. multiAVCHD does that in re-author mode.

mrr19121970
1st June 2010, 07:10
Yes, this seems easier than going through the m2ts and changing every PID.

mrr19121970
22nd June 2010, 20:57
Also, this version includes new experimental feature: parameter "secondary" for video streams. This options allows to mux PIP video stream. tsMuxeR centers PIP streams on the screen by vertical position. Possible this function allows to resolve problem with cropped video in future. This options available in tsMuxer only and does not provided in tsMuxerGUI.

Does anyone have a sample .meta file that caters for secondary audio & video.

Thanks. Mike.

jdobbs
23rd June 2010, 02:25
There is no way, unless you parse and rewrite the m2ts files.

Of course - an easier way would be to insert "blank" streams (audio/subtitles) in place of the removed ones. Much easier to go that way. multiAVCHD does that in re-author mode. How do you format the blank streams? Do you use silent AC3 or something similar? Zero filled streams?

I was planning on simply pulling the complete stream and inserting into the M2TS with adjustments to packet timing. But your way sounds better.

crl2007
23rd June 2010, 08:18
http://forum.doom9.org/showthread.php?p=1358535#post1358535

To keep it short, you replace those streams with shorter versions ( 200ms video/audio streams ). I uploaded there an archive ready to be used. multiAVCHD can do this if you want to blank some intros or even audio streams.

This is only done for keeping menu functions.

mrr19121970
23rd June 2010, 09:05
How do you format the blank streams? Do you use silent AC3 or something similar? Zero filled streams?


jsoto (http://jsoto.posunplugged.com/audiotools.htm)has a nice util to create silent audio files. I use a self created empty PGS, and a AC3 from jsotos util and a blank 200ms h264 video in Clown_BD.

deank
23rd June 2010, 09:42
Does anyone have a sample .meta file that caters for secondary audio & video.

tsMuxeR can create secondary VIDEO only, but not audio:

MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500 --blu-ray

V_MPEG4/ISO/AVC, "main_video.mkv", fps=23.976, insertSEI, contSPS, track=1, lang=eng
A_DTS, "main_video.mkv", track=2, lang=eng

V_MPEG4/ISO/AVC, "secondary_video.m2ts", fps=23.976, insertSEI, contSPS, track=4113, lang=eng, secondary
A_AC3, "secondary_video.m2ts", track=4352, lang=bul

Even if you change the last line to:

A_AC3, "secondary_video.m2ts", track=4352, lang=bul, secondary

the audio will be muxed with primary PID (0x1101). To use secondary audio you'll need to rewrite the m2ts files, mpls and clpi.

Dean

deank
23rd June 2010, 09:49
How do you format the blank streams? Do you use silent AC3 or something similar? Zero filled streams?

I was planning on simply pulling the complete stream and inserting into the M2TS with adjustments to packet timing. But your way sounds better.

I store as an array (1216 bytes) a small AC3 file I created myself (76ms 5.1ch 128kbps) and I use it when I need it to mux 'blanked' stream. Here it is (http://multiavchd.deanbg.com/blank_audio.ac3).

One can create such small file for DTS audio, too.

Dean

mr.duck
8th July 2010, 00:57
Hi, I would like to batch remux my TS files. I don't know how to generate the correct meta file because the file name will always be different. As is the video and audio track numbers and the audio delay.

Typically the TS file will be just 1 MPEG2 video stream and 1 MP2 audio track. I just want to run it through tsMuxeR to clean up the file (plus it saves 100s of MB from somewhere). Is it possible? How can it be done?

mrr19121970
8th July 2010, 07:09
Why not use the tsMuxeR GUI and save the meta files and then execute in batch when you're done?

Otherwise here's the manual (http://forum.doom9.org/showthread.php?t=142559) for creating them yourself.

mr.duck
8th July 2010, 15:55
Why not use the tsMuxeR GUI and save the meta files and then execute in batch when you're done?


Because it will only work once and any new files will have a different name, audio delay, video and audio track numbers.

I would just like to remux any TS file I pass to it. Just keep the main audio and video streams, and spit it out all cleaned up.

mr.duck
9th July 2010, 20:48
I'm giving up on tsMuxeR. It's just not workable. There are better options anyway like eac3to, projectX, etc. Remuxing to MKV can save 100s MB without any transcoding. Performance is much better too.

Iron_Mike
10th July 2010, 03:20
Hi All,

have a quick question about the use of tsmuxer.

I am ripping 1:1 copies of Blu-Rays to HDD and play them via my WDTV Live. Problem is that the WDTV Live has limitations when it comes to converting True-HD to Stereo output.

I read that you can simply demux the AC3 core out of the True-HD audio track and then add it to the main m2ts files.

I tried to do that with tsmuxer but it always gives me this error message:

"Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps."

Here's what I did:

(1.) used tsmuxer to extract the AC3 core from the True-HD track / tsmuxer > demux > check down-convert True-HD to AC3
(2.) the result is a file with .ac3 extension which apparently I cannot join with the main m2ts file, as they have to be same extension... so I did...

(3.) tsmuxer > M2TS muxing > check down-convert True-HD to AC3 --> output was a m2ts file
(4.) then mux the audio file with the main m2ts file that contains the movies and subtitles / tsmuxer > M2TS muxing > add main m2ts file > join audio m2ts file

--> then this error occurs at 97.8 %: "Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps."

Any idea what I am doing wrong ?

Is it a problem that the True-HD track is in the main m2ts files and I want to join the AC3 track (that came from the True-HD track) ?


Thanx for your help !!!

- M

setarip_old
10th July 2010, 05:11
@Iron_Mike

Hi!

Perform ONLY 3) (Not 1), 2) or 4)) and you'll be a happy camper ;>}
(3.) tsmuxer > M2TS muxing > check down-convert True-HD to AC3 --> output was a m2ts file If you need a full BluRay "package" ("Stream", "Playlist", etc.) simply select "BluRay" instead of "M2TS" in "tsMuxeR"...

Iron_Mike
10th July 2010, 06:27
@setarip_old:

thanx for your answer !


My main idea was to keep True-HD and add a normal AC3 stream.

The AC3 stream would be coming out of of the True-HD stream...

How would I do that ?

Thanx !!!

- M

setarip_old
10th July 2010, 07:13
@Iron_Mike


My main idea was to keep True-HD and add a normal AC3 stream.No big thing, but nowhere in your initial post did you say that.

Be that as it may, try the following:

1) Load the same original file into tsMuxeR

2) Uncheck all files EXCEPT the True-HD file

3) Select "Demux" - and you'll now have an "extra" copy of the True-HD file (Do NOT exit tsMuxeR)

4) In tsMuxeR, "ADD" (NOT "JOIN") the "extra" copy of the True-HD file to the already existing file in the tsMuxeR upper window (You may have to change the name of the "extra" True-HD file)

5) Place checkmarks next to ALL streams in the lower window

6) Highlight ONLY ONE of the True-HD streams in the lower window and check down-convert True-HD to AC3

7) Select either "BluRay" or "M2TS" and go forit ;>}

Iron_Mike
11th July 2010, 08:19
@ setarip_old:

Thank you very much for this detailed tutorial - worked perfectly !!!

Thanx again.

- M

setarip_old
11th July 2010, 08:52
@ setarip_old:
Thank you very much for this detailed tutorial - worked perfectly !!!
As always, my pleasure ;>}

UltraTV
13th July 2010, 22:47
We use TSmuxer almost exclusively for our blu-ray and iphone encodings, but recently we've run into some compatibility issues with the way TSmuxer handles splitting files. Files are split non-uniformly (I'm guessing splitting occurs at keyframes), and the split duration is a minimum 2.5x the keyframe length.

This means a split value of 5 seconds requires keyframes that are less than 2 seconds. And if variable playlists are used with http live streaming, when adaptive bitrate causes the stream to switch to another bitrate, all sorts of weird things start happening.

Apple released a mediafilesegmenter tool for TS streams, but the tool is extremely limited. It doesn't mux TS, only works on OS X, and if you hold it the wrong way it stops working.

It would be ideal to keep using TSmuxer for our work, but we need the ability to create uniform segment lengths regardless of keyframe length. Basically, we need the splitting tool to behave like a proper media segmenter.

It's a lot to ask for something we don't pay for, but that's what we're here for, right?

THANKS!

dvdboy
16th July 2010, 16:16
Hi,

I'm trying to automate a process to make simple "play and stop" blu-ray discs using TSmuxer, but it seems that the builds that TSMuxer creates by default are "looping". Is there any way via the meta file to make the disc stop after the title has been played. I took a quick look in the bdmv files using BDEdit and it seems the last command is a JumpTitle1 which effectively 'loops' the disc content.

Many Thanks

DVD-BOY

deank
16th July 2010, 16:21
You can replace the JUMP command with BREAK and save the copy of index.bdmv. Then you can use it each time you create a structure and overwrite the one which tsMuxeR creates. :)

Dean

dvdboy
16th July 2010, 16:24
You can replace the JUMP command with BREAK and save the copy of index.bdmv. Then you can use it each time you create a structure and overwrite the one which tsMuxeR creates. :)

Dean

Excellent Idea!! Silly N00b question, but where is the BREAK command? Did you mean within BDEdit?

-- Sorry, did you mean a NOP?

Many Thanks

DVD-BOY

deank
16th July 2010, 16:32
Yes. Mark the JUMP command and press SHIFT-N. JUMP will turn to NOP. Then use the drop-lists to select GO TO - BREAK.

dvdboy
16th July 2010, 16:38
Excellent, Thanks Dean.

laserfan
16th July 2010, 20:18
I'm trying to automate a process to make simple "play and stop" blu-ray discs using TSmuxer, but it seems that the builds that TSMuxer creates by default are "looping". Is there any way via the meta file to make the disc stop after the title has been played.Here is what I made based on feedback from deank and MadMonkey57 (I even give them credit in the Content Provider part shown w/BDEdit):

DontLoopJustStop.7z (http://www.mediafire.com/?bq58l8e39yjyp4e)

I just copy these two files (index.bdmv and MovieObject.bdmv) and Paste them-over the originals and the backups. Works great, and alot easier than what I was doing before (editing every mux by hand).

Capsbackup
16th July 2010, 23:36
Here is what I made based on feedback from deank and MadMonkey57 (I even give them credit in the Content Provider part shown w/BDEdit):

DontLoopJustStop.7z (http://www.mediafire.com/?bq58l8e39yjyp4e)

I just copy these two files (index.bdmv and MovieObject.bdmv) and Paste them-over the originals and the backups. Works great, and alot easier than what I was doing before (editing every mux by hand).

Very nice laserfan, I will give it a try.
I must admit though , I have always liked the looping! :o

mrr19121970
19th July 2010, 10:39
Hi,

I'm trying to automate a process to make simple "play and stop" blu-ray discs using TSmuxer, but it seems that the builds that TSMuxer creates by default are "looping". Is there any way via the meta file to make the disc stop after the title has been played. I took a quick look in the bdmv files using BDEdit and it seems the last command is a JumpTitle1 which effectively 'loops' the disc content.

Many Thanks

DVD-BOY

Did you see this tool (http://forum.doom9.org/showthread.php?t=146412) from Rotty, does just that?

insaneoctane
24th July 2010, 11:39
Can someone guess why when I take a full length video HD VC-1 (m2ts) file that plays perfectly well in the OS (through directshow/MPC) and run it through TsMuxeR (via Dean's Multi-AVCHD tool for PS3 compliance), the resultant 4gb files would NO longer be playable by the OS (through VFW/directshow)? The resultant 4gb files are not corrupt because VLC can play them...but they won't play through the OS anymore.

GSPOT says:
RENDERING FAILED: FOLLOWING IS THE ERROR REPORTED BY DIRECTSHOW
0X80040265: [UNKNOWN]

MPC says:
Cannot render the file

This happens to a handful of files I've got, not all of them. I've googled this problem for months now, honestly, and I just can't figure out what's going on.

setarip_old
24th July 2010, 20:51
@insaneoctane

Hi! Can someone guess why when I take a full length video HD VC-1 (m2ts) file that plays perfectly well in the OS (through directshow/MPC) and run it through TsMuxeR (via Dean's Multi-AVCHD tool for PS3 compliance), the resultant 4gb files would NO longer be playable by the OS (through VFW/directshow)? ... This happens to a handful of files I've got, not all of them.

What are the titles of your problematic original BluRay discs?

What software and procedures did you use to initially rip and compress it?

insaneoctane
24th July 2010, 23:18
@insaneoctane

Hi!

What are the titles of your problematic original BluRay discs?

What software and procedures did you use to initially rip and compress it?


My original titles are Harry Potter 1 thru 5

No compression used, ripped with anydvd hd and streams removed with tsmuxer only. Those files were broken into 4gb chunks for playback on ps3. They no longer play in OS, so I used tsmuxer AGAIN to recombine them into a single m2ts file and the OS will play the file (yeah!), but when mAVCDH runs them back through tsmuxer for output, the resultant 4gb m2ts files won't play in the OS, but VLC never has trouble...It seems to only be on these HP VC-1 files and I'm lost.

coolalibaba
28th July 2010, 10:30
does tsmuxer support DTS-HD MA?

SeeMoreDigital
28th July 2010, 15:09
does tsmuxer support DTS-HD MA?Yes...

tebasuna51
29th July 2010, 10:58
WARNING:
- tsMuxeR don't recognize audio tracks (AC3/DTS) from mkv's generated with MkvMerge v4.1.x defaults.
- tsMuxeR crash with video track H264 from mkv's generated with MkvMerge v4.2.0 defaults.

rapscallion
29th July 2010, 13:25
does tsmuxer support DTS-HD MA?

Yes...
...and also DTS-Hi Res.

coolalibaba
30th July 2010, 03:24
WARNING:
- tsMuxeR don't recognize audio tracks (AC3/DTS) from mkv's generated with MkvMerge v4.1.x defaults.
- tsMuxeR crash with video track H264 from mkv's generated with MkvMerge v4.2.0 defaults.
that's why....someone needs to upgrade tsmuxer pls!

insaneoctane
31st July 2010, 20:43
bump.
Can someone guess why when I take a full length video HD VC-1 (m2ts) file that plays perfectly well in the OS (through directshow/MPC) and run it through TsMuxeR (via Dean's Multi-AVCHD tool for PS3 compliance), the resultant 4gb files would NO longer be playable by the OS (through VFW/directshow)? The resultant 4gb files are not corrupt because VLC can play them...but they won't play through the OS anymore.

GSPOT says:
RENDERING FAILED: FOLLOWING IS THE ERROR REPORTED BY DIRECTSHOW
0X80040265: [UNKNOWN]

MPC says:
Cannot render the file

This happens to a handful of files I've got, not all of them. I've googled this problem for months now, honestly, and I just can't figure out what's going on.

setarip_old
31st July 2010, 22:40
@insaneoctane but when mAVCDH runs them back through tsmuxer for output, the resultant 4gb m2ts files won't play in the OS, but VLC never has troubleWhat format are you selecting from within multiAVCHD?

lchiu7
31st July 2010, 22:41
Why don't you post the mediainfo information also? And what OS are you using?

Octo-puss
1st August 2010, 09:10
Is this tool dead?...

setarip_old
1st August 2010, 09:27
Is this tool dead?... It hasn't been updated in quite a while, however, it continues to be fully functional and extremely useful...

crl2007
3rd August 2010, 22:28
WARNING:
- tsMuxeR don't recognize audio tracks (AC3/DTS) from mkv's generated with MkvMerge v4.1.x defaults.
- tsMuxeR crash with video track H264 from mkv's generated with MkvMerge v4.2.0 defaults.


No problem here as long as I set the compression from "Extra Options" tab to none for all the streams ( audio, video, subtitle ) I put into my mkv.

mastrboy
4th August 2010, 16:27
Is there a way for tsmuxer to split on chapter's like DVD Decryptor ?

fschiefer
5th August 2010, 19:00
I hope anyone here can help me, I found no answer by using the search function.

When I try to mux a .ts file out of a H264 HD movie file (created with megui x264 / Blu-ray presets), tsmuxer always comes up with the message "b-pyramid level 1 detected, shift DTS to 2 frames" --> What does that message mean?

deank
5th August 2010, 21:08
1) It means that you have nothing to worry about.

and

2) It means that bitrate + bframe count require more DTS (display time-stamps / m2ts packets) to describe the whole frame.

Dean

chompy
17th August 2010, 10:26
Hi,

I’ve done a quick search and I haven’t found this before, so this is my story (sorry it isn’t short):

I have a seamless branching movie (Up Spanish edition) with English DTS-HD and Spanish DTS audio tracks and in order to make a backup that fits in BD25 without reencoding I just wanted to keep English DTS core.

I’ve used MultiAVCHD to blank unwanted features and to select only English DTS core and Spanish DTS audio tracks while keeping the seamless branching structure: the video plays fine, Spanish stream sounds great, BUT, English stream has sometimes very small (but discernible) gaps that coincide with the change of m2ts files in playlist. It isn’t always noticed, but one of this changes it’s done while someone is speaking and you can clearly hear it.

I’ve done lots of tests these last days that can be summarized in:
- Using BD-Rebuilder keeping and removing PiP, reencoding or just remuxing also ended with these weird gaps in English track (while Spanish track always sounded fine).
- If I manually do the remux process in tsMuxeR the problem is still there.
- If I keep the English track as DTS-HD, everything is fine: both audio streams play perfectly fine.
- If I feed DTS-HD StreamPlayer (in orther to decode it to PCM) with English DTS track, StreamPlayer crashes when it arrives to 100% of decoding progress (I got the wavs in my destination folder, but they were empty). But Spanish DTS track ends perfect without any error.
- If I convert de English DTS track to wavs with eac3to, it says “The last DTS frame is incomplete and thus gets skipped”. Doing the same with English DTS-HD or Spanish DTS ends correctly without any alert.

At this point it was clear to me that there was something wrong with tsMuxer when you select the option to downconvert DTS-HD to DTS, and I did some tests with eac3to doing the demux process:
- English downconverted to DTS and Spanish DTS can be decoded to PCM using DTS-HD StreamPlayer without any error.
- English DTS-HD, English downconverted to DTS and Spanish DTS can be converted to wavs with eac3to without alerts.

Then I loaded all the wavs I had from all my tsMuxer and eac3to demuxes obtained via DTS-HD StreamPlayer and eac3to in Adobe Audition and all had the same exact length except the wavs that came from tsMuxeR’s English downconverted DTS track which was 10 ms shorter (the last DTS frame skipped by eac3to).

I don’t know if this problem only happens with this movie or if it’s a bug in tsMuxeR, because I haven’t had time to do more tests, but I’ll do them soon.

Greetings

EDIT: I've done more tests, and now I know for sure that this is a tsMuxeR bug: all DTS-HD tracks downconverted to DTS core will have last frame incomplete, making DTS-HD StreamPlayer crash while decoding them to PCM and making eac3to cut their last milliseconds (the tests done have been Gladiator 10th aniversary edition, King Kong, Toy Story and Toy Story 2), and what's worse, there will be gaps in audio in seamless branching blu-rays at m2ts change points

mrr19121970
18th August 2010, 07:38
@Chompy

Will you please try out Clown_BD BD Builder to see if the same bug is there too.

I've copied loads of seamless branching titles, but have never heard a gap in the audio, I don't have the Spanish UP to try myself.

Thanks.

chompy
18th August 2010, 08:24
@ mrr19121970

I've neither noticed before, but in UP (I don’t know if all version are equally split) there’s a m2ts change after UP logo appears and then the narrator is speaking and I can hear the small gap (remember it’s just 10 milliseconds) in his voice (you must pay attention, but it’s clearly there) and this problem only happens while only keeping DTS core, and if I’m not wrong, Clown_BD BD Copier only supports core downconversion from v0.36.

As soon as I arrive this noon, I’ll made a test with Clown_BD BD Copier and report back my findings, but remember that even if you don’t notice it, the error with tsMuxeR extracting core is there (I don’t know if the bug also happens with TrueHD as I don’t have any disk with it to test), and you can easily test it downconverting any DTS-HD to DTS any trying to convert to wavs with eac3to, DTS-HD StreamPlayer or any tool that can do this operation.

Greetings

mrr19121970
18th August 2010, 13:28
Can this be cured by changing the .meta file to include

, timeshift=10ms

after the down-to-dts statement?