View Full Version : Need help playing H264 material
hoops10
25th October 2006, 11:57
tomos, what about the audio synch problems? You getting any of those with this movie? The audio is ahead of the video. Any way to fix it?
tomos
25th October 2006, 12:39
no synch probs here. that may be happening since your cpu isnt powerful enough to playback properly. happened to me when i try to play some clips on my A.XP but alls fine when i play them on my X2s or C2D.
hoops10
27th October 2006, 01:56
tomos, how would I resize the video to 720 resolution? I can find any resizing options in vdubmod?
tomos
27th October 2006, 03:30
just add a line like:
Lanczos4Resize(1280,720)
in there.
i dont make the scripts myself anymore. even tho i encode in vdub now for the most part, i use meguis avs generator to make the script for me and use that in vdub :)
basically like:
directshowsource("star.wars.episode.three.revenge.of.the.sith.1080i.h264.oar.dd51.ts")
Lanczos4Resize(1280,720)
Jay Bee
27th October 2006, 09:31
In vdub it's under video/filters/add/resize.
hoops10
27th October 2006, 12:46
Did a test encode of about 4000 frames. I added the filter in but it didn't seem to take it as I checked the 'File Information' and it still said 1800x1080 as the resolution. So I manually put the 'Lanczos4Resize(1280,720)' in myself, and this time it did work. Don't know why I had to manually put it in. Anyway, the audio seems to be behind the video now, noticably. Any idea how to fix this or figure out what the offset should be?
Edit: BTW, here is the avs file that I am using:
"#ASYNTHER DirectShowSource
DirectShowSource("F:\Star Wars Episode 3 - Revenge of the Sith HDTV\Copy of star.wars.episode.three.revenge.of.the.sith.1080i.h264.oar.dd51.ts")
Lanczos4Resize(1280,720)"
tomos
27th October 2006, 13:30
the file info is for the original info, what you do with your filters wont affect it so just use the vdbub filter or the one in the avs script - not both.
if your encoded video plays ok on your system (without maxing out your cpu) then easy way to fix the offset issue (which didnt happen on mine btw) is to play in media player classic and manually change it till it fits
audio>options>audio time shift (ms)
say it comes to 3550ms or something, just change the delay to that in vdub or whatever you use to mux the audio in with
hope that helps :)
thecrock
27th October 2006, 13:34
Please don't flame for my ignorance but...
I thought H264 was a codec used on mac, maybe try quicktime?
tomos
27th October 2006, 14:48
i was under the impression that the quicktime implementation of it sucked.
hoops10
27th October 2006, 16:43
tomos, isn't the audio on that movie 5.1 DD? Could you possible explain the steps you took to encode this movie to xvid? Thanks.
tomos
27th October 2006, 17:14
i encoded with megui to x264. its a while ago now, but i think i used mplayer to get the ac3 file (i encode that to AAC to save space), then use a script like you have already to open it in vdub.
after that its just a case of encoding like anything else really
hoops10
27th October 2006, 21:26
Isn't x264 the same as h264? If not, is x264 able to run on an Athlon XP 2500+?
What video settings did you use in vdubmod? I mean, as far as number of psases, etc.
tomos
27th October 2006, 22:02
doubt your aXP is powerful enough for h.264 tbh even with coreavc on 1080 material.
as for vdub, then i always use 2 passes.
hoops10
28th October 2006, 01:33
tomos, do you think its possible to resize to a resolution in between 1080 and 720? Can the Athlon XP 2500+ handle a higher res than 720? I resized to 720 and I am only using like 40% cpu.
Edit: I am going to try the entire movie now, and I started it. It says that the total file size is only going to be about 1480 mb or 1.48 gbs. Doesn't that seem really small to you? Is that right? Shouldn't it be higher?
tomos
28th October 2006, 01:39
think it depends on the movie tbh. my aXP can play the odd divx 1080p encode but not most.
my advice? encode to 720p or overclock/upgrade your system.
apart from WMV vids, an aXP isnt powerful enough IMO (wmv only because you can get your gpu to help decode it)
hoops10
28th October 2006, 01:45
tomos, what about that file size? seem right to you? the original is over 17 gigs, and after only resizing, it goes down to 1.5 gigs?
tomos
28th October 2006, 02:36
i aim for 4470megs (inc audio) for mine. 1.5 is way too low IMO.
vdub does sometimes misreport it for a while. what bitrate did you give it?
hoops10
28th October 2006, 14:40
I didn't give it one, I just used what was there. Also, when doing 2 passes, does it take a really long time? I started it last night at about 9:30 p.m. and the first pass took about 9 hours. It is still encoding the 2nd pass, but it is only at 30%. Sound right?
Where can you set it to maximum quality (as I don't want to lose the look of HD)?
Jay Bee
28th October 2006, 16:47
At that bitrate it will probably look quite awful. Again, you should maybe try a few quality settings on small clips to see what you can get away with both quality and CPU power wise. XviD has a built-in bitrate calculator that you can use to make your file a specific size (for DVD: 4 700 000 000 Bytes = 4 589 843 KiB = 4482 MiB = 4.376 GiB). I would also do a 1-pass vs 2-pass test to see if the quality difference is really worth the encoding time.
tomos
28th October 2006, 16:47
well, on divx you can choose '1 pass - quality based' but that might end up quite large.
i would do 2 passes. guesstimating the bitrate to be between 4-5m/bits-sec
arfster
28th October 2006, 18:42
Isn't x264 the same as h264?
H264 is a video standard, like mpeg2, vc1 or xvid. The X264 program is an encoder that produces h264 videos.
hoops10
29th October 2006, 16:43
I did just a 1-pass encoding and moved the slider all the way to the highest quality. It gave me a file size of about 13 gigs, which is cool with me. Like I said, I don't care about file size, but I do care about getting the best quality. Do you think I would get better quality by going with a 2-pass encoding?
tomos
29th October 2006, 17:39
nope. thats what the quality settings for. 2 pass would gain you a smaller file thats all.
if you are happy with a large file then you're done mate :)
i would use the calculator in megui and do a 2 pass encoding so it fits on a dvd to archive it, but thats me :0
Thunderbolt8
31st October 2006, 18:03
I also have the same or similar files, star wars with 1080i and h264 as .ts files (16,5 gb together). but with my old p4 3ghz I can at least open them (a 4,3gb file) with either vlc (though it crashes after a time), powerdvd7 and media player classic/coreavc. ofc it stutters all the time, so I wont be able to actually "watch" the movie on that PC, but at least I can open the files. so it should somehow also work for you.
btw. with what tool/player can I get a general information about the average kbit rate of the whole .ts file ? file information of all 3 players only can give me the current rate when playing.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.