GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to improve video quality with FFmpeg? (https://gfy.com/showthread.php?t=1261615)

freak22 05-09-2017 08:30 PM

How to improve video quality with FFmpeg?
 
This is my 480p FFmpeg settings now. I need to improve the quality by 20-30%.

-vcodec libx264 -movflags +faststart -threads 0 -r 25 -g 50 -crf 28 -me_method hex -trellis 0 -bf 8 -acodec aac -strict -2 -ar 44100 -ab 128k -f mp4

johnnyloadproductions 05-09-2017 09:13 PM

Quote:

Originally Posted by freak22 (Post 21758044)
This is my 480p FFmpeg settings now. I need to improve the quality by 20-30%.

-vcodec libx264 -movflags +faststart -threads 0 -r 25 -g 50 -crf 28 -me_method hex -trellis 0 -bf 8 -acodec aac -strict -2 -ar 44100 -ab 128k -f mp4

Hey freak22, not answering your question but still related.

Would people like you like an opensource video editor batch processor? I played around with PHP ffmpeg and made a basic editor.
I'm always up for improving my skill level and like building things people would use.

Granted people argue that there are open source video editors and so forth but the idea would be to set up hundreds or even thousands of custom jobs to a video and then just let it sit while the editor instance on a service like digital ocean just pumps them out over a day or two and then sends you an email when done.

Interest?

Konda 05-09-2017 09:25 PM

Quote:

Originally Posted by freak22 (Post 21758044)
This is my 480p FFmpeg settings now. I need to improve the quality by 20-30%.

-vcodec libx264 -movflags +faststart -threads 0 -r 25 -g 50 -crf 28 -me_method hex -trellis 0 -bf 8 -acodec aac -strict -2 -ar 44100 -ab 128k -f mp4

First of all output quality depends on the input quality, so you need good source material to achieve good encoded material.

Use 2 pass encoding for better quality

also there is no video bitrate in your command? (usually looks something like -b:v 800k)
and is the source already 480p, if not you'd have to also make sure to resize it to 640x480

If you need your content encoded for paysites or something and want quality encoding I recommend using zencoder.com it's not expensive and gives much better results.

ZENRA 05-09-2017 09:56 PM

CRF28 may result in lower quality than what you'd like. I'd avoid going over CRF22.

However, Konda is right that input quality also plays a factor. Your best bet is to play around with the CRF settings and since you're working with a SD movie, encoding should still be fast enough to make testing quick and easy.

freak22 05-10-2017 05:27 PM

Quote:

Originally Posted by ZENRA (Post 21758107)
CRF28 may result in lower quality than what you'd like. I'd avoid going over CRF22.

However, Konda is right that input quality also plays a factor. Your best bet is to play around with the CRF settings and since you're working with a SD movie, encoding should still be fast enough to make testing quick and easy.

thanks :thumbsup

plsureking 05-10-2017 08:12 PM

dropping framerate a little gives you extra room to increase bitrate. easy way to fix quality without noticeably affecting the video (unless its 4k).

#


All times are GMT -7. The time now is 12:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123