

Further readingĬRF Guide (Constant Rate Factor in x264, x265 and libvpx) – A good overview of the difference between constant and variable bitrate encoding, and suggestions for sensible defaults for each.Code: Select all ffmpeg version 4.1. To convert mkv files with AVC (h264) codec, change all h265 to h264 in this script. MTS video files which were interlaced, and so required different settings to convert properly. I used ffmpeg to convert an mkv file to mp4 using this command line. You should do so for each different input file you are converting. It is a prudent idea to test it first and visually inspect the output. ☠ Use at your own risk – I accept no responsibility for any data loss or mistakes caused by this script. If youre interested in hardware accelerated H264 and H265 (HEVC). Put the script somewhere convenient (such as your home folder), cd to your content directory, then call the script from the terminal using python ~/compress_videos.py -recursive -file-ext=mp4. My first question is : FFMPEG GPU based will be supported in the futur on Jetson Nano.

So I wrote a small python CLI tool which achieves the above goals.

Even though the phone has a decent amount of storage (64GB) it quickly fills up if you record a lot of video. A minute of 1080p video takes up ~150MB of storage, and double that for 60fps mode or 4K. Despite being a relatively modern phone, my OnePlus 6T records video using the H.264 codec rather than the newer H.265 HEVC codec.
