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. |
|
|
Thread Tools | Search this Thread | Display Modes |
12th June 2021, 10:04 | #1 | Link |
Registered User
Join Date: Sep 2020
Posts: 135
|
What are some good x264/x264vfw settings for upscaling?
I was upscaling my games using Lagarith Lossless only to realize that the file size that I ended up with is too huge for five mintue clips. I want to upscale my games to 720p but I do not want to have a huge file size and it takes too long to upload to Youtube. I used to use XVID to solve the problem but as other post in this (and another forum) have pointed out, it is outdated and only good for ancient hardware. It isn't at though that I have most advanced hardware myself as my laptop is the most advanced hardware I have but I still want to keep to date. I heard that x264/x264vfw is good for animation, gaming, etc. but but the settings provided by sites like TASVideos sort of confuse me. I want to know what settings work for upscaling footage from games without losing the quality? And which version of x264/x264vfw is ideal for gaming footage?
|
14th June 2021, 18:39 | #2 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
What is your goal in upscaling in the first place? Why not encode at native resolution with way more bits per pixel? Or just capture at higher resolution? I can't think of any non-Wii games in the last 15 years that couldn't do at least 720p.
Lagarith tends to ring around sharp edges, so may not be the best algorithm for games that have sharp text or HUD graphics. |
18th June 2021, 04:53 | #4 | Link | |
Registered User
Join Date: Sep 2020
Posts: 135
|
Quote:
|
|
18th June 2021, 10:09 | #5 | Link | |
Lost my old account :(
Join Date: Jul 2017
Posts: 325
|
Quote:
But what confuses me a bit is that it sounds like TS thinks that its the codec that does the upscaling ("I was upscaling my games using Lagarith Lossless"). First you change the resolution with an (up)scaler then you compress it with an encoder/codec (i.e. lagarith, x264 etc). Anyway, TS what compression level are you expecting? What codec (and settings) is appropriate depends on if you are trying to achieve 1GB, 10GB, or 100GB per hour of content. But if you want something simple and rather compressed just for quick uploads to youtube I would just use x264 at a lower preset in abr mode at 10Mbps with a 1-2s GOP. So something like this for 720p60, it will probably be just fine as youtube will recompress it anyway, but if the bitrate is not enough just try to increase and go to level 4.1 it until you are happy. Code:
--preset slower --profile high --level 4 --bitrate 10000 --min-keyint 60 --keyint 120 Last edited by excellentswordfight; 18th June 2021 at 10:30. |
|
18th June 2021, 18:59 | #6 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Oh, ugh. Yeah, since YouTube bitstarves each resolution, sometimes the only way to get good quality is to upsample to force higher bitrates. But that's really social engineering around YouTube's technical constraints. Everyone would be better off if YouTube would just allow for higher bitrates at the source resolution, so we can get nice sharp 240p. Uploaders would have to do less work, and YouTube would deliver the same quality experience with less encoding and bandwidth costs.
Also, I'd probably use --crf 16 or maybe even 12 instead of setting --bitrate for an upload. The quality of the encode is the key factor, and any reasonable fixed bitrate will be too high for some content and too low for others. I don't think YouTube does any Level checks, so VBV can go as high as suits the content. |
21st June 2021, 22:34 | #8 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Absolutely. That's what they are there for.
--tune adapts to the content type. --tune animation can reduce bitrate of anime by a third or more while improving quality. --tune film preserves detail and grain a bit better than default settings. --preset is the quality/speed tradeoff. I try to use at least --preset slower to reliably get good benefit from HEVC. |
23rd June 2021, 16:49 | #9 | Link |
Registered User
Join Date: Sep 2020
Posts: 135
|
Is that why some people recommend the "Slow" preset for some videos? I had no idea that it would affect the speed and quality. What tuning is good for older video games? Or does it fall under animation?
Last edited by GAP; 23rd June 2021 at 16:53. |
23rd June 2021, 21:38 | #10 | Link | |
Lost my old account :(
Join Date: Jul 2017
Posts: 325
|
Quote:
For x264 @ 720p you can probably go lower, both slower and veryslow is reasonable fast on good hardware. However, you should think about how important it is to try to compress it as much as you can, a lot of the time it makes more sense to tune for more speed and just have bigger files, especially when using it more like an digital intermediate for youtube upload. I wouldnt use any of tune preset for gaming in general, maybe you can find some games that would benefit from tune animation, but I wouldn't use it as an general setting, I would guess that in most cases it will do more bad then good.. I have never tuned x264 or x265 for gaming content so unfortunately I dont have any recommendations on settings that might be good for that kind of content other then just going for the lowest preset you can while still getting usable speed for your workflow. Last edited by excellentswordfight; 23rd June 2021 at 21:42. |
|
24th June 2021, 17:25 | #12 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
It doesn't impact quality at all, just use one that YouTube supports.
I generally recommend .mp4 as it is the most straightforward and widely supported. Also, for lossless game footage, I'd throw in --tskip which can really help quality with sharp edges and aliasing. If I were trying to make a super efficient distribution copy I'd probably try --cu-lossless, but you're making a mezzanine to be reencoded here, so probably not worth the effort. |
25th June 2021, 18:38 | #14 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
x264 doesn't really have equivalent features; the closest being to use High Profile instead of Main. The good news is that it is WAY faster, so even --preset veryslow can be very fast for lots of content on recent hardware. |
|
30th June 2021, 01:21 | #16 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
x264 can do lossless encodes, but not all decoders support lossless H.264. |
|
30th June 2021, 21:12 | #18 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
It's the default. It's a reasonable speed/quality tradeoff for 10+ years ago, but with a modern AVX2 4+ core processor, most people will use something slower and better. Even veryslow can be almost real-time for 1080p24 on a beefy modern machine.
Quote:
http://trac.ffmpeg.org/wiki/Encode/H.264#LosslessH.264 https://forum.doom9.org/showthread.php?t=106408 |
|
3rd July 2021, 00:57 | #19 | Link |
Registered User
Join Date: Sep 2020
Posts: 135
|
I am mostly use x264 8 bit for final encodes but I also learned from another forum that 10 bit preserves some things better. I know x264 is useful for compression but I wonder if there are any finer nuances and details between x264 8-Bit,10-Bit and vfw?
|
4th July 2021, 02:27 | #20 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
10-bit x264 is more efficient, and can encode in 10-bits. But it is less compatible, as lots of decoders only support H.264 in 8-bit. There are even decoders that can do 10-bit HEVC but only 8-bit H.264. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|