Archive

Posts Tagged ‘vlc’

black screen with VLC and mplayer

September 5, 2013 Leave a comment

Problem

When trying to play a video, I get a black screen. It’s the same with VLC and mplayer.

Solution

mplayer:

alias mplayer='mplayer -vo x11'

VLC:

Go to Tools -> Preferences -> Video. At the Output, choose “X11 video output (XCB)” from the dropdown list. If it doesn’t work, untick the option “Accelerated video output (Overlay)”.

Categories: bash Tags: , ,

VLC gets stuck

January 29, 2013 Leave a comment

Problem
On my Linux box, VLC gets stuck sometimes and only the good old “kill -9” can shoot it out. Is there a single command to kill it?

Solution

alias killvlc='kill -9 `ps ux | grep vlc | grep -v grep | tr -s " " | cut -d" " -f2`'
Categories: bash Tags: ,

Play Youtube videos with VLC

November 27, 2012 1 comment

Did you know that VLC media player can play Youtube videos? Neither did I. Try this:

vlc http://www.youtube.com/watch?v=Dmn4gtZWVzw

Does Flash break all the time? Use VLC :)

Tip from here.

Categories: Uncategorized Tags: , ,

Play an interlaced video without those funny lines

March 20, 2012 Leave a comment

Problem
I wanted to watch a DVD but it was interlaced, thus it contained lots of disturbing horizontal lines. How to get rid of those lines? Is there a way to filter them out?

Solution
Mplayer has an option for that :) Try this:

mplayer -vf pp=lb interlaced_video.iso

This procedure is called deinterlacing.

Tip from here. Image borrowed from here.

Update
VLC can do this too. Available under Video -> Deinterlace. You can also choose the deinterlacing method under Video -> Deinterlace mode.

VLC 2.0 is out

February 22, 2012 Leave a comment

How to install VLC 2.0 in Ubuntu

In short:

sudo add-apt-repository ppa:n-muench/vlc
sudo apt-get update && sudo apt-get install vlc
Categories: ubuntu Tags: ,

VLC’s sound is crackling

February 10, 2012 5 comments

Problem
Under Ubuntu, when playing a movie with VLC, I hear some crackling. The audio output is distorted. With mplayer everything works fine.

Solution
I found the solution here. This problem is caused by pulseaudio. Start VLC, then go to Tools -> Preferences -> Audio, and change the Output module from the default to ALSA. The distortion went away.

Note that I have Ubuntu on several machines and I had this problem on one machine only.

Categories: ubuntu Tags: , , ,

Configure Midnight Commander to open files with custom application

December 8, 2010 7 comments

Problem

You use Midnight Commander (mc) for all your file operations. So far it’s not a problem :) However, when you hit Enter on a file, you would like to set what application mc should use for opening the given file.

For instance, you want to open an .avi file with VLC instead of X player, etc.

Solution

Steps to follow:

cd ~/.mc
cp /etc/mc/mc.ext .
ln -s mc.ext bindings

That is, copy the global mc.ext to your local .mc directory and put a symbolic link on it called bindings. Now you can start customizing your local mc.ext file.

Don’t forget to restart mc after editing mc.ext!

Examples:

(1) You want to open all your video files with VLC. You also want to add support for .wmv files.

# add these lines
regex/\.([wW][mM][vV])$
    Include=video

# modify the include/video section
include/video
    #Open=(mplayer %f >/dev/null 2>&1 &)   # for mplayer
    Open=(vlc %f >/dev/null 2>&1 &)   # for VLC

(2) Open .docx files with OpenOffice.org.

# add these lines
regex/\.([Dd][oO][cC][xX])$
    Open=(ooffice %f &)

(Thanks for the mc mailing list for their help).

Categories: ubuntu Tags: , , , ,
Follow

Get every new post delivered to your Inbox.

Join 72 other followers