qfjp / MediaLibraryCompression

A script to convert video files to x265 codec in mp4 containers. Forces hvc1 for MacOS Big Sur compatibility
GNU General Public License v3.0
2 stars 1 forks source link

Rely less on `subprocess.x` functions #4

Open qfjp opened 1 year ago

qfjp commented 1 year ago

Calling out to a subshell is slow, even if mediainfo contains lots of convenient information in a readable format. A better alternative would be to look for python libraries built for video processing, which would also hopefully give stronger guarantees on verifying that the resultant transcode is "good"