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

moshmothma
29th January 2008, 08:18
Good job with this app! I have an issue when converting titles from evo to ts. I tried it twice on two different drives and crashes at the same point. T


SmartLabs tsMuxeR. Version 1.2.0. http://www.smlabs.net
Decoding H264 stream (track 1): Profile: High@4.1 Resolution: 1920:1080p Frame rate: 29.97fps
H.264 muxing fps not set. Get it from stream.
Decoding E-AC3 (DD+) stream (track 2): Bitrate: 1536Kbps Sample Rate: 48KHz Channels: 6

Reading buffer overflow. Possible container streams are not syncronized? Try to increase read buffer size or demux selected streams to single files. File name: M:\Old School.EVO

Also, I am currently uploading a bunch of samples with truehd from evo and ts along with some ts files with lpcm. Hopefully, these will be useful. Thx

moshmothma
29th January 2008, 17:05
Here are some clips to use: audio have either truehd or lpcm. The files names denote which types they are. Appreciate your efforts.


http://www.sendspace.com/file/iqfaot
http://www.sendspace.com/file/6ns4si
http://www.sendspace.com/file/ow2600
http://www.sendspace.com/file/g51stj
http://www.sendspace.com/file/jt7t7j
http://www.sendspace.com/file/0chb5z
http://www.sendspace.com/file/016lkf
http://www.sendspace.com/file/sfhue3
http://www.sendspace.com/file/1zehg9

Joniii
29th January 2008, 19:44
Looking forward to LPCM support!

We wants it :)

jamos
29th January 2008, 22:44
1.23b is available here not sure why this site is not updated, has dts-hd and dd+ support now as well as downmixing dts-hd to dts.

http://www.digital-digest.com/software/tsMuxeR.html

jkc120
29th January 2008, 22:58
First of all, tsmuxer works GREAT. One problem, for me: I don't have a fast windows box, just a laptop with a slow processor and running on wifi only.

So, does anyone know of an open source program that can mux the h264/ac3 elemental streams (from the mkv, extracted with mkvextract)?

I tried with ffmpeg:

ffmpeg -f ac3 -i in.ac3 -f h264 -i in.h264 -f mpegts -o out.ts
mv out.ts out.vob

The PS3 reports the file as "corrupt", though.

I'd really like to be able to do this without having to copy GBs of data over wifi to my laptop... :/

Thanks!

tyee
29th January 2008, 23:01
1.23b is available here not sure why this site is not updated, has dts-hd and dd+ support now as well as downmixing dts-hd to dts.

http://www.digital-digest.com/software/tsMuxeR.html

Look at post #67!

roman76r
29th January 2008, 23:05
New version 1.2.6 is available. Look the first post.

Zow
29th January 2008, 23:32
Awesome!

Can we have subtitles next. Please. Please....

jamos
29th January 2008, 23:36
First of all, tsmuxer works GREAT. One problem, for me: I don't have a fast windows box, just a laptop with a slow processor and running on wifi only.

So, does anyone know of an open source program that can mux the h264/ac3 elemental streams (from the mkv, extracted with mkvextract)?

I tried with ffmpeg:

ffmpeg -f ac3 -i in.ac3 -f h264 -i in.h264 -f mpegts -o out.ts
mv out.ts out.vob

The PS3 reports the file as "corrupt", though.

I'd really like to be able to do this without having to copy GBs of data over wifi to my laptop... :/

Thanks!

you have to set the avc lvl to 5.1 for the video stream to get it to play on the ps3. I would suggest using mkv2vob as it uses tsmuxer and also uses h264info to set the stream to 4.1. tsmuxer has this feature to set the lvl to 4.1 but it does not work as of ver 1.2.3b. if the video is 1080p though it most likely will have to be transcoded with ffmpeg to play on the ps3 which mkv2vob does also.

jamos
29th January 2008, 23:39
New version 1.2.6 is available. Look the first post.

hehe sorry roman last I looked it said 1.2.0.:thanks:

the newest version still does not set the lvl to 4.1 correctly. not sure why but h264info does it correctly. but the added features are great.

jkc120
29th January 2008, 23:45
you have to set the avc lvl to 5.1 for the video stream to get it to play on the ps3. I would suggest using mkv2vob as it uses tsmuxer and also uses h264info to set the stream to 4.1. tsmuxer has this feature to set the lvl to 4.1 but it does not work as of ver 1.2.3b. if the video is 1080p though it most likely will have to be transcoded with ffmpeg to play on the ps3 which mkv2vob does also.

Sorry, I neglected to mention I wrote a C program that changes the h264 video stream's header to mark it as 4.1 instead of 5.1. Muxing this h264 file with a 2-channel AAC file (transcoded from the AC3) into an mp4 container plays back fine on the PS3. But I want 5.1 audio. :/

fbd
29th January 2008, 23:57
New version 1.2.6 is available. Look the first post.
hi roman 76r,
thanks for this new build,

This new version doesn't recognize some audio tracks: Dolby true HD and LPCM
look these pictures:
http://www.sendspace.com/file/oi7m80
http://www.sendspace.com/file/oi7m80

and

http://www.sendspace.com/file/tdlot0
http://www.sendspace.com/file/tdlot0

Regards,
Franck

jamos
30th January 2008, 00:09
Sorry, I neglected to mention I wrote a C program that changes the h264 video stream's header to mark it as 4.1 instead of 5.1. Muxing this h264 file with a 2-channel AAC file (transcoded from the AC3) into an mp4 container plays back fine on the PS3. But I want 5.1 audio. :/

tsmuxer should work if you correctly set the lvl to 4.1. I know h264info does it correctly. so try tsmuxer if the lvl is set to 4.1 and the video is not 1080p it should play on the ps3. mkv2vob uses h264info and tsmuxer and it works for all my mkv files. Like i said though if your source is 1080p then it most likely will have to be transcoded to mpeg2 to play on the ps3.

jkc120
30th January 2008, 00:34
tsmuxer should work if you correctly set the lvl to 4.1. I know h264info does it correctly. so try tsmuxer if the lvl is set to 4.1 and the video is not 1080p it should play on the ps3. mkv2vob uses h264info and tsmuxer and it works for all my mkv files. Like i said though if your source is 1080p then it most likely will have to be transcoded to mpeg2 to play on the ps3.

I think you missed the point of my original post... :)

I need to be able to do what tsmuxer does, but on FreeBSD. Wine is not an option, as I run 64-bit FreeBSD, so I can't run tsmuxer in wine. I was hoping someone knew of an open source way to mux the h264/ac3 into a PS3-compatible TS (so I can rename it to .vob and stream it to the PS3).

Perhaps I'm just doing something wrong in my ffmpeg command?

jamos
30th January 2008, 01:06
I think you missed the point of my original post... :)

I need to be able to do what tsmuxer does, but on FreeBSD. Wine is not an option, as I run 64-bit FreeBSD, so I can't run tsmuxer in wine. I was hoping someone knew of an open source way to mux the h264/ac3 into a PS3-compatible TS (so I can rename it to .vob and stream it to the PS3).

Perhaps I'm just doing something wrong in my ffmpeg command?

sorry did miss that you were not using xp. but ffmpeg should work if you did set the lvl correctly to 4.1 which when it is not is when I get the corrupted video prompt from my ps3.

for ffmpeg you need to copy the codecs or your gonna reencode and not mux.
-vcodec copy -acodec copy

ffmpeg -r 23.976 -f h264 -i video.h264 -f ac3 -i audio.ac3 -vcodec copy -acodec copy -f vob output.vob

where -r is your frame rate.

this works but you do not get ff/rw functionality.

Atak_Snajpera
30th January 2008, 01:58
Can we have subtitles next. Please. Please....

