Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd November 2006, 18:16   #1  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 8,917
"h264tsto" automates audio/video demuxing and MKV muxing

http://madshi.net/h264tsto.zip

Code:
h264tsto v1.5, freeware by madshi.net

This tool can either demux video/audio to separate raw files.
Or it can remux video/audio into a Matroska (*.mkv) container.
h264tsto sourceFile [destFile] [-options]

Options:
-demux      demuxes video/audio streams to separate raw files
-videoonly  remuxes/demuxes only the video stream, ignores audio
-audioonly  remuxes/demuxes only the audio streams, ignores video
-24p        rewrites the destination MKV timestamps to 23.976
-25p        rewrites the destination MKV timestamps to 25.000
-30p        rewrites the destination MKV timestamps to 29.970
-no24p      don''t rewrite the destination MKV timestamps

Support input formats:
*.ts
*.m2ts
*.vob
*.evo
*.avi
*.wmv
*.mkv

The following software is needed:
(1) http://haali.cs.msu.ru/mkv/
(2) http://www.bunkus.org/videotools/mkv...s.html#windows

Last edited by madshi; 18th December 2007 at 22:31.
madshi is online now   Reply With Quote
Old 2nd November 2006, 19:30   #2  |  Link
Eeknay
Registered User
 
Join Date: Jul 2005
Posts: 54
Just tried this and it didn't mux the audio to MKV (video worked fine), is this intentional?
Eeknay is offline   Reply With Quote
Old 2nd November 2006, 19:42   #3  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
well its a h.264 tool, no?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 3rd November 2006, 00:41   #4  |  Link
giandrea
Registered User
 
Join Date: Sep 2004
Location: Italy
Posts: 154
Just being curious... where do you get TS streams with H.264 video? It seems to me they are HD channels. In the USA HD channels are encoded in MPEG2, in Europe there are just few HD channels available on satellite, they encode in H.264, but they are mostly testing channels.
just curious...
giandrea is offline   Reply With Quote
Old 3rd November 2006, 04:39   #5  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
http://en.kingofsat.net/hdtv.php
bob0r is offline   Reply With Quote
Old 3rd November 2006, 11:00   #6  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 8,917
Quote:
Originally Posted by Eeknay View Post
Just tried this and it didn't mux the audio to MKV (video worked fine), is this intentional?
Yes, it's intentional. The tool is about H.264 video streams, only. You can demux audio streams with Project X and mux them to the H.264 MKV with mkvmerge. Of course I could have added audio support, too, but then I didn't find a quick way to extract all audio languages. It would have been the default language, only. So I decided to handle video, only.

Quote:
Originally Posted by giandrea
Just being curious... where do you get TS streams with H.264 video? It seems to me they are HD channels. In the USA HD channels are encoded in MPEG2, in Europe there are just few HD channels available on satellite, they encode in H.264, but they are mostly testing channels.
just curious...
Here in Germany there are 3 free German TV stations broadcasting (from time to time) HDTV movies in H.264. Then of course there's German pay TV, also in H.264. Finally there is UK pay TV and the free BBC HD sender.
madshi is online now   Reply With Quote
Old 3rd November 2006, 19:41   #7  |  Link
carlo_0000
Registered User
 
Join Date: Sep 2005
Posts: 104
i tested it

it convert very good to mkv

but i can't still open it in megui

it say me

Avisynth script error:
directshowsource; i can't determine the framerate of the video, you must use the "fps" parameter
carlo_0000 is offline   Reply With Quote
Old 3rd November 2006, 21:17   #8  |  Link
friends-fan
Registered User
 
Join Date: Jan 2003
Posts: 5
Quote:
Originally Posted by carlo_0000 View Post
i tested it

it convert very good to mkv

but i can't still open it in megui

it say me

Avisynth script error:
directshowsource; i can't determine the framerate of the video, you must use the "fps" parameter
That can be fixed by adding the fps=25 (for example) option in the avs script. Still will get you an out of sync mkv after encoding most likely...
__________________
Bye,
friends-fan
friends-fan is offline   Reply With Quote
Old 4th November 2006, 02:47   #9  |  Link
carlo_0000
Registered User
 
Join Date: Sep 2005
Posts: 104
Quote:
Originally Posted by friends-fan View Post
That can be fixed by adding the fps=25 (for example) option in the avs script. Still will get you an out of sync mkv after encoding most likely...

stil not working but the previeuw is gray

olso gray when playing avs with mplayer clasic

must be egain filter/codec problem

i try on a other computer , i think it works

Last edited by carlo_0000; 4th November 2006 at 05:50.
carlo_0000 is offline   Reply With Quote
Old 9th January 2007, 15:30   #10  |  Link
wadim
Registered User
 
Join Date: Dec 2006
Posts: 4
Thank you very much for this one, tried different ways and always got error format in mkvtolnix after and now it's ok
wadim is offline   Reply With Quote
Old 10th January 2007, 01:48   #11  |  Link
daWsOn_s
Sandro
 
Join Date: Nov 2006
Location: Pescara, Italy
Posts: 168
Quote:
Originally Posted by madshi View Post

