Tweak encoding settings for best quality and compression

Discuss encoding for devices and presets.
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
macgyver2004
Posts: 8
Joined: Wed Oct 16, 2013 7:38 am

Tweak encoding settings for best quality and compression

Post by macgyver2004 » Thu Sep 20, 2018 11:53 am

I plan to reencode movies from my camera and my phone (mov,mp4,ts)(in FHD and 4K) to universal format that will work on tv/phone/laptop.

I would like to tweak x264 settings to make quality and compression better (also with audio in stereo):
-v1 -f av_mp4 -m -e x264 --x264-preset veryslow --x264-tune film -q 13 --encoder-level=4.1 -E fdk_aac -B 320 -Q 100 --mixdown stereo -R 48

Can I tweak something more except "-q 13"?

rollin_eng
Veteran User
Posts: 2852
Joined: Wed May 04, 2011 11:06 pm

Re: Tweak encoding settings for best quality and compression

Post by rollin_eng » Thu Sep 20, 2018 12:49 pm

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html

Woodstock
Veteran User
Posts: 2715
Joined: Tue Aug 27, 2013 6:39 am

Re: Tweak encoding settings for best quality and compression

Post by Woodstock » Thu Sep 20, 2018 1:20 pm

"Universal format", but you fail to identify which of the target devices has the most limitations.

macgyver2004
Posts: 8
Joined: Wed Oct 16, 2013 7:38 am

Re: Tweak encoding settings for best quality and compression

Post by macgyver2004 » Thu Sep 20, 2018 1:45 pm

Those settings that I provided are working on all of them.
Even specification that I found for my TV is not more specific than:

*.mp4 MP4

H.264 BP / MP / HP
1920x1080 6 ~ 30 fps
25 Mbps
MP3 /ADPCM /AAC

MPEG4
SP / ASP
1920x1080 6 ~ 30 fps
8 Mbps
MP3 /ADPCM /AAC

XVID
1920x1080
6 ~ 30 fps
8 Mbit
MP3 /ADPCM /AAC

mduell
Veteran User
Posts: 6110
Joined: Sat Apr 21, 2007 8:54 pm

Re: Tweak encoding settings for best quality and compression

Post by mduell » Thu Sep 20, 2018 1:46 pm

-q 13 is silly

macgyver2004
Posts: 8
Joined: Wed Oct 16, 2013 7:38 am

Re: Tweak encoding settings for best quality and compression

Post by macgyver2004 » Thu Sep 20, 2018 1:54 pm

For me constant quality is better, I have some movies that have a lot of movement and some that are slow moving.
For two pass encoding I would need to pick a good bitrate for those.

Woodstock
Veteran User
Posts: 2715
Joined: Tue Aug 27, 2013 6:39 am

Re: Tweak encoding settings for best quality and compression

Post by Woodstock » Thu Sep 20, 2018 3:44 pm

If those settings are meeting your goal, what is the issue?

Regardless of the source resolution, with the destination being limited to 1920x1080, "Blu-ray quality" would be obtainable with an RF value of 16 to 18. Using 13 may not be silly, but, given the targets, unnecessary.

Post Reply