Monday, December 21, 2015

720p movie with black bars

Check the aspect ratio

1.78:1 - fill the entire screen
1.85:1 - small black bars at the top and bottom of the screen
2.35:1, 2.39:1, or  2.40:1 - black bars on the top and bottom of the image (common for cinematic movies) 

Examples:
MOVIE
Starting playback...
Movie-Aspect is 2.39:1 - prescaling to correct movie aspect.
VO: [xv] 1280x536 => 1280x536 Planar YV12 

TV SHOW
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12 

Sunday, December 6, 2015

Install ttf fonts in Fedora

Exit the app that you want to use the font in (Libreoffice, Gimp, etc)
Copy TTF file(s) into /usr/share/fonts directory (as root - but they need to be world readable).

As root run

fc-cache -v

Then open LibreOffice/Gimp and you'll see the font in the list.

Saturday, November 21, 2015

Download youtube audio

dnf install youtube-dl

youtube-dl --extract-audio --audio-format mp3 --audio-quality 0  


Sunday, November 15, 2015

Fedora 23 rpmfusion gpg check

Navigate to rpmfusion gpg listing

http://rpmfusion.org/keys?action=AttachFile&do=view&target=RPM-GPG-KEY-rpmfusion-free-fedora-23

Download the appropriate gpg files (Fedora 23 in this example)


rpm --import RPM-GPG-KEY-rpmfusion-free-fedora-23

rpm --import RPM-GPG-KEY-rpmfusion-nonfree-fedora-23


or use dnf install "whatever" --nogpgcheck   <--- bad="" div="">

Add the date to Gnome 3 menubar (gnome-tweak-tool or dconf-editor)

New Way

Install gnome-tweak-tool

dnf install gnome-tweak-tool

In the Top Bar section, enable show date, show seconds. Restart gnome (logout, login).


Old Way

Install dconf-editor
In Fedora 23 its using DNF,

dnf install dconf-editor

navigate to org.gnome.desktop.interface

Enable:

clock-show-date
clock-show-seconds
clock-format




Thursday, February 5, 2015

Convert from flac to mp3 with ffmpeg

for FILE in *.flac;
do
    ffmpeg -i "$FILE" -ab 320k -map_metadata 0 "${FILE%.*}.mp3";
done

Fix for lftp - Fatal error: Certificate verification: Not trusted

lftp

[dwills@fedora ~]$ lftp -u ftpuser1 192.168.0.19
Password:
lftp ftpuser1@192.168.0.19:~> ls -l
ls: ls -l: Fatal error: Certificate verification: Not trusted


edit /etc/lftp.conf

append the following



set ssl:verify-certificate no