Has anyone created a way to intelligently process a batch of videos, such that, let's say,
>video converter gets a x264 video input
>it "scans" this video
>determines the x265 quality level that would be "optimal"
>converts it to x265
Instead of just setting the same profile or quality setting for an entire batch of videos to be converted?
I imagine you could make a c/bash script using libav/ffmpeg and change the params based on file info from ffprobe
https://libav.org/
http://rodrigopolo.com/ffmpeg/
https://video.stackexchange.com/questions/16356/how-to-use-ffprobe-to-obtain-certain-information-about-mp4-h-264-files
https://trac.ffmpeg.org/wiki/FFprobeTips
>ffprobe -v error -show_format -show_streams input.mp4
and then you could do something like this:
https://ubuntuforums.org/showthread.php?t=2327927&s=cbbdb615a67cc48e86ec9b8a78696042&p=13504734#post13504734
but for whatever you need to check in x264
>>60846462
>but for whatever you need to check in x264
what do you mean by this?
also currently I only run linux in VM, or is this something that can be done in Windows using bash now with the "Bash on Ubuntu on Windows" thing I have heard of?
>>60846605
i'm not sure how you would determine the x265 quality level
>>60846331
> determines the x265 quality level that would be "optimal"
This isn't really meaningful beyond what codecs already do.
You're almost directly deciding how much processing power you throw at the problem WHEN you do the encode. You could do all encodes from fast to extreme ultra crazy settings, but there is no point to that, ultra crazy will compress the best.
And for optimizing for a certain size, there already are 2-pass encodes.
>>60846912
Hes talking about the quality/bitrate setting, not the speed as your post implies you are thinking of.
>>60846331
I do this literally ever day with Cron, FFMPEG and a simple bash script.
Sounds like you are just lazy.