When trying to play a video, I get a black screen. It’s the same with VLC and mplayer.
alias mplayer='mplayer -vo x11'
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)”.
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?
alias killvlc='kill -9 `ps ux | grep vlc | grep -v grep | tr -s " " | cut -d" " -f2`'
Did you know that VLC media player can play Youtube videos? Neither did I. Try this:
Does Flash break all the time? Use VLC :)
Tip from here.
Mplayer has an option for that :) Try this:
mplayer -vf pp=lb interlaced_video.iso
This procedure is called deinterlacing.
VLC can do this too. Available under Video -> Deinterlace. You can also choose the deinterlacing method under Video -> Deinterlace mode.
sudo add-apt-repository ppa:n-muench/vlc sudo apt-get update && sudo apt-get install vlc
Under Ubuntu, when playing a movie with
VLC, I hear some crackling. The audio output is distorted. With
mplayer everything works fine.
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.
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.
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
Don’t forget to restart mc after editing
(1) You want to open all your video files with VLC. You also want to add support for
# 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
.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).
You have a CD/DVD and you want to store its content on your hard drive in an .iso file. That is, you want to rip the CD/DVD.
Here I explain how to rip a CD. In the case of an unprotected DVD the method is the same. If the DVD is protected by a region code, you can still rip it but you cannot play it back normally :( For ripping protected DVDs, you need more sophisticated techniques but that’s out of the scope of this post.
So, either you do it in command-line or in Gnome (I use Gnome).
time dd if=/dev/sr0 of=/tmp/ripped.iso
It’s a good idea to add the
time command, then you’ll see how much time the process took. In the example
/dev/sr0 is the filesystem of my CD, you will have to replace it with a value that is specific to your machine. To figure it out, use the
df command. In my case I got the following output:
$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 230598832 159681596 59203444 73% / /dev/sr0 424112 424112 0 100% /media/cdrom0
In Gnome just do the following. On the desktop right click on the CD/DVD icon. Choose Copy Disc… from the popup menu. Under Select a disc to write to, choose Image File. Click on Properties, and at the bottom of the file selector, next to Disc image type, choose “ISO9660 image”. Specify the output file and start ripping by clicking on the button “Create Image”.
Playing back a DVD iso file
If you ripped a movie from an unencrypted DVD, playing back the iso file is very simple. Use the VLC media player and pass the iso file as if it were a normal avi. Example:
When you insert a DVD, it is mounted automatically under
/media, for instance in the folder
/media/Holiday. In the
/media/Holiday you will find two subfolders,
VIDEO_TS (or something similar). How to play it with VLC? Nothing is simpler:
$ cd /media $ vlc Holiday/