This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# P0, P1, P2, P3, P4 are the Process names here | |
n = 5 # int(input('Enter number of process: ')) # Number of processes | |
m = 3 # int(input('Enter number of resources: ')) # Number of resources | |
# Allocation Matrix | |
alloc = [[0, 1, 0], [2, 0, 0], [3, 0, 2], [2, 1, 1], [0, 0, 2]] # | |
# for i in range(n): | |
# alloc.append(list(map(int, input(f'Enter {i + 1} allocation: ').split(' ')))) | |
# MAX Matrix | |
max = [[7, 5, 3], [3, 2, 2], [9, 0, 2], [2, 2, 2], [4, 3, 3]] # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#rec | |
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1600x900 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv | |
###convert | |
mencoder -oac mp3lame -lameopts cbr=128 -ovc xvid -xvidencopts bitrate=1200 aula3.mkv -o aula3_mencoder.avi | |
#MERGE | |
mkvmerge -o complete.mkv part1.mkv +part2.mkv +part3.mkv +part4.mkv | |
#conv ffmpeg |