View Full Version : H.264 encoding problems (AR,sound..)
zz2
11th December 2005, 13:12
I have been trying to encode DVD to H.264 format (and 5.1 audio).
So far I have tried x264, ffdshow h264 codec and main concept h.264 encoder v2.
Here's DVD information:
Video:
Frame size: 720x576
FPS: 25
Aspect ratio: DAR=3 (16:9)
Audio:
48KHz, 5.1 channels, 384Kbps AC3
With x264 and ffdshow I cannot get aspect ratio right. I have tried "Simple AR" = 16:11 and I don't work. (I am using VirtualDUBMod to encode and BSPlayerto play)
With MainConcept I can set Aspect Ratio, but I can't get codec in VirtualDub so I have to use their program. This program detects only 2 channels!
I thought I could first encode video and then join audio and video in Virtualdub , but virtualdub wont open h264 encoded file. Is there any other way??
Could anyone help me? I really don't have time to read thousand pages of guides because I have to study for exams.
PS: Mainconcept doesn't create mp4 container. It creates mpeg2 stream (I think). Is that bad?
Guest
11th December 2005, 14:58
Please correct your thread title to comply with forum rule 9. Thank you.
:readrule:
zz2
16th December 2005, 14:28
ok I have seen this MeGUI for x264 and I have few questions:
- If I create MP4 container would AR work (and does Vdub support mp4?)?
- How do I write AviSynth script (I know DirectShowSource("file") command but I need to crop video too and I don't know the command)
zz2
16th December 2005, 14:40
yeah I have found crop command. It's Crop(left,top,right,bottom) :D
If source is *.vob, is DirectShowSource("file") command most appropriate?
zz2
16th December 2005, 14:54
MeGUI give me this error
Log for job job2
avis [error]: unsupported input format (DIB )
could not open input file 'F:\***\1.avs'
my script is:
DirectShowSource("F:\***\1.VOB")
Crop(2,72,6,76)
Any suggestions? :confused:
ariga
16th December 2005, 15:01
Use DGindex for vob files. :search: I really don't have time to read thousand pages of guides because I have to study for exams. :confused: The guides aren't that long.
Sorry, there's no better way :)
You'll end up spending even more time trying to figure it out on your own.
zz2
16th December 2005, 15:29
Use DGindex for vob files. :search: :confused: The guides aren't that long.
Sorry, there's no better way :)
You'll end up spending even more time trying to figure it out on your own.
Thanks
Now my script looks like this
LoadPlugin("C:\***\DGDecode.dll")
MPEG2Source("F:\***\1.d2v")
Crop(2,72,6,76)
but I still get errors:
Next job job1 is a video job. encoder commandline:
"x264.exe" --crf 18 --ref 4 --mixed-refs --bframes 3 --b-pyramid --filter -2,-2 --weightb --trellis 1 --analyse all --8x8dct --qpmin 18 --qpmax 18 --me umh --sar 64:45 --progress --no-psnr --output "F:\New Folder\2.mp4" "F:\New Folder\2.avs"
successfully set up video encoder and callbacks for job job1
----------------------------------------------------------------------------------------------------------
Log for job job1
avis [error]: unsupported input format (DIB )
could not open input file 'F:\New Folder\2.avs'
----------------------------------------------------------------------------------------------------------
:(
..and I have read few guides :)
zz2
16th December 2005, 15:48
I have found cause of the error..
It was crop values.
YV12 images for output must have a width divisible by 4
now lets see what I get..
bond
16th December 2005, 15:52
So far I have tried x264, ffdshow h264 codec and main concept h.264 encoder v2. ffdshow uses x264 too
With x264 and ffdshow I cannot get aspect ratio right. I have tried "Simple AR" = 16:11 and I don't work. (I am using VirtualDUBMod to encode and BSPlayerto play) :search:
playing sar streams from avi is a pita...
I thought I could first encode video and then join audio and video in Virtualdub , but virtualdub wont open h264 encoded file. Is there any other way?? enable h.264 in ffdshow under the decoder tab IN (!!!) virtualdub
PS: Mainconcept doesn't create mp4 container. It creates mpeg2 stream (I think). Is that bad? its allowed, but hardly supported in most tools
- If I create MP4 container would AR workyes
(and does Vdub support mp4?)?no :search:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.