View Full Version : "h264tsto" automates audio/video demuxing and MKV muxing
this
http://nwgat.net/ts/NTV%20722000%2003-28%2022-06-42.ts
isnt working
its a Norwegian NTV h264+he-aac test clip, it wont mux sound only video :(
ninjaw
22nd October 2007, 23:43
Hello, I captured French HDTV and it's real pain in the ass, basically in the TS, I got 3 channel, 2+1+3 audio channels ac3 or not, and the video is not allways widescreen.
Elecard XMuxer is really really slow, like impossible slow, and refuse to work most of time.
Hopefully Haali seems to work fine, but EACH player I tried gave corrupted screens, only Tmpgenc Xpress 4 can convert me these file pretty fast... but only with random videos, I succesfully acceded other vidz by tweaking 5x Haali while tmpgenc opening .. but actually that gave me false screen size info.
So right now I cant do anything with my TS.
I know that one channel is 1900x1080 and another 1400x1080
madshi
23rd October 2007, 09:23
Try Haali's Media Splitter -> Haali's Matroska Muxer in GraphEdit. Does that work?
pomo
7th December 2007, 03:27
thx for this nice tool madshi.
just an idea that would benefit the lazy people (like me) ;) :
could you add the possibility that if only specifiying a source.ts, h264tsto will use the same directory and filename for the destination file and assume muxing to mkv?
like
h264tsto x:\path_to\capture.ts
would be a shorthand for
h264tsto x:\path_to\capture.ts x:\path_to\capture.mkv
that way (afaik), drag&drop onto the exe as well as a shortcut in the SendTo folder (right-click -> Send To -> ..) should work.
nothing important :D
madshi
7th December 2007, 14:58
h264tsto v1.3 released
http://madshi.net/h264tsto.zip
* you don't need to specify a destination file name, anymore
* new switch "-24p" rewrites timestamps to 23.976 by using mkvtoolnix
* switch "-24p" is automatically activated for evo/m2ts source files
* using Haali's Media Splitter for demuxing now
* added support for WMV source files
More information see first post of this thread.
Yod4z
10th December 2007, 20:19
I can't demux the m2ts file from my AVCHD camcorder, i got this error:
Demuxing source file streams. Please wait..
Getting "Video 1" Dump instance failed.
I can put in some webspace the file if you want some test file
I use the haali version from 03/06/2007
madshi
10th December 2007, 21:27
Hello, you need to get and register the "dump" filter. It ships with GraphEdit. So download GraphEdit. Then inside you'll find "dump.ax". Open the command prompt on the GraphEdit folder, then do "regsvr32 dump.ax". This will register the dump filter. Afterwards the error message you're getting from h264tsto should be gone for good.
Snowknight26
11th December 2007, 05:42
Would you be able to add the command -audioonly?
Yod4z
11th December 2007, 08:54
Hello, you need to get and register the "dump" filter. It ships with GraphEdit. So download GraphEdit. Then inside you'll find "dump.ax". Open the command prompt on the GraphEdit folder, then do "regsvr32 dump.ax". This will register the dump filter. Afterwards the error message you're getting from h264tsto should be gone for good.
thanks ;) this work
madshi
11th December 2007, 09:01
Would you be able to add the command -audioonly?
Sure.
Mitchjs
12th December 2007, 07:22
Madshi, 1.3 is GREAT!!!
really does well...
could you add some way of choosing the audio streams
for instance, i have a .m2ts that has 4 audio streams, i just want 1 of them or sometimes 2
just need some way of picking audio tracks
maybe a -list command, which just lists out what
items are in the source file too
would help
thanks!
mitch
madshi
12th December 2007, 08:04
Madshi, 1.3 is GREAT!!!
really does well...
could you add some way of choosing the audio streams
for instance, i have a .m2ts that has 4 audio streams, i just want 1 of them or sometimes 2
just need some way of picking audio tracks
maybe a -list command, which just lists out what
items are in the source file too
Unfortunately listing the items are difficult. All I could do is list the number of audio streams. But listing their type and properties is not really possible. Choosing the audio stream indexes you want to keep would probably be possible. But wouldn't it be possible to just rerun the final result through mkvtoolnix? You can easily get rid of unwanted audio streams with mkvtoolnix. So I'm not sure if this is really a functionality that h264tsto must provide?
Mitchjs
12th December 2007, 22:24
madshi, i did, rerun it through mkvtoolnix, and guess what, the new MKV didnt play!!!!!
ill try it again...
i know your tools is only as good as haalis demux
today i had it hang forever on a .evo
mitch
Atak_Snajpera
14th December 2007, 19:50
Will you be able to add -audioonly switch?
madshi
14th December 2007, 20:35
Will you be able to add -audioonly switch?
Sure.
Mitchjs
14th December 2007, 23:43
listing out the audio tracks is fine, and some way to keep the ones i want...
-audiotrack=0,1,2
maybe?
mitch
Thunderbolt8
15th December 2007, 04:53
does this tool any different when for example using graphedit and haali filters (media splitter & matroska muxer) to remux the video stream from a .m2ts or .evo file to .mkv?
Atak_Snajpera
16th December 2007, 01:55
Could you also add switch to change frame rate? My ts files are always muxed with default 25 fps instead of real 29.97.
madshi
16th December 2007, 10:19
does this tool any different when for example using graphedit and haali filters (media splitter & matroska muxer) to remux the video stream from a .m2ts or .evo file to .mkv?
This tool is identical to using "Haali Simple Media Splitter -> Haali Matroska Muxer". The "Simple" Media Splitter outputs all audio tracks, the non-Simple Media Splitter only outputs one audio track at a time.
There's some automated post processing involved for m2ts and evo files, though. Basically h264tsto automatically locates mkvtoolnix and rewrites the timestamps to 24p in a 2nd step. Of course you can do that manually yourself. h264tsto just automates it.
madshi
16th December 2007, 10:20
Could you also add switch to change frame rate? My ts files are always muxed with default 25 fps instead of real 29.97.
I'm a bit confused. Can you please let me know:
(1) Which framerate does the original ts file have?
(2) Which framerate do you get from gdsmux/GraphEdit?
(3) Which framerate do you get from h264tsto?
(4) Which framerate do you *want* to get?
musicman2311
16th December 2007, 16:09
hi - question - does this tool manipulate settings in the original bitstream ? when i usually try to create a blu ray of elementary video streams from hd-dvd i get some error by the authring tool claiming some flag is illegal.
i would intend to use this tool to make mkv and then use tsremux to make m2ts - is this possible ? thanks
Atak_Snajpera
16th December 2007, 23:33
Samples from latest Canon HG10 camcorder
http://file.meyersproduction.com/hg10/00011.MTS.zip
http://file.meyersproduction.com/hg10/00019.MTS.zip
1) 29.97
2) gdsmux also muxes to 25 fps
3) 25 fps
4) 29.97
BTW MTS = M2TS
madshi
18th December 2007, 20:58
does this tool any different when for example using graphedit and haali filters (media splitter & matroska muxer) to remux the video stream from a .m2ts or .evo file to .mkv?
Not really. Well, it uses the Haali Simple Media Splitter instead of the normal Haali Media Splitter because the "Simple" one allows muxing more than 1 audio track. Furthermore I'm doing post processing by automating another mkvtoolnix run to rewrite the timestamps. But everything h264tsto does you can also do by using GraphEdit and mkvtoolnix manually. h264tsto is just automating things...
madshi
18th December 2007, 20:59
hi - question - does this tool manipulate settings in the original bitstream ? when i usually try to create a blu ray of elementary video streams from hd-dvd i get some error by the authring tool claiming some flag is illegal.
i would intend to use this tool to make mkv and then use tsremux to make m2ts - is this possible ? thanks
This tool does not manipulate anything. So I don't think it will help in your situation.
madshi
18th December 2007, 21:00
Samples from latest Canon HG10 camcorder
http://file.meyersproduction.com/hg10/00011.MTS.zip
http://file.meyersproduction.com/hg10/00019.MTS.zip
1) 29.97
2) gdsmux also muxes to 25 fps
3) 25 fps
4) 29.97
BTW MTS = M2TS
I'll have a look at these. But please be aware that I'm only automating Haali's filters, so in the end there might not be much I can do, if Haali's filters do something wrong...
madshi
18th December 2007, 21:01
h264tsto v1.4 released
http://madshi.net/h264tsto.zip
* switch "-audioonly" option added
Atak_Snajpera
18th December 2007, 21:20
I'll have a look at these. But please be aware that I'm only automating Haali's filters, so in the end there might not be much I can do, if Haali's filters do something wrong...
I know very well how your tool works therefore I asked you for option to fix fps manually.
madshi
18th December 2007, 22:03
So an option to specify a specific fps value would do the trick?
Atak_Snajpera
18th December 2007, 22:11
exactly
madshi
18th December 2007, 22:30
h264tsto v1.5 released
http://madshi.net/h264tsto.zip
* new switch "-25p" rewrites timestamps to 25.000
* new switch "-30p" rewrites timestamps to 29.970
Mitchjs
18th December 2007, 22:44
madshi, my audio track selection option :)
-audio1,2,3
would include audio tracks 1,2,3
if a file has like 5 of them... its just the 1st 3 tracks, in the pid order... if it can be done :)
thanks!!!!!
mitch
Atak_Snajpera
19th December 2007, 00:49
Thank you for update :)
one suggestion:
if -audioonly is used output extension should be .mka
madshi
19th December 2007, 08:25
madshi, my audio track selection option :)
Didn't forget ya, your wish is just a bit more complicated than the other wishes were, so you'll need to have some more patience...
Mitchjs
19th December 2007, 08:31
No problem
thanks!!!!
mitch
Atak_Snajpera
19th December 2007, 13:18
Sorry but I have another request :)
-demuxvideoonly and -demuxaudioonly instead of demux
I would also rename -videoonly and -audioonly to -remuxvideoonly and -remuxaudioonly
madshi
19th December 2007, 13:20
Sorry but I have another request :)
-demuxvideoonly and -demuxaudioonly instead of demux
I would also rename -videoonly and -audioonly to -demuxvideoonly and -demuxaudioonly
What would that be good for? You can combine "-demux" with "-video/audioonly" right now and have the same effect! At least that's how it was intended by me. Does it not work that way?
Atak_Snajpera
19th December 2007, 13:47
ups :)
I didn't realise I can do that. I'am an idiot :) sorry
madshi
19th December 2007, 17:27
No problem, mate... :)
ACrowley
23rd December 2007, 09:32
Feature Request :
- Display Delay Values
- Joining Input Files
Short : All Features eac3to offers :)
- Framecount Value for the Video like the "calculated Framecount" in Evodemux. Its very important for HDDVD Video encoding
THX
madshi
23rd December 2007, 10:08
Feature Request :
- Display Delay Values
- Joining Input Files
Short : All Features eac3to offers :)
- Framecount Value for the Video like the "calculated Framecount" in Evodemux. Its very important for HDDVD Video encoding
Then why don't you use eac3to instead? :) Ok, eac3to doesn't support m2ts/ts yet. Is that the reason?
Anyway, h264tsto is a simple automation tool and I'm not planning to upgrade it to a full powered video application. So I don't think I will add detection for delay values and for joining input files etc. That would need a whole lot of development time which I simply don't have. Right now all h264tsto does is automating some DirectShow filters. The features you're asking for would require writing some "real" code.
amdxpdevil
13th January 2008, 11:15
Thx for the tool! it is great.
But I do have some problem with the new version 1.5.
when I try to demux a .TS file, it only output as a .mpv and .mpa file. Is there anyway I can demux as .h264, .vc1, .ac3, etc? Or is there something I did wrong?
madshi
13th January 2008, 11:17
Thx for the tool! it is great.
But I do have some problem with the new version 1.5.
when I try to demux a .TS file, it only output as a .mpv and .mpa file. Is there anyway I can demux as .h264, .vc1, .ac3, etc? Or is there something I did wrong?
Just rename the files to the correct extension. h264tsto only knows if a file is video or audio. It doesn't know which format exactly they are. That's why it uses the "mpv" and "mpa" extensions.
amdxpdevil
18th January 2008, 06:36
Just rename the files to the correct extension. h264tsto only knows if a file is video or audio. It doesn't know which format exactly they are. That's why it uses the "mpv" and "mpa" extensions.
But the problem is that all the .mpv I rename is not playable.
.h264, .mpg etc... does anyone face this issue?
Best
Atak_Snajpera
18th January 2008, 08:07
You get Elementary Stream not Program Stream.
If you want to play it use MKVMerge to mux to .mkv container. You will have to specify correct fps.
amdxpdevil
18th January 2008, 12:48
You get Elementary Stream not Program Stream.
If you want to play it use MKVMerge to mux to .mkv container. You will have to specify correct fps.
I was trying to do that, but somehow it just won't play.
Do I need to specifiy the fps when I extract the .ts file?
Best
Thunderbolt8
25th January 2008, 23:36
heres a sample which h264tsto didnt accept and for which I had to use xport to de- and remux it to .mkv (munich h264 from premiereHD)
http://www.sendspace.com/file/xh8l1q
according to xport there were some frame errors at the beginning, maybe this was causing the error. the command line was "xport 129 1 2"
might be interesting for your own .ts remuxer in the future.
Atak_Snajpera
25th January 2008, 23:53
Did you check TS file in Transport Stream Packed editor. Make sure also that your TS file starts at key frame!
madshi
26th January 2008, 09:37
heres a sample which h264tsto didnt accept and for which I had to use xport to de- and remux it to .mkv (munich h264 from premiereHD)
http://www.sendspace.com/file/xh8l1q
according to xport there were some frame errors at the beginning, maybe this was causing the error. the command line was "xport 129 1 2"
might be interesting for your own .ts remuxer in the future.
There's not much h264tsto can do about it. It's simple automating the Haali filters. So if the Haali filters don't accept the input stream, there's nothing h264tsto can do (short of adding loads of code to try to repair the stream which I'm not going to add).
See Atak_Snajpera's suggestions. Also you could use TsSplitter or a hex editor to cut of the damaged/corrupted start of the TS stream. Afterwards h264tsto should do it's job just fine.
wiak
26th January 2008, 23:11
here is a .ts file to wrap your heads around
http://www.sendspace.com/file/qyjkzf
its H.264 + HE-AAC with LATM
would be cool if h264tsto removes LATM etc :cool:
so it goes into mkv
madshi
26th January 2008, 23:54
I don't even know what LATM is... :o
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.