View Full Version : smartLabs tsMuxeR: Transport Stream muxer
idbirch2
20th February 2009, 10:46
In what way? I tested splitting yesterday with 1.8.18 and the output was fine.
pleinlesyeux
20th February 2009, 12:12
Hi !
When demux a raw file to .wav, the resulting wav file is split every 4GB.
Is there a way not to split every 4GB
Is there a way to join th eresulting wav files without quality issue ?
Thank you !
tebasuna51
20th February 2009, 13:15
When demux a raw file to .wav, the resulting wav file is split every 4GB.
Is there a way not to split every 4GB
Nope, maybe next Tsmuxer version can output w64, rf64 or, at least wav >4GB.
Is there a way to join th eresulting wav files without quality issue ?
Nope, the wav extracted with TsMusex are buggy (extra final bytes). Use eac3to to extract wav files.
deank
20th February 2009, 13:32
WAV files cannot be bigger than 4GB - take some time to read more. That's why LPCM is used. W64 and RF64 are other formats.
madshi
20th February 2009, 13:39
WAV files cannot be bigger than 4GB
Yes, they can. It's out of spec (a header fields overflows), but possible. There are a number of tools that can read and write > 4GB WAV files just fine.
[)370|\|470!2
20th February 2009, 14:32
In what way? I tested splitting yesterday with 1.8.18 and the output was fine.
http://img6.imageshack.us/img6/420/1243un7.jpg
Same happens if --split-size= string in .meta executed via cmd/batch.
pleinlesyeux
20th February 2009, 16:38
Thanks for your responses.
My issue is UI want to import with scenarist mui generator LPCM/RAW files.
The wav produced with eac3to does attribute the right channels (even with the custom map which does not seem to work. I use a gui, so perhaps it is that)
The wav produced with tsmuxer is accepted by mui but is cut in 2. Mui gen does not want to joint the wav files.
The raw produced by eac3to is accepted by mui but rejected by scenarist...
What option do I have ?
deank
20th February 2009, 18:21
Can you create LPCM from your raw file with eac3to and import it in scenarist?
pleinlesyeux
20th February 2009, 18:47
I don't know how.
Eac3to allows me to create a raw file, but not LPCM.
I'm gonna google raw to LPCM. Thank you for that lead.
deank
20th February 2009, 18:57
eac3to supports LPCM... It may be the GUI you use that doesn't show the option. If you have a raw audio file try to run eac3to from the command prompt
eac3to rawaudio.raw newaudio.lpcm
If you know its parameters, such as channels, resolution, endianness you will need to specify in the command line, for example:
eac3to rawaudio.raw newaudio.lpcm -6 -48000 -little
pleinlesyeux
20th February 2009, 19:38
Hey Deank,
I just tried another GUI and yes there is lpcm output !
But I still was denied by scenarist even though mui generator created the file OK.
Error : FilePath : I:\HP4\HP4\BDMV\STREAM\HPAUDIO.lpcm.ves,
It failed in reading the file.
So far, I can only import .wav from a .raw/lpcm rip. And of course I'm blocked with the 4GB limit...
deank
20th February 2009, 19:44
Then....(if you can afford scenarist) you can use a DTS or TrueHD encoder that will keep your audio pristine and will allow you to add it to scenarist... Or you're another HD fan that just happened to have scenarist?
Butterfly666
21st February 2009, 16:31
I can confirm that DTS-HD Master 7.1 works with TsMuxer 1.8.18 on Ps3.
(played with extern HD)
lchiu7
21st February 2009, 22:02
I've been using this progam to remux x264 .mkv (mostly 1080p with dts) to .ts for better more stable playback and compatability with the popcorn hour (networked media tank). .ts for a couple reasons is just more stable on the pch (popcorn houor) then mkv and can usually handle the intensive 1080p stuff with dts 100% of the time...
My understanding is that there is more CPU effort required to play MKV on the PCH than ts files. There is a bit of a debate going on at the PCH forum about supporting multichannel FLAC in MKV and questions about whether the Sigma processor could actually handle all that processing.
If your title doesn't play smoothly it's likely you encoded it with an incompatible profile. I myself encode all my stuff to m2ts format (I find it hard to see why one would use MKV for one's own content) which does take a bit more space but also now PS3 compatible
piratburner
22nd February 2009, 16:49
Is latest version of TsMuxer good for joining several m2ts files ? eac3to so far is the only SW I trust for joining m2ts files :-) If I remember so was there a problem that sound get off sync when using Tsmuxer ??
dalemccl
23rd February 2009, 04:43
In the tsMuxer GUI, about half-way down the interface window there is an area labeled "General Track Options". When an audio track is highlighted above, the options line shows "Delay (in ms)". It is usually pre-filled with 0 (zero). But with some movies there is a non-zero value in it, such as -42.
Is tsMuxer getting this delay information from the movie and thus I should leave the value as-is, even if it is non-zero?
Duppie
23rd February 2009, 05:18
not the important ones like CLIPINF bugs:
Aspect Ratio sometimes wrong
Number of packets incorrectly calculated
Coarse/Fine table incorrect
Also the version numbers in the headers are are still mixed up (sometimes BD, sometimes AVCHD)
The BD directory structure is still not correct
Seamless Branching Not Handled Correctly
1080i50 VC1 streams simply not recognied
Did you send this information to the developers of TsMuxer?
hakmana
23rd February 2009, 09:19
Is there an english translation of the readme file?
Is there a way to script the demux operation. I basically want to do exactly what tsmuxergui does by loading in a .ts file, choosing demux, and pressing start, but from a command line script.
I think I found an early translation of the readme, but it doesn't say anything about scripting demux, only scripting muxing.
Thanks
deank
23rd February 2009, 10:17
You can take a look at the 'meta' window in tsmuxergui. Demux works the same way as muxing.
You need to create your meta file and then execute tsmuxer.. For example - demuxing the audio track from a file:
tsmuxer.exe STREAM.meta .
and in the stream.meta you can have something like:
MUXOPT --no-pcr-on-video-pid --new-audio-pes --demux --vbr --vbv-len=500
A_AC3, "D:\multiAVCHD\AVCHD_1\BDMV\STREAM\00000.MTS", track=4352, lang=und
It will produce a demuxed audio file: 00000.track_4352.ac3.
setarip_old
23rd February 2009, 21:58
I have had great success experimenting with using (presently freeware) "MakeMKV" to rip and convert any and all BluRay discs (except BD+) to MKV and then using "tsMuxeR" to convert the "movie only" (as well as any other titles on the disc, should I choose to do so) back to BluRay.
Using "MakeMKV" eliminates the necessity of using (payware) "AnyDVD-HD".
I have recently run into a problem using this methodology with "There Will Be Blood":
Although the "movie only" MKV file created by "MakeMKV" plays back properly and indicates the proper running time, once it's been converted to BluRay by "tsMuxeR", the resultant video stutters and is indicated to be exactly twice its original running time.
Does anyone know why this would happen and, if so, how to overcome this problem?
zoner
23rd February 2009, 22:33
maybe something to do with pulldown.
if it wasn't removed or wasn't removed correctly, a 50i movie into 25p(when 1 Progressive frame represents an Interlaced frame instead of 2) could result in an exact twice the size
setarip_old
24th February 2009, 03:29
My apologies, I omitted some information regarding my difficulty with "There Will Be Blood" in Post #2721:
When I first attempted to use "tsMuxeR" to convert the MKV file to a compliant BluRay "package", after about 5 seconds, "tsMuxeR" generated the following fatal error messageReading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: F:\_BloodMKV\title00.mkv
As a consequence, I had to use "tsMuxeR" to demux the video and audio streams and then remux them as a compliant BluRay "package" - which has resulted in this stuttering (and in several spots, slideshow-like) presentation, with an indicated playback time of exactly twice the actual playback time...
I fdon't believe this has anything to do with "pulldown", as this BluRay, like all of my others (which are NOT problematic) is at 23.976fps
[)370|\|470!2
24th February 2009, 14:29
I'd assume it's an vc1 stream contained in that mkv, as i bumped into same error several times dealing with similar files. The only workaround i could think of atm would be extracting all streams using mkvextract with --raw switch and recombining them later using tsmuxer.
nwg
25th February 2009, 03:17
Has anyone had fast fwd/rewind problems with 720p24? I used ripbot to do The Dark Knight to make it fit on a BD 25 (movie only) and then it uses TsMuxer to mux with. I cannot go fwd or back without the picture freezes. I used the fixclpi thing on the files before burning. I have the same thing when doing BD to DVD and thought it was just the Sony S350 player in AVCHD mode causing it.
I suspect it might be because of the resolution but doing the same thing at 1080p would take four days ! If I use TsMuxer to do a movie only version with the original 1080p24 video/audio and less than 25GB so I can burn it straight away the fwd/rewind is fine.
I also just processed the files again through the clown_BD gui and get the same.
drelin
25th February 2009, 20:21
For foward/rewind problem on standalone player,
I' ve try a solution and it's works on Sony S350 (and ps3 not tested on other players).
1) In tsmuxser, after import files (video.264, audio.ac3, sub.srt..), force the fps (check box and indicate de right fps) and force the level (4.1)
2) After compilation (folder BDMV and files created), use fixclpi on the 2 clpi files (1 in CLPI folder and 1 in backup/CLPI folder)
3) Use CLIPINF Editor and fix the header (for avchd or BD) and fix the length.
Then Burn with UDF 2.50 file system
I've made sevaral test and the forward/rewind work fine and no problem for acces to the chapter.
I hope this method provide a good solution for everybody have the same problem on standalone player.
nwg
25th February 2009, 22:50
Hmmm. The Blu Ray is already muxed at the right fps and level 4.1. Doesn't clown_BD already correct the headers and clpi?
Nullity
26th February 2009, 02:30
Has anyone had fast fwd/rewind problems with 720p24? I used ripbot to do The Dark Knight to make it fit on a BD 25 (movie only) and then it uses TsMuxer to mux with. I cannot go fwd or back without the picture freezes. I used the fixclpi thing on the files before burning. I have the same thing when doing BD to DVD and thought it was just the Sony S350 player in AVCHD mode causing it.
I suspect it might be because of the resolution but doing the same thing at 1080p would take four days ! If I use TsMuxer to do a movie only version with the original 1080p24 video/audio and less than 25GB so I can burn it straight away the fwd/rewind is fine.
I also just processed the files again through the clown_BD gui and get the same.
I use MeGUI instead of RipBot, which has a "Standalone-Bluray" profile that has always worked perfectly for me. You might want to check out MeGUI to do your encoding, or perhaps you can just copy the settings from that profile into RipBot (not sure how RipBot works).
A note though, this profile seems to produce completely compliant streams, so when importing the resulting h264 file into tsMuxer, make sure to uncheck both "Add picture timing info" and "Continually insert SPS/PPS".
nwg
26th February 2009, 02:47
I use MeGUI instead of RipBot, which has a "Standalone-Bluray" profile that has always worked perfectly for me. You might want to check out MeGUI to do your encoding, or perhaps you can just copy the settings from that profile into RipBot (not sure how RipBot works).
A note though, this profile seems to produce completely compliant streams, so when importing the resulting h264 file into tsMuxer, make sure to uncheck both "Add picture timing info" and "Continually insert SPS/PPS".
Last time I tried MeGUI, I found it too confusing. I needed something like Ripbot to do everything for me.
I decided to mux the files again doing everything in drelin's post and it is the same. Chapters work ok though.
setarip_old
26th February 2009, 04:42
@dburckh
Hi!
Regarding my post #2721 and 2723 in this thread:
In another forum, you posted the following regarding ToNMTUI:Even if your source is MKV, VC1ConvJ is about 9x faster than vc1conv (on my machine).Although I have ToNMTUI up and running JAVA and all, I cannot seem to get it to process my MKV (1080p VC-1 plus .AC3).
Would you please explain how I can use "VC1ConvJ" to process this MKV?
hakmana
27th February 2009, 02:02
You can take a look at the 'meta' window in tsmuxergui. Demux works the same way as muxing.
You need to create your meta file and then execute tsmuxer.. For example - demuxing the audio track from a file:
tsmuxer.exe STREAM.meta .
and in the stream.meta you can have something like:
MUXOPT --no-pcr-on-video-pid --new-audio-pes --demux --vbr --vbv-len=500
A_AC3, "D:\multiAVCHD\AVCHD_1\BDMV\STREAM\00000.MTS", track=4352, lang=und
It will produce a demuxed audio file: 00000.track_4352.ac3.
Is there any way to just demux all the tracks in the file without specifying them explicitly? Looking at the meta file window in the gui, I see it specifies all the streams and PIDs as soon as the file is loaded, but I do not know how I would automatically generate this myself to make a meta file.
Andrew
lchiu7
27th February 2009, 02:04
I have had great success experimenting with using (presently freeware) "MakeMKV" to rip and convert any and all BluRay discs (except BD+) to MKV and then using "tsMuxeR" to convert the "movie only" (as well as any other titles on the disc, should I choose to do so) back to BluRay.
Using "MakeMKV" eliminates the necessity of using (payware) "AnyDVD-HD".
I have recently run into a problem using this methodology with "There Will Be Blood":
Although the "movie only" MKV file created by "MakeMKV" plays back properly and indicates the proper running time, once it's been converted to BluRay by "tsMuxeR", the resultant video stutters and is indicated to be exactly twice its original running time.
Does anyone know why this would happen and, if so, how to overcome this problem?
Don't have this movie but how are you converting the movie to BluRay format? Are you just passing the MKV stream to tsmuxer or using mkvextract to extract the elemental streams first and then muxing back to a m2ts format?
Also have you tried the latest beta of tsmuxer out there?
setarip_old
27th February 2009, 02:42
@lchiu7
As I've done successfully with ALL BluRays other than those with VC-1 videostreams, I first simply used tsMuxer (I've tried using tsMuxer v.1.8.4, 1.8.8, and the latest beta 1.8.18) - and arrived at the problem I originally described here.
I then tried using "MKVExtractGUI", but it did absolutely nothing.
If there is a specific methodology for using "MKVExtract" directly (without the GUI), please spell it out step-by-step for me, as it's been ages since I've used any (I presume) commandline input (Back when DOS 5.0 was all the rage, IIRC ;>})
lchiu7
27th February 2009, 02:58
@lchiu7
As I've done successfully with ALL BluRays other than those with VC-1 videostreams, I first simply used tsMuxer (I've tried using tsMuxer v.1.8.4, 1.8.8, and the latest beta 1.8.18) - and arrived at the problem I originally described here.
I then tried using "MKVExtractGUI", but it did absolutely nothing.
If there is a specific methodology for using "MKVExtract" directly (without the GUI), please spell it out step-by-step for me, as it's been ages since I've used any (I presume) commandline input (Back when DOS 5.0 was all the rage, IIRC ;>})
And you call yourself a hacker!
mkvextract is a funny program. For a while it looks like it's not doing anything and then all of sudden you see progress bars at the bottom of the gui. But if you want to use the CLI it's easy enough to fire up mkvextracgui or use mediainfo to identify what tracks are in your MKV then at the command line you would enter
mkvextract tracks "moviename.mkv" 1:moviename.h264" 2:"moviename.ac3"
Now in your situation I suspect it would be more like
mkvextract tracks "moviename.mkv" 1:moviename.vc1" 2:"moviename.thd+ac3" if as you say the MKV has VC1 video and THD audio
Then you can input those two files into the latest beta tsmuxer and see how that goes
I know the latter works since I just completed backing up a HD-DVD with TrueHD audio. I ended up with two files, a VC1 file and thd+ac3 file. I was able to pass them into tsmuxer and output a m2ts file
setarip_old
27th February 2009, 05:05
@lchiu7And you call yourself a hacker!No, I call my self an old man hanging on to his ancient computer skills by a thread ;>}
mkvextract is a funny program. For a while it looks like it's not doing anything and then all of sudden you see progress bars at the bottom of the gui. But if you want to use the CLII'll give the GUI another try, based on wjat you've described. I really have NO desire to go the commandline route, if it's not absolutely imperative to do so...
I was able to pass them into tsmuxer and output a m2ts fileSimply as an .M2TS file or a BluRay "package", including the .M2TS file?
Did it playback properly?
Have you done the same with any BluRay VC-1 source material?
lchiu7
27th February 2009, 05:49
@lchiu7No, I call my self an old man hanging on to his ancient computer skills by a thread ;>}
I feel some empathy here:)
I'll give the GUI another try, based on wjat you've described. I really have NO desire to go the commandline route, if it's not absolutely imperative to do so...
Well even for old codgers like ourselves, the CLI isn't always a bad thing!
Simply as an .M2TS file or a BluRay "package", including the .M2TS file?
Did it playback properly?
Have you done the same with any BluRay VC-1 source material?
After running it through tsmuxer I got a large m2ts file. I then passed that through multiAVCHD which produced a AVCHD folder with the appropriate subfolders including the STREAM folder. It cut the large 16Gb file into a bunch of 4Gb ones and created a playlist that directed the PS3 to play each in sequence and it seems seamlessly.
I haven't tried BD VC1 material yet but I can't imagine it would be any different. But will see if I can find a VC1 title in my collection to try out and report back.
[EDIT]
I didn't realise but I had just done Eraser. It's VC1 TrueHD. My workflow was pretty simple
1. Use DumpHD to copy the appropriate m2ts file off the BD
2. Run tsmuxer on the file removing all tracks apart from the VC1 video and TrueHD audio
3. Pass the output file to multiAVCHD which created a AVCHD folder and STREAM subfolder containing a bunch of MTS files each about 4G in size
4. Copy that folder to a FAT32 USB drive
5. Plug it in the PS3 and play it - worked fine - got TrueHD audio
tebasuna51
28th February 2009, 00:49
Is there any way to just demux all the tracks in the file without specifying them explicitly?
Use eac3to:
eac3to "D:\multiAVCHD\AVCHD_1\BDMV\STREAM\00000.MTS" -demux
setarip_old
28th February 2009, 01:37
In addition to another poster's earlier noted problem when trying to use the "Split" function, I've just come upon another apparent bug in this version - It claimed it couldn't determine the format of an AVC videostream in an M2TS file created by an earlier version of tsMuxeR.
Both earlier versions, 1.8.8 and 1.8.4 had no such difficulty.
Version 1.8.18, however, had no such difficulty with a similar M2TS file that it had created.
It would be good to find out if the problems lie with v.1.8.18 itself, or if they are a consequence of using the v.1.8.8 GUI (Presently there is no v.1.8.18 GUI) with this newer .EXE...
alc0re
28th February 2009, 19:15
Regarding the FF/RW issue : Make sure you are burning the dvd or bd @ the slowest speed your burner and media allow. I had a FF/RW issue that was partly improved by buring at slowest speed. Sorry if this feedback is obvious...
Nullity
1st March 2009, 19:29
New version on the FTP site: ftp://213.221.6.90/tsMuxer/tsMuxeR_1.8.19(b).zip
Though it's just the CLI, still no new GUI, and there is no changelog with this one.
~bT~
2nd March 2009, 11:48
I made a little GUI for jdobbs program in Delphi.
FixclpiGUI (http://hbar.dk/files/FixclpiGUI.rar)
I hope anyone find it useful. Thanks to jdobbs for the fix. :)
/GZZ
any chance u can update this gui pls for the latest version?
rack04
2nd March 2009, 14:25
any chance u can update this gui pls for the latest version?
I don't see any point of a gui for fixclpi. It's one command!
For example:
Start -> Run
cmd
cd\
cd program files
cd fixclpi
fixclpi F:\Blu-ray\Work\Cars
That took a whole 10 seconds to type.
spida_singh
2nd March 2009, 14:40
Looks like a new tsmuxer gui
ftp://213.221.6.90/tsMuxer/tsmuxergui_workspace.PNG
shon3i
2nd March 2009, 16:08
Looks like a new tsmuxer gui
ftp://213.221.6.90/tsMuxer/tsmuxergui_workspace.PNG
I don't see difference, just version is changed :)
idbirch2
2nd March 2009, 17:53
I don't see difference, just version is changed :)You should get your eyes tested, there's a new "Demux options" tab and an AR drop down which I assume is for forcing aspect ratio.
I wish smlabs would keep us updated properly, just a changelog would be nice, we still don't even know what's new in 1.8.19, do we?
Edit: I just tested 1.8.19 to see if it fixes the .m2ts packet size issue in the .clpi file and it doesn't :( Such an easy fix for them to make as well.
jdobbs
2nd March 2009, 19:29
It did in the one test that I ran, but the COARSE/FINE table was still wrong. I also just got an application crash from it trying to demux some audio... I went back to 1.8.18 and it went away.
rack04
2nd March 2009, 21:16
I'm trying to incorporate meta file creation into a batch script. Can this be done with "copy con"? If so, how do I input the information into the "copy con" file?
@Echo on
copy con "%OUTPUT_DIRECTORY%\%OUTPUT_FILENAME%.meta"
MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --auto-chapters=5 --vbv-len=500
V_MPEG4/ISO/AVC, "%OUTPUT_DIRECTORY%\%OUTPUT_FILENAME%-%DIMENSIONS%.mkv", fps=23.976, level=4.1, insertSEI, contSPS, track=1, lang=eng
A_AC3, "%OUTPUT_DIRECTORY%\%OUTPUT_FILENAME%-%DIMENSIONS%.mkv", track=2, lang=eng
deank
2nd March 2009, 21:25
Explain what exactly you're trying to do and I'll try to help.
If you need to set output folder+file via prompt, I suggest you use something like this:
@echo off
set /p infile="Full path to input file : "
echo MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --auto-chapters=5 --vbv-len=500>%infile%.meta
echo V_MPEG4/ISO/AVC, "%infile%", fps=23.976, level=4.1, insertSEI, contSPS, track=1, lang=eng>>%infile%.meta
echo A_AC3, "%infile%", track=2, lang=eng>>%infile%.meta
rack04
2nd March 2009, 21:31
I'm trying to create the following file:
"%OUTPUT_DIRECTORY%\%OUTPUT_FILENAME%.meta"
The file should contain the following information:
MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --auto-chapters=5 --vbv-len=500
V_MPEG4/ISO/AVC, "%OUTPUT_DIRECTORY%\%OUTPUT_FILENAME%-%DIMENSIONS%.mkv", fps=23.976, level=4.1, insertSEI, contSPS, track=1, lang=eng
A_AC3, "%OUTPUT_DIRECTORY%\%OUTPUT_FILENAME%-%DIMENSIONS%.mkv", track=2, lang=eng
turbojet
2nd March 2009, 21:43
Interesting, do you know how one would get the stream and chapter info (probably from mediainfo) from an mkv to use for making the meta in a batch file?
deank
2nd March 2009, 22:01
Yes, but from mkvinfo.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.