I think output to Blue-ray structure is more important at the moment. BTW Thanks Roman for m2ts muxing! :)

jkc120
30th January 2008, 02:07
sorry did miss that you were not using xp. but ffmpeg should work if you did set the lvl correctly to 4.1 which when it is not is when I get the corrupted video prompt from my ps3.

for ffmpeg you need to copy the codecs or your gonna reencode and not mux.
-vcodec copy -acodec copy

ffmpeg -r 23.976 -f h264 -i video.h264 -f ac3 -i audio.ac3 -vcodec copy -acodec copy -f vob output.vob

where -r is your frame rate.

this works but you do not get ff/rw functionality.

Crap, you're right. I guess for this particular h264 stream, changing the byte to level 4.1 (0x33 -> 0x29) was not enough to make it work. :rolleyes:

Ugh, now I need a replacement for h264info.exe in FreeBSD...

Zow
30th January 2008, 02:43
I think output to Blue-ray structure is more important at the moment. BTW Thanks Roman for m2ts muxing! :)

Perhaps, to some....

But, there are a lot of subtitled movies around, and if you don't speak the original language of the movie, even a perfect rip is useless without subtitles (unless it's Blu-Ray porn, I guess:-)

As to Blu-Ray disk to disk copying, the time involved, plus the cost of the media, will get you pretty close to the price of the original disk. Hard drives are cheap, and more convenient for many.

Anyway, hopefully both will come to be soon.

jamos
30th January 2008, 03:16
I think output to Blue-ray structure is more important at the moment. BTW Thanks Roman for m2ts muxing! :)

why do we need m2ts muxing for multiple streams? cant you just put in the ts stream into tsremux and use bluray out? I do agree bluray structure would be very nice one step mkv to bluray :p

dburckh
30th January 2008, 06:38
I noticed that I'm getting about 12 PAT/PMT records at the being of the stream if I mux a VC1 from a PES Elemental with an AC3 to TS. Everything works, it just seemed odd. Is this a bug?

Atak_Snajpera
30th January 2008, 11:03
cant you just put in the ts stream into tsremux and use bluray out?

I prefer one step instead of two :)

roman76r
30th January 2008, 11:09
dburckh
I noticed that I'm getting about 12 PAT/PMT records at the being of the stream
It is not a bag. Some hardware decoders may miss first video unit if it is near begin of a file. To prevent it tsMuxer insert 15 PAT/PMT records in the beginning of a file.

Egen
30th January 2008, 11:11
great tool. waiting subtitle support with eager:thanks:

jamos
30th January 2008, 16:21
I prefer one step instead of two :)

so you already have a avchd structure and just put the .m2ts file in the stream directory? what structure do you use? using tsremux I always get a divide by zero error when creating a bd structure from a m2ts or ts.

Atak_Snajpera
30th January 2008, 16:42
so you already have a avchd structure and just put the .m2ts file in the stream directory? what structure do you use?

After many tests I realized that BluRay structure must be generated according to input *.m2ts file. I made simple test in Nero Vision. Everything was made by vision (compression+Bluray Structure). PS3 accepted AVCHD without problems but when I replaced 00000.m2ts with my own (encoded by vision as well) it didn't work on PS3 :( (my file outside structure is working on PS3)
Maybe I am wrong but it looks like that bluray structure uses some kind of checksum.

jamos
30th January 2008, 17:17
After many tests I realized that BluRay structure must be generated according to input *.m2ts file. I made simple test in Nero Vision. Everything was made by vision (compression+Bluray Structure). PS3 accepted AVCHD without problems but when I replaced 00000.m2ts with my own (encoded by vision as well) it didn't work on PS3 :( (my file outside structure is working on PS3)
Maybe I am wrong but it looks like that bluray structure uses some kind of checksum.

yes I have seen some posts where you can hex edit some files to make them match. But the problem I have is the divide by 0 error in tsremux before it finishes creating the bd structure so I cant even use that method.

