Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Video Encoded With X264 Is Blurry?
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
kensclark18
Posted: Sep 22 2014, 07:32 PM


Newbie


Group: Members
Posts: 3
Member No.: 38283
Joined: 22-September 14



I recorded a video in lossless RGB mode on Fraps. The raw video looks amazing but when I encode it YouTube makes it blurry. I used ALL the settings recommended by Youtube. "--keyint 15 --bframes 2", the slow preset, the high profile, and converted it to the YV12 colorspace. It looks okay on my computer but since YouTube likes to compress their videos again, it looks pretty blurry at certain points. Should I change any settings? Here is the video: https://www.youtube.com/watch?v=3M7T2gukwws
 
     Top
kensclark18
Posted: Sep 22 2014, 07:40 PM


Newbie


Group: Members
Posts: 3
Member No.: 38283
Joined: 22-September 14



I forgot to say that I am using an average bitrate of 50mbps.
 
     Top
dloneranger
Posted: Sep 22 2014, 08:04 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Well, first off is that all the video codecs like x264/mpeg4 etc are designed to compress 'natural' images well and not the sharp edged flat areas of images - like jpg compression of things like text, it's always going to suffer from misuse of its intended purpose in these scenarios

That said... you could try switching over to using 'single pass ratefactor based (crf)' instead of a bitrate based setting
Then just pick a setting that gives a high enough quality
File sizes can be unpredictable in this mode though, as it's compressing to a 'quality' instead of a bitrate

Actually, unless you are trying to make a file of a specific size, then bitrate based encoding is nearly always the worst choice


@raffriff42 may leave some advice as I know he deals with FRAPS quite a bit

ps
In the latest x264vfw, I see there is also a lossless setting now as well (I haven't tested it though)

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
kensclark18
Posted: Sep 22 2014, 08:23 PM


Newbie


Group: Members
Posts: 3
Member No.: 38283
Joined: 22-September 14



Thanks. I did not know that the codec was made for more natural images. I will mess around with the settings and see if I can make it look better.
 
     Top
raffriff42
Posted: Sep 23 2014, 02:51 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



It's not the compression that's the problem (assuming you are compressing at high quality as dloneranger suggests; I use CRF mode, ratefactor=18) but the conversion from RGB to YV12, which loses half your color resolution. Yes you could use x264's "high 4:4:4" profile, but YouTube will proceed to convert to it YV12 anyway, if it accepts the video at all.

The best way to deal with it, for standard definition video or lower, is to double the size before compressing, while still in RGB. Use the Resize filter; mode="nearest neighbor." For high definition sources, there's not a lot you can do without making the video unreasonably huge.

The biggest problem is usually small text on screen; try to make the text larger with the game's settings.

Oh, avoid lots of random activity on screen - snow, rain, sand, leaves - as these really don't compress well. Turn these effects down in the game settings.

Here are some interesting, related threads -
https://encodingtalk.com/threads/loss-of-vi...n-youtube.3160/
https://encodingtalk.com/threads/arma-3-fra...s-youtube.2968/
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
4 replies since Sep 22 2014, 07:32 PM Track this topic | Email this topic | Print this topic

<< Back to Newbie Questions