Friday, July 23, 2021
This is a way to download selective frame of the youtube video that you need rather than downloading the whole video and trim it locally.
The sample command below start downloading at 00:06:40.00 and for the duration of 40 secs then output it to a file with filename of out.mp4.
-f 22 is setting the resolution of the video to 720p. You can also use -f 18 for 360p mp4 resolution or -f 137 for 1080p mp4 resolution.
ffmpeg -ss 00:06:40.00 -t 40 -i $(youtube-dl -f 22 -g "https://www.youtube.com/watch?v=9QuapHtz9Ec") -acodec copy -vcodec copy -c copy out.mp4
Tuesday, May 4, 2021
Monday, May 3, 2021
In order to update the grub configuration of the machine that you might be misconfigured and unable to boot up properly you could use live CD to boot into the machine, however, even if you are able to update the /etc/default/grub file, you will need to perform the "sudo update-grub" command to effect the change. if you are using Live CD to login, you need to perform the following steps:
First mount the root directory in question for my case it is my /dev/sda so it is it will be /dev/sda2 as mostly sda1 is for the /boot/efi partition.
You will mount the root partition as follow:
sudo mount /dev/sda2 /mnt
sudo mount --bind /dev /mnt/dev sudo mount --bind /sys /mnt/sys sudo mount --bind /proc /mnt/proc
How can you tell if you have a boot partition?
sudo chroot /mnt
sudo umount /mnt/dev sudo umount /mnt/sys sudo umount /mnt/proc sudo umount /mnt/