Has123
30th January 2008, 17:50
After many tests I realized that BluRay structure must be generated according to input *.m2ts file. I made simple test in Nero Vision. Everything was made by vision (compression+Bluray Structure). PS3 accepted AVCHD without problems but when I replaced 00000.m2ts with my own (encoded by vision as well) it didn't work on PS3 :( (my file outside structure is working on PS3)
Maybe I am wrong but it looks like that bluray structure uses some kind of checksum.
Try to take the index.bdmv and MovieObject.bdmv generated by NeroVision and use them with your structure as this may help,

Atak_Snajpera
30th January 2008, 18:12
yes I have seen some posts where you can hex edit some files to make them match

link please :)

jamos
30th January 2008, 18:31
link please :)

havent tried this but it is supposed to edit the structure

http://forum.doom9.org/showthread.php?t=125903&highlight=avchd

ultratoto14
30th January 2008, 18:41
1.2.6 resolved my problem with MPC, seeking is reliable (happy, happy, happy). Can take my previously generated vob and get a ts with ff/rw yepppeeee !!

TEB
30th January 2008, 19:55
Feature Request:

Support h.264/ac3 in AVI container as source!

Keep up the great work!

LOGiC
30th January 2008, 22:09
First of all I want to thank you for this masterpiece of Software. Just a question, is it possible that DTS don't work properly yet ? I tried to mux one of my original BluRays as m2ts together with a 24bit DTS track. The result is not playable in PowerDVD or MPC. I normally try playing the files in PowerDVD first as this one demands compliant streams. But it does not start playing. Same when trying to mux in normal .ts. If I convert the dts to ac3, the resulting m2ts plays fine in PowerDVD, but not in MPC. MPC says that there is no pin to connect to. Strange thing.

[)370|\|470!2
30th January 2008, 22:31
Tsmuxer doesn't produce standard compliant ts streams. Just try splitting these with TSsplitter and see that any parts except 1st one are unplayable, while splitting any standard ts stream results in all parts fully acceptable by any/all players. Also, pdvd reports wrong timecodes with .ts's created by TSmuxer from original ts(m2ts) streams.

Atak_Snajpera
30th January 2008, 23:23
but not in MPC. MPC says that there is no pin to connect to. Strange thing.

Did you install Haali Media Splitter? Did you install latest FFDShow? Disable internal filters as well.

Personally I have no problems with *.m2ts in MPC (AVC+AC3)

tyee
30th January 2008, 23:44
Tsmuxer doesn't produce standard compliant ts streams. Just try splitting these with TSsplitter and see that any parts except 1st one are unplayable, while splitting any standard ts stream results in all parts fully acceptable by any/all players. Also, pdvd reports wrong timecodes with .ts's created by TSmuxer from original ts(m2ts) streams.

I just split a .m2ts made from tsremux yesterday into 5 sections with HDBDSplitterGUI and they all play in my PS3!

tyee
30th January 2008, 23:50
I have a quick question needing answering regarding .grf files. I'm sure a lot of us make these .grf files for encoding in an avisynth script for re-encoding before we use tsremux. I would like to know the difference between, for example, using a .grf vs. .evo in an avisynth script. I ask because recently I was using a .grf but then just tried the DirectShowSource line with a .evo in it and it encoded fine. So when do we use .grf's and when can we use .evo's, .m2ts's?? If a Directshow Filter can open a file, is it true we don't need to use .grf files??

Atak_Snajpera
31st January 2008, 00:12
If a Directshow Filter can open a file, is it true we don't need to use .grf files??

if DirectShow cannot automatically connect specific filters then you have to create .grf. Otherwise use DirectShowSource()

picman1
31st January 2008, 02:08
Roman, nice job on this slick program. I noticed that muxing DTS audio will not stream to the PS3 and be playable and that there is way to convert DTS to AC3 with another program and then mux the AC3 together. Would it be possible to incorporate that DTS to AC3 conversion process into your program to save some steps? I also like the one step process! Thanks again

