Log in

View Full Version : h264 -> to.. ANYTHING useful?


duckdown
22nd November 2007, 06:56
Hi all.. I am recording h264 .ts transport streams directly from my DVB-S card to my hard disk. I cannot find ANYTHING that can even play/open/edit/encode these files

What is the easiest way to get these into x264 or XviD? Any help is greately appreciated!! Thanks.

PS: i have tried to open the files in Video ReDo, VDubMod, etc. and nothing can even open the file without complaining

Thanx

Atak_Snajpera
22nd November 2007, 12:13
Install Haali Media Splitter
http://haali.cs.msu.ru/mkv/MatroskaSplitter.exe

Guest
22nd November 2007, 12:13
There is no EASY way right now.

One option is to demux the audio and video and then serve the video into VirtualDub via my DGAVCDec decoder/frame server. You can dub the audio back in using the Avisynth script or in VirtualDub.

Guest
22nd November 2007, 12:14
Install Haali Media Splitter
http://haali.cs.msu.ru/mkv/MatroskaSplitter.exe I have not had full success with that. For example, how do you set the PIDs of the program that you want?

You should also tell the poster he will need a DirectShow decoder as well, and that he'll need to use DirectShowSource() in Avisynth. It is not an EASY thing.

Atak_Snajpera
22nd November 2007, 12:15
Use Xport :)

Guest
22nd November 2007, 12:16
Then why do you need a splitter?

Atak_Snajpera
22nd November 2007, 12:18
If first method does not work then I use xport. Simple.

Guest
22nd November 2007, 12:56
Sounds real easy. :devil:

Has123
22nd November 2007, 19:20
For playback I use Haali splitter and CoreAVC esp if you are recording 1080i (HD interlaced) and MPC.
For editing
1) Trimming you have 2 options one is TSRemux though you have to input the values. The other option is h264ts_Cutter. Version 108 worked better than 109 on my system.
2)Demuxing. You have three options. xport is one and what I like about xport is the demuxed audio is always in sync (esp if original stream is AC3 5.1 and you want to keep it untouched). TSRemux is another option just right click on the stream you want demuxed. Third option is xmuxer pro. The first 2 are free.
3)For editing I use avisynth scripts with HCenc, megui, ripbot....
4) NeroVision/Nero Recode is another all in one option.

duckdown
22nd November 2007, 19:31
Thanks for the info so far :thanks::thanks::thanks:

So which is the method you personally would use for converting to XviD then?

Cheers

Has123
22nd November 2007, 19:36
I do not encode to XviD but you certainly can use MeGUI. The method I would do is
1) demux with xport.
2) use Avisynth script "DirectShowSource" with megui (you should have Haali splitter and CoreAVC/Cyberlink decoder installed. CoreAVC is much cheaper and works as well/better).
3) mux the video and original audio.

Atak_Snajpera
22nd November 2007, 22:05
In my opinion you should:
1) check for errors using Transport Stream Packet Editor (You can also use TSPE to remove unwanted adds)
2) if you want to keep original audio use xport
3) Encode with your favorite GUI

Has123
22nd November 2007, 22:08
In my opinion you should:
1) check for errors using Transport Stream Packet Editor (You can also use TSPE to remove unwanted adds)
2) if you want to keep original audio use xport
3) Encode with your favorite GUI

Does TSPE work with h264 ts files? Thanks,

Atak_Snajpera
22nd November 2007, 22:12
Ofcourse

duckdown
22nd November 2007, 22:35
In my opinion you should:
1) check for errors using Transport Stream Packet Editor (You can also use TSPE to remove unwanted adds)
2) if you want to keep original audio use xport
3) Encode with your favorite GUI


Hi there -- I am researching about this xport / TSPE right now, but you say encode with your favorite GUI which is what I have been trying; and I cannot get the files to load into the program

An example is VirtualDubMod; I try to choose the .h264 ts file and it just spits out an error about unrecognized video stream or some such.


I already have CoreAVC and Cyberlink both installed

What is my next step? Thanks for all the help so far guys

sillKotscha
23rd November 2007, 00:42
xport Transport Stream Demuxer (http://www.w6rz.net/)

TSPE - Transport Stream Packet Editor (http://ventolin.freehostia.com/)

duckdown
23rd November 2007, 02:03
Hi folks

I tried opening my h264 .ts file for editing (to cut commercials) using the tool " H.264 TS Cutter V109 " , downloaded it VIA their website, but when I try to open my .ts file it says

Unhandled exception has occoured in your application. Unable to read beyond the end of the stream.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.ReadByte()
at TSreader.TSreader.GetNextTSPaket()
at TSreader.TSreader.GetNextIDRTSPaket()
at TSreader.TSreader.TSreaderCtor()
at TSreader.TSreader..ctor(String filename)
at H264TS_Cutter.frmMain.loadTSToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
H264TS_Cutter
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/konflict/Desktop/Encoding/H264tsCutter/H264TS_Cutter.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
TransportPacket
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/konflict/Desktop/Encoding/H264tsCutter/TransportPacket.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
c7bjqgts
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
TSreader
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/konflict/Desktop/Encoding/H264tsCutter/TSreader.DLL
----------------------------------------



I recorded the file VIA TSreader and there were 0 continuity errors..

Anyone know why this happens or what to try next? Thanks guys

tobiasm767
23rd November 2007, 06:39
try the version v108.
in the version v109 there a still some bugs. sorry!

duckdown
23rd November 2007, 06:46
Hi , I open it in 1.08 now and while it doesnt crash & give me those errors, once I load the file into it a little dialog box pop up and says


Could not init. video playback
DS-Error
(No such interface supported)


Any idea what to try now? :) Thank you!

duckdown
23rd November 2007, 07:20
Okay I got it to open in 1.08 now.. Had to reinstall Haali Media Splitter

So I have made my cuts, and it saved into my edited .ts file.

From there, I ran

xport myfile.ts 1 1 1


and it created a bits0001.mpv (video) and bits0001.mpa (audio)

Now I am officially stuck.. I tried opening it in vdub with this in my .avs script


DirectShowSource("c:\tmp\caps\criminal\bits0001.mpv")


(replacing the mpeg2source() line) but it immediately complains in vdub saying


Avisynth open failure:
DirectShowSource: Could not open as video or audio.

Video returned:
DirectShowSource: couldn't open file c:\tmp\caps\criminal\bits0001.mpv: Cannot play back the file. The format is not supported

Audio returned:
DirectShowSource: couldn't open file c:\tmp\caps\criminal\bits0001.mpv: Cannot play back the file. The format is not supported.



Am I getting close! It seems like its close to working considering I managed to get it cut as I like and demuxed

Thanks in advance! again :)

Atak_Snajpera
24th November 2007, 12:58
Put mpv and mpa in mkv container. Don't forget to specify correct fps value!

http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-unicode-2.1.0-setup.exe

bnz
3rd December 2007, 15:20
You mentioned Nero as an all-in-one option, but did anyone actually succeed in somehow recoding a h264 .ts using Nero recode? On my machine, Recode does not load .ts files. Is there actually a possibility (by remuxing or something similar) to use Nero for recoding purposes (e.g. to 720p mp4) at all?

Has123
3rd December 2007, 15:29
You mentioned Nero as an all-in-one option, but did anyone actually succeed in somehow recoding a h264 .ts using Nero recode? On my machine, Recode does not load .ts files. Is there actually a possibility (by remuxing or something similar) to use Nero for recoding purposes (e.g. to 720p mp4) at all?

For some reason Recode does not like Haali splitter and this is what I have been doing uninstall Haali, use Recode, then reinstall Haali as needed.

bnz
3rd December 2007, 18:58
Wow, Nero seems to work indeed once Haali is gone (doing my first test-encode right now). This hint was pretty amazing for me, thank you! Edit: hm, it seems Nero has problems syncing the audio. I got to play some more with it. Otherwise, the recoded video looks fine to me.