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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th June 2016, 13:18   #1  |  Link
Kalasnyikov
Registered User
 
Join Date: May 2016
Posts: 2
h264 -> h265 re-encoding suggestion

Hello

I have a big library of TV Shows, and I want to reencode to h265. After make it some test, use this settings:

Code:
ffmpeg \
-i "$INFILE" \
-c:v libx265 \
-preset veryfast \
-x265-params \
crf=22:\
qcomp=0.7:\
ctu=32:\
max-tu-size=16:\
aq-mode=1:\
aq-strength=1.0:\
psy-rd=0.7:\
psy-rdoq=5.0:\
rdoq-level=1:\
merange=50:\
sao=0:\
rect=0:\
amp=0:\
deblock=-2\\:-2 \
-c:a libfdk_aac \
-cutoff 18000 \
-profile:a aac_he \
-b:a 128k \
-y "$NEWFILE"
(this is one part of my convert script, I'm on Arch linux)

This settings is used toy re-encode 1080p source, but I read the optimal settings for 1080p and 720p is different.

So, my questions is:
- this setting are good, or need some change?
- what parameter change to use that if the source is 720p resolution?

Many thanks any answer and sorry my scary english..
Kalasnyikov is offline   Reply With Quote
Old 18th June 2016, 21:13   #2  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
May I ask why you want to re-encode these videos? Each round of re-encoding will reduce the quality and lower the encoding efficiency.
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline   Reply With Quote
Old 18th June 2016, 21:25   #3  |  Link
Kalasnyikov
Registered User
 
Join Date: May 2016
Posts: 2
It's true, but I don't have endless HDD space, and the file size different is very impressive. Make some test and if the old file is 3.2 Gb the new file is 600-800Mb, with almost same quality. The "almost" meaning: when grabbing sample pictures I notice some artifact, but when I seeing on my TV no different.
Kalasnyikov is offline   Reply With Quote
Old 22nd June 2016, 18:28   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,738
Quote:
Originally Posted by Kalasnyikov View Post
It's true, but I don't have endless HDD space, and the file size different is very impressive. Make some test and if the old file is 3.2 Gb the new file is 600-800Mb, with almost same quality. The "almost" meaning: when grabbing sample pictures I notice some artifact, but when I seeing on my TV no different.
Using "veryfast" is going to throw away a lot of quality. Have you tried somewhat slower presets to verify that they don't yield acceptable throughput? A lot of the good stuff in x265 doesn't even engage at that low a preset. For example, psy-rd doesn't activate unless rd is at least 3, which doesn't come in until preset medium. You'll get better looking and smaller CRF 22 if you can go up a couple of presets. Honestly, I feel like "slower" is where x265 really is able to strut its stuff pretty fully.

Otherwise, these seem pretty good for 480p-1080p to me.

I think it's probably okay to use ctu=64 and qgsize=32 at 1080p now, although sticking with your current values for 720p is probably good.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply

Tags
ffmpeg, h265

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 11:49.


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