![]() My $input_aspect= $input_width / $input_height # calculate padding (for black bar letterboxing/pillarboxing) If the video is less wide than the target frame size, the below routine will give a negative letterboxing result (which we will correct later on and use the value for pillarboxing): #FFMPEG SCALE BLACK BARS FULL#This assumes that the video is actually full screen or less/letterboxed. Then, here comes the magic that calculates the thickness of the black bars. Now, let's define the target video dimensions: = "Couldn't read from ffmpeg: $!\n" ĭie "Could not fully get input video dimensions: $input_width x $input_height\n" Open(FFMPEG, "ffmpeg -i '$inFile' 2>
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |