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

fib0by
23rd March 2008, 00:43
From the URL below, I downloaded the HF10.dmg.zip archive (.dmg is a Mac equivalent for .iso, there are applications online to convert dmg2iso). The archive is the disk image of the internal flash of the Canon HF10 camcorder, an AVCHD flash-based device:

http://file.meyersproduction.com/hf10/

They are essentially just plain m2ts files (even though the original extension is .mts). I tested them individually by putting them on a USB stick - they all play just fine on the PS3.

I loaded the first file in tsMuxeR 1.5.1, then appended the other files one by one.
Then I saved the whole thing as a Blu-Ray structure. No chapters.
I burned the Blu-Ray image with ImgBurn 2.4.0.0 on a DVD-5 RW. I used the UDF 2.50 mode for burning.

I must say I was pleasantly surprised by the simplicity of the authoring process with tsMuxeR. Quick and to the point.

The PS3 recognized the disk as "AVCHD" and played just fine. However, when it got to the end, it started playing again from beginning! It just keeps playing it in an infinite loop. This does not happen with other Blu-Ray disks that I rented or bought, it's unique to this disk that I made.

Since I didn't see any "loop" option anywhere in the software, I assume it's a bug. So here I am, reporting it. :)

If anyone wants me to do more tests to troubleshoot, please let me know.

roman76r
23rd March 2008, 01:48
The1n
I have casually laid out debug version. Please reload file.

Ryu77
23rd March 2008, 01:59
roman, as I mentioned earlier in the thread... Is there any way to use tsMuxeR to demux Matroska h264 streams without altering the bitstream?

Whenever I attempt to demux mkv, I get this message... "H264 bitstream changed: insert nal unit delimiters".

It seems to only be from mkv files, if I demux a m2ts stream I don't get this warning.

What exactly are NAL unit delimiters? And, is there any way to disable this when demuxing h264 streams from a Matroska container?

roman76r
23rd March 2008, 02:04
[Ryu77]
What exactly are NAL unit delimiters? And, is there any way to disable this when demuxing h264 streams from a Matroska container?
It is a frame delimiters. tsMuxeR always inserts them if they are not present in a stream.

The1n
23rd March 2008, 02:11
The1n
I have casually laid out debug version. Please reload file.

Everything well now after a reload ;-)

Regards
The1n

Ryu77
23rd March 2008, 02:18
[Ryu77]

It is a frame delimiters. tsMuxeR always inserts them if they are not present in a stream.

Thank you. :) There is no way of disabling this feature? Sonic Scenarist doesn't like it. :(

The only way I have been able to load a raw h264 stream demuxed from a Matroska file is to run it through h264info and create a new file. I would like to avoid this step if possible.

roman76r
23rd March 2008, 02:23
fib0by
Since I didn't see any "loop" option anywhere in the software, I assume it's a bug. So here I am, reporting it.
Yes, loop command is stored inside MovieObject.bdmv file.

Ryu77
23rd March 2008, 02:36
fib0by

Yes, loop command is stored inside MovieObject.bdmv file.

Oh wow, that's interesting. I have been going nuts trying to figure out how to stop the discs from looping. I used the Nero MovieObject.bdmv posted by XolocoTuxmaster here... http://forum.doom9.org/showthread.php?t=134402

Is there any way to edit the MovieObject.bdmv to stop the looping?

Pestana
23rd March 2008, 02:54
Hello, I nead Help, please.
I'm using the tsmuxer and made without any problems the rebuilds of Blue-Ray discs and convertion of HD-DVD to BD.
Ok, My problem it's with the subtitles, if I add them from the original Blu-ray Disc and Remux the Blu-ray they appear ok on PowerDVD, if I add suptitles from external str converted to sup and remux on tsmuxer they don't show on Power DVD.

Any ideia???

Many Thanks at advance :)

drmpeg
23rd March 2008, 04:32
Thank you. :) There is no way of disabling this feature? Sonic Scenarist doesn't like it. :(

The only way I have been able to load a raw h264 stream demuxed from a Matroska file is to run it through h264info and create a new file. I would like to avoid this step if possible.
H.264 access unit delimiters are required in Transport Streams. tsMuxeR is doing the correct thing by adding them.

You don't see the problem with .m2ts streams because the access unit delimiters are already there.

Scenarist is complaining about something else.

Ron

fib0by
23rd March 2008, 04:56
Is there any way to edit the MovieObject.bdmv to stop the looping?

Either that, or (even better) have a checkbox in the program, in the Blu-Ray tab, enabling/disabling "Loop at the end of the title" (or "end of the movie"), so the user can control the behavior of the movie. That would be awesome.
This is one of the two issues that currently prevent me from using tsMuxeR as an authoring software. If this gets out of the way, then there's only one more thing before I can happily create AVCHD/BD-9 disks with it. :)

It's a really nifty application, the BD image it creates is pretty close to what I need, and the workflow is very simple and quick.

Quatre
23rd March 2008, 05:09
maybe the bitrate of the mkv file is too high - popcorn hour does mkv decoding only in software. Try muxing it into ts with tsmuxer, change level to 4.1 if needed and see if it works (now with hardware decoding). Other problem could be too much reference frames in x264 encoder options. Then you have to reencode the movie. You can check this easily with avinaptic.

But there could be some dts problems with popcorn hour also - I don't really now, I reencode all dts tracks with eac3to ac3 and mux them back with mkvmerge. No problems so far...

yeah there are a lot of threads about dts on pch. it used to have more problems but newer fw fixed it but sometimes still has problems with certain files i guess though in this case i thin it was something else just making the whole thing stutter/choppy which also effected the audio.

this particular file has L4.1 encoding and 4 ref frames so i dont know why it was a problem. i use media info to look at the file and while i think they do the same thing i kind of want to try avinaptic. any link.

the pch is short on ram is why it cant do stuff with higher ref frames but stuff done right shouldn't have so many anyway.

Id been using 360 for wmvhd and ps3 for x264 remuxed to avc (or transcoded when neccesary) and both do xvid/divx so between the 2 was covering all my video needs but i got the pch anyway cus it was cheap and i figured i'd have ability to play 1080p x264 with dts and no hassle but that isn't always the case.

the mux to .ts though using this program was pretty quick (13 min) and it did play perfectly on the pch with dts audio working.

just it no longer had the subtitles. Its a japanese anime (Vexille, a 1080p eye candy cgi anime and highly recommended) with english subs (a.s.s. subs, heh yes it stands for something)

in the meantime i used mkv2vob on it to transcode it to an x264 that is compatible with the ps3 and hardcoded the subs so i'm good but it took a long time (transcode to mpeg-2 would have been quicker and i guess sight less quality though prob not noticeableand a lot quicker) as it had to recode the video just to hardcode the subs for ps3 though otherwise it wouldn't have had to cus it was l4.1, and would have had to just recoded the dts to ac3 for ps3.

anyway it seems that the mux to .ts will work for x264 that pch has trouble with and even dts, sothis is a great prog and thats a great quick fix for pch.

most movies etc. wont have subs so it wont be a problem, but just for future reference..

is there a way to keep the subs when you mux mkv to .ts using tsMuxeR?

adalbertoma
23rd March 2008, 06:18
Roman

Just wanted to say thanks.

Blu-Ray Splitting on 1.6.1 is sweet.

Thanks a lot.

saunupe1911
23rd March 2008, 07:26
Roman I'm a software developer myself so I know how much work you put into this. Your work is greatly appreciated!

ultratoto14
23rd March 2008, 10:23
roman76r you're just the best. Thanks for earing our requirements and inplementing them so fast.

Thanks again.

kooibosmania
23rd March 2008, 11:10
Hello, I nead Help, please.
I'm using the tsmuxer and made without any problems the rebuilds of Blue-Ray discs and convertion of HD-DVD to BD.
Ok, My problem it's with the subtitles, if I add them from the original Blu-ray Disc and Remux the Blu-ray they appear ok on PowerDVD, if I add suptitles from external str converted to sup and remux on tsmuxer they don't show on Power DVD.

Any ideia???

Many Thanks at advance :)

Same here srt to sup using supread no go
i am assuming this problem is supread
as the orriginal sup streams work

Ryu77
23rd March 2008, 11:59
Roman, I just wanted to point out that I have been helping many people with creating Blu-ray/PS3 compatible media. tsMuxeR has been a big part of making that happen. There are many people on www.afterdawn.com that I have helped. They are very thankful for you creating such a fantastic application.

So on behalf of myself and many other AfterDawn users. A BIG thank you! :thanks:

S3Ri0US
23rd March 2008, 13:45
@Roman..

Can you Remove the DTS Zero Padding while Demuxing a DTS Track ?

The1n
23rd March 2008, 13:57
Roman, when remuxing seamless branching bluray movies with 1.4.6b it updates so the time is right when playing back on the PS3 , but on all the versions after including 1.6.1b the time will only show the length of the first m2ts file. And the movie stops there.

I have been trying with different options but only 1.4.6b works for that matter.

Regards
The1n

Rodger
23rd March 2008, 14:08
V1.6.1 in usuage

I have a DVB-S recording (Premiere HD)
1 x h264
1 x AC3 5.1 german
1 x AC3 2.0 english

I demux first, clean the Audio files via AC3fix of bad frames ect., then i remux to m2ts to see if streams are still in sync. And there we have it.

Streams completely out of sync and running apart.
I was able to find out, that KM-Player ist runung only at about 20-22fps/sec. (mostly around 21fps) and then finally runs into stuttering.

Any idea whatīs wrong here? No reencoding is done!!!

/EDIT: I just used good old "TSremux" and EVERYTHING IS FINE! Nothing out of sync...even though it handles the one bad frame in one of the AC3īs different...at least seemingly.
When I remux directly from org. Ts to m2ts KM-Player plays fine (around the correct 25fps), while Audio is out of sync. Whatīs wrong with TSmuxer???

roman76r
23rd March 2008, 16:25
Rodger
Can you send example of these file?


I have take out linux version of a tsMuxer. Somebody wants to port GUI to linux? I can send source codes of tsMuxerGUI written on delphi7.

Pestana
23rd March 2008, 17:13
Same here srt to sup using supread no go
i am assuming this problem is supread
as the orriginal sup streams work

Many Thanks for the quick respond :)
I will try get around the supread if i found the problem.

roman76r
23rd March 2008, 17:55
Version 1.6.2(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.6.2(b).zip)
- Drag and drop support added to GUI. I have updated GUI only, this version still use muxer 1.6.1.

Beastie Boy
23rd March 2008, 18:02
This tool just keeps getting better and better :)

Does anyone know if the PS3 will play back a .TS file that contains multi-channel FLAC audio. I can't test as tsMuxer currently will not import it.

Is it possible that support for FLAC could be included into tsMuxer?

Cheers, Beastie.

EDIT: The PS3 will play back TS files containing multichannel wav audio, but the filesizes are a bit big :)

sangwich
23rd March 2008, 18:54
Thanks for the outstanding work Roman, I really appreciate it. I have quite a lot of raw .ts files from different sources that I need to demux them time after time and play with content. I was close to writting a simmilar tool out of despair but could not afford time for to re-learn my C/C++ skills. You saved me a lot of effort :-) thanks.

I have a question regarding the tool though. I have some files that have VC-1 video track and tsMuxer reports them as 1080i but I always thought about them as of 1080p. I tried to verify content by other means but very few tools even recognize VC-1 in mpeg-ts stream and none could give conspicuous results. So, could you please shed some light on how you identify the VC-1 stream content and if you think this works correctly?

Regards

survivant001
23rd March 2008, 19:07
Version 1.6.2(b) (http://www.smlabs.net/tsMuxer/tsMuxeR_1.6.2(b).zip)
- Drag and drop support added to GUI. I have updated GUI only, this version still use muxer 1.6.1.

thanks.. You release two of my requests this weekend :)

just 4 more :)

#1 - subtitle .str
#2 - main menu (choose between movies..usefull for #3)
#3 - multiple titles. for anime it will be great.
#4 - import chapters, extracted from .mkv, into the input files listbox. (will me more user friendly)

roman76r
23rd March 2008, 20:50
survivant001
I'll plan to add .srt support during next week.

sangwich
VC1 stream has corresponding field for interlace/progressive video.
I parse sequence header thus:

int VC1SequenceHeader::decode_sequence_header()
{
try {
bitReader.setBuffer(m_nalBuffer, m_nalBuffer + m_nalBufferLen); // skip 00 00 01 xx marker
profile = bitReader.getBits(2);
if (profile == PROFILE_ADVANCED)
return decode_sequence_header_adv();
.............................................
} catch (BitStreamException& e) {
return NALUnit::NOT_ENOUGHT_BUFFER;
}
}

int VC1SequenceHeader::decode_sequence_header_adv()
{
level = bitReader.getBits(3);
if(level >= 5)
LTRACE(LT_WARN, 0, "Reserved LEVEL " << level);
chromaformat = bitReader.getBits(2);
frmrtq_postproc = bitReader.getBits(3); //common
bitrtq_postproc = bitReader.getBits(5); //common
postprocflag = bitReader.getBit(); //common
coded_width = (bitReader.getBits(12) + 1) << 1;
coded_height = (bitReader.getBits(12) + 1) << 1;
pulldown = bitReader.getBit();
interlace = bitReader.getBit();

Rodger
23rd March 2008, 21:17
Rodger
Can you send example of these file?


I have take out linux version of a tsMuxer. Somebody wants to port GUI to linux? I can send source codes of tsMuxerGUI written on delphi7.

Hi there...found the reason myself!
As guessed tsmuxer doesnīt like bad frames in ac3.

That very often happens with the DVB-S2 recordings of my Vantage HD7100s. I donīt know why this time it showed up that extreme (21fps playback). Usually I use the audio-delay feature in tsmuxer to fix that and thatīs it, but not this time.

The error in the ac3 was in the very first frames...so I cut it out easily (first frames of movie). Iīd like to send you the example, but that would take about several hundert MBs to let you see that itīs out of sync (movie has very long intro).

73ChargerFan
23rd March 2008, 21:46
I exported an LPCM track to multi-channel wav files. How can I easily merge them into one file?

I wanted one 4.47gb multi-channel wave file, but tsMuxer split it into two files, one 3.99gb and the second one 0.48gb.

Tried searching, bsweet is 3 years out of date, audacity has caveats (not fully supported, modifies when importing).

Will copy /b work?

survivant001
23rd March 2008, 22:31
survivant001
I'll plan to add .srt support during next week.


thansk. your work is really appreciated

roman76r
23rd March 2008, 22:41
73ChargerFan
I specially split wav file because >=4GB WAV can't be valid (size field in wav header contain 32 bit only).
I can add option to disable split but result wav file will be not correct.

73ChargerFan
23rd March 2008, 23:11
I just read the wikipedia article on the wav file format, so I understand. I'm just not sure what to do with it now. :rolleyes:

My goal is to convert it to DTS and re-mux, so I really need 6 mono wave files.

roman76r
23rd March 2008, 23:36
You can convert to DTS both files, when you can join them at muxing.

Ryu77
24th March 2008, 01:05
Roman, I recall someone mentioning that the MovieObject.bdmv file created is set to loop (play over and over infinitely) the movie after playback. Is there any way you could change that?

DoomBot
24th March 2008, 02:20
Why is it that when i join m2ts files with tsMuxer then try to play it on the pc with powerdvd or mplayer they do not play when it has a dts track in it?

DoomBot
24th March 2008, 02:28
Another thing is many people are finding that joining m2ts files with tsmuxer then playing them on a tvix player after each joined file it starts to stutter.

n0mag!c
24th March 2008, 08:16
i've spend a lot of time trying tsmuxer and I must say: it works INCORRECT with mpeg2 video stream. when muxing 24fps or 25 fps HD or even SD video, result stream (AVC-HD or Blu-Ray) plays smoothly on PC but stuttering on PS3 (like dropping 1 frame per sec). but the essence of this incorrect work with mpeg2 video stream is shown when muxing 29,97 fps video with 3:2 pulldown flag. video is totally out of sync (like video is playing at 30 fps but must playing at 24 fps and audio is playing at 24 fps).
tested again with version 1.5.1

n0mag!c
24th March 2008, 08:23
You mean you transcoded HD DVD sup and/or srt to "Blu-ray compatible sup" with supread, and have the issue I have?
, in PDVD I saw the subtitle stream, can siwtch on/off, but it didn't show up.
I have this isuue too. the PowerDVD didn't show subtitles transcoded from HD-DVD with SUPread. but PS3 shows it flawless!

zeroprobe
24th March 2008, 11:31
Hi there...found the reason myself!
As guessed tsmuxer doesnīt like bad frames in ac3.

That very often happens with the DVB-S2 recordings of my Vantage HD7100s. I donīt know why this time it showed up that extreme (21fps playback). Usually I use the audio-delay feature in tsmuxer to fix that and thatīs it, but not this time.

The error in the ac3 was in the very first frames...so I cut it out easily (first frames of movie). Iīd like to send you the example, but that would take about several hundert MBs to let you see that itīs out of sync (movie has very long intro).

Im sure I had the same problem as you. What I did was click on the h264 file in TSmuxer and uncheck 'Add Picture Timing Info' and 'Continually Insert SPS/PPS'

dchard
24th March 2008, 11:36
Roman: please take a look at this (http://forum.doom9.org/showthread.php?p=1114121#post1114121), and tell me your opinions about that.

About the subtitle problem mentioned earlier: I converted the .srt with supread first to 1080 non-dropped, then 720p non-dropped, then 1080 dropped, and muxed all three BD compatible sups with latest tsmuxer. Every three tracks recognised by pdvd, but nothing shows if I select any of them during playback.

Anyway: I have two questions without any answer, I post it again:

1. If I remux an HD DVD or profile 4.1 compliant h.264 stream to Blu-Ray, then what options should I set from the below?

Add picture timing info

Continually inster sps/pps?

2. What the "bind to video fps" option do?

Thank you!

Dchard

roman76r
24th March 2008, 12:17
dchard
About the subtitle problem mentioned earlier: I converted the .srt with supread first to 1080 non-dropped, then 720p non-dropped, then 1080 dropped, and muxed all three BD compatible sups with latest tsmuxer. Every three tracks recognised by pdvd, but nothing shows if I select any of them during playback.
I don't know. I think it is supread problem. Anyway I plan to add .srt support in tsMuxer.

If I remux an HD DVD or profile 4.1 compliant h.264 stream to Blu-Ray, then what options should I set from the below?
You need to keep default values.

What the "bind to video fps" option do?
It option allow to change PGS stream speed, when video fps is changed from default (readed from stream) value.

n0mag!c
24th March 2008, 12:25
I created some batch-files to work with.
They are mainly based on inThralled Idea.
Hope you can use them
Thanks! But could you be so kind to upload the blu-ray structure for 2-3-4-5-6 titles blu-ray (without "stream" folder)for all of us who didn't own nero with blu-ray plug-in? Maybe it also helps Roman to include option to create multi-title blu-ray output in "TsMuxer", as we all desperate wish.

jamos
24th March 2008, 13:06
dchard

I don't know. I think it is supread problem. Anyway I plan to add .srt support in tsMuxer.


You need to keep default values.


It option allow to change PGS stream speed, when video fps is changed from default (readed from stream) value.

Roman 1 feature request is to be able to convert 1080 sups into 720 sups if your resolution is 1280x720. Currently it accepts the 1080 sups but they do not display due to them being below the screen area. That would be a really great feature as many of us are converting 1080p to 720p to get to fit on a dvd.

thanks for the great work.:thanks:

inThralled
24th March 2008, 13:58
Originally Posted by n0mag!c
Thanks! But could you be so kind to upload the blu-ray structure for 2-3-4-5-6 titles blu-ray (without "stream" folder)for all of us who didn't own nero with blu-ray plug-in? Maybe it also helps Roman to include option to create multi-title blu-ray output in "TsMuxer", as we all desperate wish.

Not sure exactly what you want, I use tsMuxer to populate the 2-3-4-5-6 directories one at a time with the videos that I want to be the 2nd title then 3rd title etc., then use a batch file to copy and rename the streams, playlist and clipinf into the “1” directories, then burn the contents of the 1 directory.
I have also used movie factory 6/w bluray to create the menus.
I don’t know enough about the structure of the menu, playlist or clipinf files to create them from scratch so I use one of these programs to create the files for me. If you know of another program for menu creation that also creates the playlist and clipinf files I’m sure it would also work.

dchard
24th March 2008, 13:59
Thank you for the answers, however you missed an important of it:

Please respond something to this:
Click here (http://forum.doom9.org/showthread.php?p=1114121#post1114121)

Another thing:

Because of the subtitle problem I played a little with the 1.6.1 version, and I have to tell you that this version causes some glitches just in audio track. The original track do not have this glitches (audio: 1536kbit/s 5.1 EAC3).

As I remember, the 1.5.1 version do not cause such problems.

I retest the tracks, then back with the results.

Dchard

MOD1:

What this line mean in the output log?

"B-pyramid level 2 detected. Shift DTS to 3 frames"

MOD2:

it seems that the audio problem occurs only when "Add timing info" and "PPS/SPS" options are disabled.

Bytheway: I made another discovery: pdvd use a very poor downscaler/resizer. When first remuxed the Tranformers HD DVD to BD, I watched the picture very carefully and saw that the endges of the things are got horizontal lining. This is very minor, when the object(s) moving. First I thought that this is a bug in tsmuxer, then analized the source which have the same issue with pdvd...

n0mag!c
24th March 2008, 14:53
Not sure exactly what you want, I use tsMuxer to populate the 2-3-4-5-6 directories one at a time with the videos that I want to be the 2nd title then 3rd title etc., then use a batch file to copy and rename the streams, playlist and clipinf into the “1” directories, then burn the contents of the 1 directory.
I have also used movie factory 6/w bluray to create the menus.
I meant your resulting "BDMV" folder (without "stream" folder) for 2-3-4-5-6 blu-ray titles with menus.

XolocoTuxmaster
24th March 2008, 20:43
I have take out linux version of a tsMuxer. Somebody wants to port GUI to linux? I can send source codes of tsMuxerGUI written on delphi7.

Thank you very much, I've been a Linuxer since long time ago...and I hated using windows last months just for blu-ray stuff...your program will reduce my Windows-using time about 85%. :thanks:

Send me the GUI code and I'll try to port it.

In case you want to send it by email:

xolocotuxmaster[at]gmail[dot]com

Cheers

MrFaust
24th March 2008, 21:41
Roman: Thanks again for this great tool. Today I was in the process of trying to do a simple HD-DVD to Blu-ray convertion. I started off using 1.4.6 and added the PEVOB_1.EVO, removed all tracks except for the 1920x1080i (? thought it was 1080p) video track and the first E-AC3 (DD+) track with the output to Blu-ray format.

The movie I'm converting is V For Vendetta. Amazingly the finished output was only 7.1gb from the original 19.7gb. So I thought I would burn it to a DVD9 and test it on my PS3.

I then got to reading this forum and saw that your tool had been updated and fixed a few issues. So I downloaded 1.6.1b and ran V For Vendetta through it again to see if there were any changes. There were. At 36.9% done, tsMuxer crashed and the status window says "Mux complete: Return code -1073741811"

Mitchjs
24th March 2008, 22:03
MRFAUST, THERE Is a FLAG set int the VC1 track that says its interlaced... Romans tool is correct...

Yes we know its not interlaced, you can demux and run vc1conv.exe and remove the interlaced flag
if you need it to be...

i dont bother with ps3 playback or bluray formats, i just want clean .TS files.. and im playing back via PC,
so the flag is ok at interlaced, the decoder knows what to do

mitch

DoomBot
24th March 2008, 22:19
Roman: Thanks again for this great tool. Today I was in the process of trying to do a simple HD-DVD to Blu-ray convertion. I started off using 1.4.6 and added the PEVOB_1.EVO, removed all tracks except for the 1920x1080i (? thought it was 1080p) video track and the first E-AC3 (DD+) track with the output to Blu-ray format.

The movie I'm converting is V For Vendetta. Amazingly the finished output was only 7.1gb from the original 19.7gb. So I thought I would burn it to a DVD9 and test it on my PS3.

I then got to reading this forum and saw that your tool had been updated and fixed a few issues. So I downloaded 1.6.1b and ran V For Vendetta through it again to see if there were any changes. There were. At 36.9% done, tsMuxer crashed and the status window says "Mux complete: Return code -1073741811"

I get the same error return code