Log in

View Full Version : HDTV - H264.TS : help to edit (crop-resize) and encode


Butterfly
16th September 2007, 01:59
Hi everybody!
First of all i would like to thank Doom9 and all the developers for the great work!
It's my first post cause most of the time i didn't have the knoweldge to answer any questions...

Let's talk business now.
I was able to record some HDTV 1080i :
General #0
Format : MPEG-4 Transport
Format/Family : MPEG-4
File size : 88.8 MiB
PlayTime : 1mn 11s
Bit rate : 10 Mbps

Video #0
Codec : AVC
Codec/Info : MPEG-4 AVC
Codec profile : Main@L4.0
PlayTime : 1mn 11s
Bit rate : 9864 Kbps
Width : 1920 pixels
Height : 1088 pixels
Aspect ratio : 16/9
PixelAspectRatio : 1.000
DisplayAspectRatio : 1.765

Audio #0
Codec : AC3
Bit rate : 384 Kbps
Bit rate mode : CBR
Channel(s) : 6 channels
Channel positions : Front: L C R, Rear: L R, Subwoofer
Sampling rate : 48 KHz
Video0 delay : 3s 3ms
Language : French

and i would like to convert it to 1280x720 without losing to much quality.

HERE (http://anonym.to/?http://uploaded.to/?id=ecw7rv) is a sample.

HERE (http://anonym.to/?http://uploaded.to/?id=or7d62) is a conversion made with Nero Vision (Nero Digital AVC - HDTV - 1280x720 - 3200kbps 1 Pass + AAC-LC SBR96kbps THEN Yamb to solve the sound delay)

- Since I can't read (but only record) 1080i, I would like to know if what i got with Nero is decent...?
Would it be non-sense to encode H264.TS to x264 High Profile? If no, is there a way to do that :confused:

- Actually i'm using meGUI to encode my MPEG-2.TS to x264 HQ-Slow and the result is great. But with H264.TS, I'm a little bite lost...

So while reading the forum (http://forum.doom9.org/showthread.php?t=114361) i found that :

To cut h264.ts, H264TScutter is doing the job fine.
To demux H264.TS, mencoder is doing the job fine.
To remux .264 & .aac, Yamb or MKVToolnix are doing the job fine.

But i would like to know how to edit (crop, resize) and encode H264.TS to x264 High Profile OR at least resize in AVC/H264 with a lower bitrate.
Could mencoder do that?

- Finally, is there a way to get meGUI to deal with H264.TS files?
Cause it seems DGAVCDec could help for that?


I guess i said enough weird stuff for tonight so sorry if i'm talking non-sense sometimes.

Thank to those who will take the time to answer ;)

Butterfly
16th September 2007, 23:29
A nice fellow man form FBTZ (Eeknay) told me how to solve my problem so here is the solution if someone would like to the same stuff :

1 - TSPE : cut a sample - HERE (http://uploaded.to/?id=zsduw1)

2 - Demux .TS with xport : xport hd.ts 1281 1 1 (1281 is the PAT number)
I got two files :
hd.mpa for the sound (which i'll use later to remux)
hd.mpv for the video


3 - Create a graph in GraphEdit.

HERE (http://www.zshare.net/download/3687958a4d9ba3/) is the graph I made (the first box is DirectShow -> Haali Media Splitter) :

http://img510.imageshack.us/img510/5173/20070917000230hk0.jpg

4 - Create a Aviscript :
DirectShowSource("C:\Documents and Settings\Skywalker\Mes documents\My Videos\my.graphV2.grf", audio=false)
TomsMoComp(1,5,1) #your deinterlacer
crop(2,6,-0,-2)

Spline36Resize(1280,720)5 - i loaded this script in meGUI and i got the preview! Hooray! :D

5 - Remux

I can't make an encoding test cause i'm already encoding France v Namibia but I guess it should be ok if i can handle the sound the sound!