Here in Germany there are 3 free German TV stations broadcasting (from time to time) HDTV movies in H.264. Then of course there's German pay TV, also in H.264. Finally there is UK pay TV and the free BBC HD sender.
Where are they transmitted?
daWsOn_s is offline   Reply With Quote
Old 10th January 2007, 03:14   #12  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
http://en.kingofsat.net/hdtv.php
bob0r is offline   Reply With Quote
Old 10th January 2007, 14:12   #13  |  Link
daWsOn_s
Sandro
 
Join Date: Nov 2006
Location: Pescara, Italy
Posts: 168
Ok satellite tv
daWsOn_s is offline   Reply With Quote
Old 28th January 2007, 20:52   #14  |  Link
wiak
Registered User
 
Join Date: Jul 2003
Location: somewhere north
Posts: 243
Quote:
Originally Posted by madshi View Post
In case you're interested, I was tired of having to use GraphEdit to demux the H.264 video stream from my TS recordings. So I've written a little tool which automates it:

http://madshi.net/h264tsto.zip

It's a command line tool. Here's the help output:
any eta on a version that can mux both video & audio?
its a little space of like 30GB when muxing to mkv
alsp 10GB for ts, 10GB for video tmp mkv and then 10MB for the mkv with sound

it should be easy
__________________
Woah! Ninja?! http://nwgat.ninja/ (AV1 Overview)
"Not available in your region" has now been redefined as "Go Pirate, you filthy scum" Nwgat
wiak is offline   Reply With Quote
Old 30th January 2007, 13:29   #15  |  Link
Ricey
Registered User
 
Join Date: Feb 2006
Posts: 69
Quote:
Originally Posted by carlo_0000 View Post
i tested it

it convert very good to mkv

but i can't still open it in megui

it say me

Avisynth script error:
directshowsource; i can't determine the framerate of the video, you must use the "fps" parameter

Use ffdshow and it works
Ricey is offline   Reply With Quote
Old 10th February 2007, 12:11   #16  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 8,917
Hi guys,

here's version 1.1:

http://madshi.net/h264tsto.zip

Here's the help text:

Code:
h264tsto v1.1, freeware by madshi.net

Usage: h264tsto srcFilename.ts destFilename.mkv|destFilename.h264

This tool can either demux the H.264 stream to a raw *.h264 file.
Or it can mux the H.264 stream into a Matroska (*.mkv) container.

Demuxing into a raw *.h264 file needs the following filters to be installed:
(1) Elecard or Cyberlink Demuxer (empgdmx.ax/CLDemuxer.ax)
(2) Dump (dump.ax, shipping with GraphEdit)

Muxing into a Matroska container needs the following filters to be installed:
(1) Haali Media Splitter
(2) Haali Matroska Muxer

Version 1.1 now also demuxes/muxes the audio tracks, if possible.
Recommended for demuxing more than one audio track is the Elecard Demuxer.
The Cyberlink Demuxer only offers the first audio track for demuxing.
If the format is unknown, the files are demuxed as "rawaudio/rawvideo".
The Haali Media Splitter doesn't support more than one audio track at the same time, so muxing into MKV is limited to one audio track at this point in time. If Haali adds support for all audio tracks, I'll update this tool accordingly.

P.S: Supported for demuxing is now also MPEG2 video, DTS etc, as long as the Demuxer filters support these formats.
madshi is online now   Reply With Quote
Old 10th February 2007, 23:58   #17  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 8,917
Just got note that Haali's "Simple Media Splitter" does offer all TS content as output pins in contrast to the "Media Splitter". So I've uploaded h264tsto version 1.2 already (same link as before). This version now muxes TS files to MKV with all video and audio streams.

Thanks to Haali for his great DirectShow filters!
madshi is online now   Reply With Quote
Old 11th February 2007, 13:35   #18  |  Link
Okraml
Registered User
 
Join Date: Apr 2002
Posts: 46
Hi madshi,

can you write a modified version of the tool, that takes a .vc1 file (with file source async) -> elecard mpeg demultiplexer -> Matroska Muxer ?
In graphedit they connect, but only small files result in a successfull muxing. Bigger files make problems like http://forum.doom9.org/showthread.php?t=121497.

Thanks in advance.

:-) Okraml
Okraml is offline   Reply With Quote
Old 11th February 2007, 14:54   #19  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 8,917
Do you think doing it with a tool will work better than doing it in Graphedit? I did try to mux VC-1 into MKV already via Graphedit and it didn't work for me at all. So I somehow doubt that it will work with a tool. Basically h264tsto does the same thing Graphedit does, just automated...
madshi is online now   Reply With Quote
Old 11th February 2007, 15:14   #20  |  Link
Okraml
Registered User
 
Join Date: Apr 2002
Posts: 46
Quote:
Originally Posted by madshi View Post
Do you think doing it with a tool will work better than doing it in Graphedit? I did try to mux VC-1 into MKV already via Graphedit and it didn't work for me at all. So I somehow doubt that it will work with a tool. Basically h264tsto does the same thing Graphedit does, just automated...
I think there have been some h264-ts files that i couldn't transmux in graphedit, but with h264tsto.
With a small vc1 file i was able to mux it in graphedit, but not with larger files. In the linked thread you can also see, that with a trick i was able to mux larger files a little better (but only got 60mb files).
So i think a modified tool is worth a try (if its not to much work to implement).

:-) Okraml
Okraml is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.