jamos
31st January 2008, 02:31
link please :)

Ok I got AVCHD to work on the ps3 from .mkv files with no reencoding using mkvextract, h264info, tsmuxer, and tsremux. I will put up another thread here on the how to. Basically though if the .ts will not play on your ps3 then it will not work in a AVCHD without reencoding usually because the source has more than 4 reference frames which the ps3 does not support yet (ie 1080p avc 5.1). But for the many that do work it is pretty neat to archive them in AVCHD disks and play them with lossless video and ac3 audio. Most will fit on dvd-5 or dvd-9. Also I will show how to split a m2ts into parts to make a compilation for a movie if needed.

note: of course you could just burn the .ts files renamed to .mpg to a data dvd into PS3/VIDEO folder and play them as a file but I like having chapters and possibly subtitles (have not tried subtitles yet).

LOGiC
31st January 2008, 09:06
Did you install Haali Media Splitter? Did you install latest FFDShow? Disable internal filters as well.

Personally I have no problems with *.m2ts in MPC (AVC+AC3)



lol, I deinstalled PowerDVD a couple of days ago on one machine and MPC used to connect to the Cyberlink H264 filter, so it couldnt work. I was registering this filter manually and MPC was working fine again with AVC+AC3 in M2TS. But nevertheless, it does not seem to work with DTS. Anyone else with this experience ? Again, this is not meant as any critics, great program, easily working and easy to handle, this is awesome Roman. Thanks alot for your efforts.

[)370|\|470!2
31st January 2008, 09:44
I just split a .m2ts made from tsremux yesterday into 5 sections with HDBDSplitterGUI (http://www.google.com/search?hl=en&q=HDBDSplitterGUI&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA+%D0%B2+Google&lr=) and they all play in my PS3!


Frankly very intriguing. Would you be so kind to link me to that remarkable tool, since google returns 1 result for it only which is the same exact page? Roflmao.

LOGiC
31st January 2008, 10:30
@[)370|\|470!2

I think he meant "HDBDSplitGUI" not splitterGUI. If you google this, it will find some more stuff. I tested this program a couple of weeks ago and really didn't like it. Even if I read from one drive and wrote to another, it was a noise as my drives would be going to explode. I think the latest version of H264TS_Cutter supports M2TS as Input as well, as long as there is AVC behind. I am going to test it this evening.

VintageGuy
31st January 2008, 12:38
Is it just me or is the new 1.2.8 version saying 1.2.6 when it opens?

Joniii
31st January 2008, 12:45
Edit:
nm, I found what was wrong.

yonta
31st January 2008, 15:20
Is it just me or is the new 1.2.8 version saying 1.2.6 when it opens?

v1.2.8 GUI is identical to v1.2.6 GUI, but the CLI is different.

jamos
31st January 2008, 17:03
@[)370|\|470!2

I think he meant "HDBDSplitGUI" not splitterGUI. If you google this, it will find some more stuff. I tested this program a couple of weeks ago and really didn't like it. Even if I read from one drive and wrote to another, it was a noise as my drives would be going to explode. I think the latest version of H264TS_Cutter supports M2TS as Input as well, as long as there is AVC behind. I am going to test it this evening.


there is nothing wrong with HDBDSplit I use it all the time. the sound may be a sign that your drives are going.:rolleyes:

k-c-ksum
31st January 2008, 17:33
dont know why it doesnt work with this :(
sample -

http://rapidshare.com/files/87804796..._Plus.EVO.html

zeroprobe
31st January 2008, 17:50
Anyone got DTS in a TS working on PS3? or is this not supported.

EDIT: It works as DTS 1.5mb in avchd burned on a DVDR

oozie
31st January 2008, 18:19
I knew that.
But I'm afraid we can't play DTS from the XMB, can we?

zeroprobe
31st January 2008, 18:28
I knew that.
But I'm afraid we can't play DTS from the XMB, can we?

Nope what a shame :(