mplayer borderless window
Below is the command that will display borderless video with the mplayer. The command below is specific to mplayer only.
mplayer -noborder "video.mp4" -geometry 2%:98% -zoom -x 325 -y 190 -vf crop=1280:544:0:88
Here ‘-noborder’ option turns off the border of th window.
-geometry : place the video window in xoffset: 2%, yoffset: 98% from top
-zoom : resizes the actual movie size to 325×190
-vf crop= : option removes the black borders that appear in some video. This needs to be tweaked video to video.
Use -vf cropdetect to detect what needs to be used to crop the black borders
To keep video, ‘always on top’ click the video windowand then hit capital ‘T.’
Mplayer hint: http://opensource-htpc.blogspot.com/2011/04/remove-black-borders-and-bars-from.html
Aspect Ratio Calculator: http://size43.com/jqueryVideoTool.html
I recently faced a font rendering issue in Ubuntu. Though I used to have
these problems before back then I used to fix these by installing the appropriate languages
from Regional and Language settings. But it didn’t work this time. I then researched
on it and have come across the following solution that might be helpful to other
having the same problem like mine. It had to follow all the way upto solution5 to get this
My System specifications:
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
– From Regional and Language settings install Nepali (macrolanguage). Apply
this system wide.
– if everything is fine you should see correct rendering of the Devnagiri fonts
in google chrome. This doesn’t need the logout/login to see the change.
Installed the Nepali (macrolanguage) but still you are facing the same font
rendering problem then you might want to try the below solutions one by one.
– remove/rename the font that might be causing the issue.
– I preferred to rename the font instead of delete.
$ sudo mv /usr/share/fonts/truetype/freefont/FreeSerif.ttf /usr/share/fonts/truetype/freefont/FreeSerif.ttf.backup
$ sudo mv /usr/share/fonts/truetype/freefont/FreeSans.ttf /usr/share/fonts/truetype/freefont/FreeSans.ttf.backup
– for details on why it might work, see http://askubuntu.com/questions/97639/hindi-font-problem-in-chrome
– Some websites by default use Mangal.ttf fonts that are unicode devnagiri fonts. And thus installing this font locally solves most of the rendering issue. BBC Nepali uses this font and thus if you are having problem with BBC Nepali you might want to give it a try.
– During research, I also came across this bug report (https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1378184)
in Ubuntu which is quite not related to the problem specified here. But I thought
to give it a try by installing the fonts-lohit-deva
– Try to install the fonts-lohit-dev and see if this solves your problem
$ sudo apt-get install fonts-lohit-dev
– install fontconfig-infinality and use its setstyle to linux
– please refer to this link for the instructions on how to do it.
Java Installation in single screenshot
$ tar xvfz jdk_source.tz -C /opt
$ cd /opt/jdk_source/
$ sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk_source/bin/java" 1
$ sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk_source/bin/javac" 1
$ sudo update-alternatives --install "/usr/bin/javaws" "javac" "/opt/jdk_source/bin/javaws" 1
Account picture in windows8.1
It’s been a while I have been using Windows8.1 activated. I tried to change the account picture and lock screen background but to my surprise I could not change it. After researching a bit, I came to know that this issue was caused by the folder permissions issue in windows8.1. In order to change account picture and lock screen background picture the user needs to have access to “C:\ProgramData\Microsoft\User Account Pictures”. Once I knew the issue it was matter of minutes to get this done.
Please follow the below process to assign permissions to yourself in windows8.1 pro.
1. Hit “Ctrl+r” type “%programdata%\Microsoft\”
2. Select “User Account Pictures” click properties
3. Remove the “Read Only” attribute checkbox from this folder
4. Click on “Security” Tab
5. Click “edit” > It will show a new window
6. In newly shown window, Click “Add” > This will again show a new window “Select User & Groups”
7. In “Select User & Groups” window click advanced, This will again show a new window, Here click in “Find Now”
8. From the displayed search results select your “username”, If you are not sure about how to find your username it’s quite easy.
How to find username?
2. Type “cmd”
3. The user would be last one in the bash terminal e.g. “c:\Users\samundra>”. Then “samundra” would be the username.
9. Once user is selected, Select that user in permission window and under “Permissions for user” section “check mark” on allow for him on everything.
10. click “OK” on every window that’s been opened.
11. Now try to change the account picture and lock screen background.
Please let me know if you have any confusions on this.