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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd July 2012, 23:41   #1  |  Link
Echo7
Registered User
 
Join Date: Jun 2012
Posts: 2
Loseless H264 files get corrupted in Vegas

Hi,
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?
Thanks!
Echo7 is offline   Reply With Quote
Old 3rd July 2012, 23:55   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 4th July 2012 at 01:19.
LoRd_MuldeR is offline   Reply With Quote
Old 4th July 2012, 01:00   #3  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Vegas doesn't support x264 lossless. You're better off using huffy or something else.
__________________
http://www.7-zip.org/
Audionut is offline   Reply With Quote
Old 4th July 2012, 01:10   #4  |  Link
Echo7
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, 01:57   #5  |  Link
vivan
/人 ◕ ‿‿ ◕ 人\
 
Join Date: May 2011
Location: Russia
Posts: 643
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, 06:53   #6  |  Link
Manao
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, 00:59   #7  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Have you tried opening the fraps encode in vegas. I can't recall, but I thought vegas supported it.
__________________
http://www.7-zip.org/
Audionut is offline   Reply With Quote
Old 5th July 2012, 09:52   #8  |  Link
Warperus
Registered User
 
Join Date: Apr 2010
Location: Sain-Petersburg, Russia
Posts: 139
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
Reply


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 17:54.


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