View Full Version : Help with H264 Caps
Ricey
24th June 2008, 01:48
Iv had a search about this already but im finding nothing too help me. Sorry if i missed something i just really need the help of the doom9 members :)
Ok im capping BBC HD and its h.264 in a .ts file
I don have the first clue how to encode this.
There are two ways id like to learn how to do it.
encode to x264 720p and to XviD.
I would really be forever grateful if someone could show me what i need to do as all iv ever done before is pdtv, thanks and any help no matter how big or small will be great.
:thanks:
neuron2
24th June 2008, 02:14
Your uploaded RAR includes only an AC3 audio track. Where is the transport stream?
stax76
24th June 2008, 02:58
I've received a TS sample too today, I wonder which demuxers, AviSynth and DirectShow filters exist to read it and how robust they are, specs are:
General
ID : 28
Complete name : D:\Desktop\Neuer Ordner\SVT_HD_Test_Sample.ts
Format : MPEG-TS
File size : 93.6 MiB
Duration : 1mn 2s
Overal bit rate : 12.6 Mbps
Video
ID : 4100 (0x1004)
Menu ID : 1064 (0x428)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Duration : 1mn 2s
Bit rate : 11.2 Mbps
Width : 1280 pixels
Height : 720 pixels
Display aspect ratio : 16/9
Frame rate : 50.000 fps
Colorimetry : 4:2:0
Scan type : Progressive
Audio #1
ID : 1796 (0x704)
Menu ID : 1064 (0x428)
Format : AC-3
Format/Info : Audio Coding 3
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 5 channels
Channel positions : Front: L C R, Rear: L R
Sampling rate : 48.0 KHz
Video delay : -684ms
Language : Swedish
Audio #2
ID : 4356 (0x1104)
Menu ID : 1064 (0x428)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Bit rate mode : Constant
Bit rate : 256 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Video delay : -571ms
Language : Swedish
Menu #1
ID : 260 (0x104)
Menu ID : 1064 (0x428)
Format : AC-3 / AVC / MPEG Audio
List : 1796 (0x704) (AC-3, swe) / 4100 (0x1004) (AVC) / 4356 (0x1104) (MPEG Audio, swe)
Menu #2
ID : 257 (0x101)
Menu ID : 1065 (0x429)
Menu #3
ID : 290 (0x122)
Menu ID : 1066 (0x42A)
Menu #4
ID : 307 (0x133)
Menu ID : 1067 (0x42B)
Ricey
24th June 2008, 02:59
dam sorry i did, il upload the full ts one sec k
Ricey
24th June 2008, 03:15
https://download.yousendit.com/74ECA9B87B01BA0B
Sorry about that my bad :thanks:
neuron2
24th June 2008, 04:10
I've received a TS sample too today, I wonder which demuxers, AviSynth and DirectShow filters exist to read it and how robust they are, specs are: You have to post a TS stream sample!
neuron2
24th June 2008, 04:20
There are two ways id like to learn how to do it.
encode to x264 720p and to XviD. It's MBAFF so it works fine in DGAVCDec. It's 1440x1080 interlaced 25fps, so you'll either have to bob it or deinterlace it to get progressive. And then you'll have to resize it to get 720P. You can do both in your Avisynth script. Then you can encode it as desired. For X.264, use Megui. For XviD, use VirtualDub.
Ricey
24th June 2008, 18:06
K i can load it into vdub and megui but i keep getting a error
saying that the imag size is too small or something.
Ricey
24th June 2008, 19:02
This is the error im getting
http://img176.imageshack.us/img176/5519/errorqk9.png
Script im using
LoadPlugin("F:\Documents and Settings\RiCeY\My Documents\+APPS\dgavcdec100a24\DGAVCDecode.dll")
AVCSource("BBCHD.Preview.Football.dga")
crop(2,2,2,2)
BilinearResize(1280,720) # Bilinear (Soft)
Atak_Snajpera
24th June 2008, 23:08
Just use RipBot264
neuron2
24th June 2008, 23:12
This is the error im getting
Script im using
LoadPlugin("F:\Documents and Settings\RiCeY\My Documents\+APPS\dgavcdec100a24\DGAVCDecode.dll")
AVCSource("BBCHD.Preview.Football.dga")
crop(2,2,2,2)
BilinearResize(1280,720) # Bilinear (Soft) Don't know about your error because I can't get your image link behind my firewall right now, but the video is interlaced, so you can't just resize it like that without first deinterlacing or bobbing. Didn't you read what I posted above?
GodofaGap
25th June 2008, 00:07
Correct script is:
LoadPlugin("F:\Documents and Settings\RiCeY\My Documents\+APPS\dgavcdec100a24\DGAVCDecode.dll")
AVCSource("BBCHD.Preview.Football.dga")
crop(2,2,-2,-2) # <---- correction
BilinearResize(1280,720) # Bilinear (Soft)
Crop(2,2,2,2) creates a 2x2 image, Crop(2,2,-2,-2) chops 2 rows of pixels of each side. For more information about crop look in the avisynth documentation.
If the source is interlaced you must indeed bob or deinterlace before resizing. The only resizing you can do without deinterlacing is Verticalreduceby2.
Ricey
25th June 2008, 02:13
so i would have to encode to deinterlace, then encode again to resize? is that what your saying.
Thanks for the help lads i need it :P
rebkell
25th June 2008, 02:36
so i would have to encode to deinterlace, then encode again to resize? is that what your saying.
Thanks for the help lads i need it :P
No, try this script:
LoadPlugin("F:\Documents and Settings\RiCeY\My Documents\+APPS\dgavcdec100a24\DGAVCDecode.dll")
AVCSource("BBCHD.Preview.Football.dga")
tfm()
LanczosResize(1280,720)
neuron2
25th June 2008, 03:12
It's interlaced; tfm() is not the right tool!
tdeint()
LanczosResize(1280,720)
You don't have to encode for each step. Just put them in series in your script as above.
Ricey
25th June 2008, 03:15
Nope
avssource could not open one of your files
its line 2
neuron2
25th June 2008, 03:17
Find out why it can't open one of your files. Your thinking cap will help you immensely. Look in the DGA file to see the referenced path and see if the file is actually where it is supposed to be. Or maybe you need a full path and you have a (wrong) relative path. Maybe you moved things after you made the DGA or something.
Try remaking the project and script, etc. If still no go, then post the script because we can't read your mind.
Ricey
25th June 2008, 03:30
iv got it into megui and im encoding to x264 720p but its as slow as ****.... i have a quad core pc with 4gb ram should be better i think..
im only getting 10fps :/
rebkell
25th June 2008, 03:36
iv got it into megui and im encoding to x264 720p but its as slow as ****.... i have a quad core pc with 4gb ram should be better i think..
im only getting 10fps :/
That sounds about right, I have a dual core and I'd probably be getting 4.5 to 5 fps,
neuron2
25th June 2008, 03:41
10fps is good for HD decode/deinterlace/resize/re-encode to H.264. Be happy!
Go to bed and check it in the morning.
Ricey
25th June 2008, 03:48
so on a quad core 10fps is good?
neuron2
25th June 2008, 03:54
Should I duplicate my post or would you be willing to just read it again? :devil:
Ricey
25th June 2008, 04:10
bro not trying too be bad im trying to learn how to do something here thats all you know..
I was just sure i could do this faster thats all, but seems like im been flamed here for
asking questions that i need to ask.
I bet there was a time you were like me and knew nothing about this.
neuron2
25th June 2008, 04:40
I was just sure i could do this faster thats all If you are so sure, why are you asking me? If you are not sure, why won't you accept my answer? What answer are you looking for?
PlazzTT
25th June 2008, 12:28
10fps is definately normal on a quad-core for decoding H264, deinterlacing, and encoding with x264.
Do you know what x264 profile you used in MeGUI? Different x264 settings affect the encoding speed.
(Another good idea is to load the .avs in Media Player Classic before encoding. It will be very slow to playback, but it's to see if the picture quality after de-interlacing is okay)
Ricey
25th June 2008, 19:55
Look im sorry if i offended anyone all im doing looking for advise from the people that know
what they are doing. Would 64bit xp make encodes faster?
Thanks for all the help i honestly and truly appreciate it.
rebkell
25th June 2008, 20:43
Look im sorry if i offended anyone all im doing looking for advise from the people that know
what they are doing. Would 64bit xp make encodes faster?
Thanks for all the help i honestly and truly appreciate it.
If you reduce the resolution you'll get much faster speeds, you can also tweak some of the settings in the encode in megui, what video profile did you choose in megui? What was your file size when you finished or if you didn't what size was megui predicting for it? How long is the clip?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.