Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Thread Tools Search this Thread Display Modes
Old 4th July 2012, 00:41   #1  |  Link
Registered User
Join Date: Jun 2012
Posts: 2
Loseless H264 files get corrupted in Vegas

I'm using Handbrake to encode Lossless H264 MP4 files (sources are FRAPS recordings). I've been trying for days now to open them in Vegas 11, but I can't get them to show correctly. Here's what they look like once imported:

These are my video settings in Handbrake:

I noticed that when I change the quality setting to anything above 0 Vegas imports the files correctly. Of course in this case the compressions isn't lossless anymore which isn't what I want (I'm archiving game footage for later editing).

I tried 264VFW and the AVI files it generated were fine in Vegas, but they have another problem of slightly off green hues so I can't use them. Besides from searching I understand that AVI with H264 is not recommended because of compatibility problems.

Any ideas?
Echo7 is offline   Reply With Quote
Old 4th July 2012, 00:55   #2  |  Link
Software Developer
LoRd_MuldeR's Avatar
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,047
The "lossless" mode of x264 uses Predictive Lossless Coding, which is available only in the "High 4:4:4" profile of H.264 - even when the colorspace used is not 4:4:4.

Consequently you will need a H.264 decoder that supports the "High 4:4:4" profile, such as an up-to-date libavcodec (e.g. ffdshow-tryouts or FFMS2). I suspect this does not apply Vegas' decoder

(I remember that you'll see similar artifacts with lossless H.264 using older CoreAVC versions)
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.

Last edited by LoRd_MuldeR; 4th July 2012 at 02:19.
LoRd_MuldeR is offline   Reply With Quote
Old 4th July 2012, 02:00   #3  |  Link
Registered User
Join Date: Nov 2003
Posts: 1,264
Vegas doesn't support x264 lossless. You're better off using huffy or something else.
Audionut is offline   Reply With Quote
Old 4th July 2012, 02:10   #4  |  Link
Registered User
Join Date: Jun 2012
Posts: 2
All right thank you, so I guess there is no choice but to use use a different lossless codec for editing in Vegas. Too bad because lossless H264 has a much better compression ratio than other codecs I tried. Oh well...
Echo7 is offline   Reply With Quote
Old 4th July 2012, 02:57   #5  |  Link
/人 ◕ ‿‿ ◕ 人\
Join Date: May 2011
Location: Russia
Posts: 649
You can create dummy AVI with avisynth script and open it in Vegas... It will work, but H.264 is too slow for comfortable video editing.
vivan is offline   Reply With Quote
Old 4th July 2012, 07:53   #6  |  Link
Registered User
Join Date: Jan 2002
Location: France
Posts: 2,856
Try to encode without 8x8 DCT first, since x264 is not compliant in lossless when 8x8 DCT is enabled. If the error in Vegas is still present, then Vegas doesn't support high 4:4:4 predictive, just plain old (and deprecated) high 4:4:4, and you're out of luck (unless you want to use a really old version of x264).
Manao is offline   Reply With Quote
Old 5th July 2012, 01:59   #7  |  Link
Registered User
Join Date: Nov 2003
Posts: 1,264
Have you tried opening the fraps encode in vegas. I can't recall, but I thought vegas supported it.
Audionut is offline   Reply With Quote
Old 5th July 2012, 10:52   #8  |  Link
Registered User
Join Date: Apr 2010
Location: Sain-Petersburg, Russia
Posts: 140
Vegas works with fraps encodes just fine. There is one big feature you have to remember though - fraps decodes to computer levels, while 8-bit projects in Vegas are mixture of studio levels and computer levels. Default preview in Vegas shows in computer levels, while vegas mpeg2 and avc codecs as well as x264vfw expect studio levels on timeline, so final picture is not always what you see in preview.

By the way, fraps reencodes in x264 face the same problem. As far as I remember, x264 (without avs scripts) uses inappropriate color conversion for fraps. You can use rgb+fullrange mode, but it might be problematic for later playback.

Default settings of x264 are hardly compatible with comfort editing in Vegas if you use straight approach. Sometimes they don't work at all, sometimes they produce great lags in motions, sometimes picture is corrupted. May be BD compliant streams are more vegas-friendly, but it's generally easier to avoid x264 input altogether.
I've heard of few lossless codecs popular in vegas - Lagarith, HuffYUV. Intermediate files can be as well in uncompressed avi (RGB, RGBA), SonyYUV.
But, more than "true lossless" variants Vegas users like visually lossless codecs. For example, geniune Sony MXF, XDCAM or CineForm codecs.
Warperus is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 07:14.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.