The obvious next question is how to run this command for all test files? The answer? Create another batch file in the same folder that sends out the batch file name:test filename commands in sequence. Or, to encode the GTAV test file you would run this. To run the batch and encode the file, you type in the batch and file name in the command window. "C:\Program Files\MSU_VQMT_12\msu_metric.exe" -in %1.mp4 -in %1_x264_CRF25.mp4 -csv -metr vmaf over Y -metr psnr over Y Here’s the new batch language that substitutes %1 for the file name in the source and output file. I couldn’t run it as is but adopted (stole) the operational schema which substituted wild cards for the static file name. The client had sent a batch file that applied some wildcard automations. Then I repeated the sequence for four different CRF values. "C:\Program Files\MSU_VQMT_12\msu_metric.exe" -in GTAV.mp4 -in GTAV_x264_CRF25.mp4 -csv -metr vmaf over Y -metr psnr over Y Here’s where I started the first line creates the file, the second measures VMAF and PSNR with the Moscow State University Video Quality Measurement Tool. Not too onerous because all that changes is the file name, but I was wondering if there was a better way. So, this means three batch files for each file (one for each codec) or 48 different batch files. I’m testing three codecs with sixteen different test files, encoding each codec in a separate folder to avoid any kind of FFmpeg or other operating conflicts. I recently started a consulting project that involved encoding multiple files to multiple CRF values to create rate-distortion curves and BD-Rate computations. I’m sure there are much more efficient ways to script this project, but this represents my baby steps in FFmpeg automation. Author’s note: This is a very simple automation technique for FFmpeg beginners.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |