Categotry Archives: video

6

de-smurfing youtube (or why are all the people on youtube blue?)

by

It’s a Blue World. Thanks to this awesome flashplayer bug!

I am running 64 bit Debian Squeeze. And well, when I went to watch an episode of hak5 I had smurf vision!

Darren and Shannon from Hak5 as Smurfs

Darren and Shannon from Hak5.org as Smurfs

Hey guys. I didn’t know you drank too much blueberry juice. Who knew?

This is what’s currently installed:


dpkg -l | grep flashplugin

output look like:

ii flashplugin-nonfree 1:2.8.2 Adobe Flash Player – browser plugin

Yes, that’s in the Debian 64 bit multimedia repo.

EASY FIX!

1. This is from VirtualNexus (comments below)

For videos with reversed colors in youtube

Using the editor of your choice, add a file called /etc/adobe/mms.cfg and insert the following line:


EnableLinuxHWVideoDecode = 1

2. Restart your browser.

Darren and Shannon magically de-smurfed

Hey guys. Glad to see you’re off the blueberry juice!

Thanks Loni, for the title! Thanks VirtualNexus for this easy fix!

Wayno

9

Getting a Webcam/Logictech Quick Cam to work with Skype in Linux

by

THIS RECIPE WORKS WITH THE NEW V4.0 SKYPE FOR LINUX! yAy!

Video Chat Cameras are nice. But they don’t always play nicely with the Linux version of Skype.

1. Here’s the camera I have: (here’s now to find out what you have.)


lsusb

and the output will look like:

Bus 005 Device 004: ID 046d:092e Logitech, Inc. QuickCam Chat

2. First step first. Let’s see if the camera works with Linux Cheese.

If not already installed, install cheese:


sudo apt-get install cheese

Cheese is a local loopback programme. It takes the output from the camera (/dev/video0) and loops it right back for you to view.

If successful, this will tell us, that Linux recognizes the camera, and that it works. The light may/may NOT be on.

3. Let’s try the next step: Installing Skype.

Lets get the latest version of Skype from the website.

The latest Linux version (as of this writing) is: 2.2.0.35. (YES, that is far far behind the Windows Version) — Since Microsoft owns Skype, the future of the Linux version is an unknown at this point.

4. Once the download is finished, install Skype:


sudo dpkg -i skype-ubuntu_2.2.0.35-1_i386.deb

They have a version for Debian, and 32 and 64 bits. The example shown above is for the 32 bit Ubuntu version. So make sure you get the right version, and make sure you get the right architecture: 32 or 64 bit.

NOTE: IF YOU ARE ON A 64 BIT DEBIAN SYSTEM, AND PLAN ON USING THE 64 BIT SKYPE, YOU MUST INSTALL THE 32 BIT LIBRARY:


sudo apt-get install ia32-libs
sudo apt-get install ia32-libs-gtk

TO GET SKYPE TO WORK ON A 64 BIT DEBIAN SYSTEM. Yeah makes no sense, but you need this if you are running 64 bit DEBIAN Skype.

5. If you do not already have a Skype account, sign up for one. Just follow the prompts. Test the audio by using the Skype Test Call.

6. Let’s try the video. RIGHT click on the green skype logo in your task bar, then LEFT click on Options/Video Devices.

Now hit the test button. You should hopefully see an image. If you do not, don’t panic!


This article
gave me the information I needed to get it working. But of course, I found a much simpler method then what was given.

7. If you have no video, and this was especially true with the some of the Web Chat Cameras, all you may need to do is to pre-load the needed libraries.

Using your favourite editor (I’ll use nano in this case) create a file called skype.sh in your home directory (cd ~ )


nano skype.sh

enter the following in the file:


#!/bin/bash
#
# script preloads the 32 bit video for linux (v4l) libs needed by 64 bit skype
#
# Wayno Guerrini http://www.pkill-9.com v 2.0

# added the export for the gtk 32 bit library -- GU -6/22/2012
#
export GTK_PATH="/usr/lib32/gtk-2.0"

LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so /usr/bin/skype

control-o (control plus the “oh” key) to save, and control-x (control plus the “x” key to exit)

note that the library path name /usr/lib/libv4l/ may be different on your machine. This happens the be the correct path for 32 bit Ubuntu 10.04. The LD_Preload loads the Video for Linux Libraries, which Skype needs, but doesn’t get.

Now change the icon executable location to the script we just created:

Repeat step 6, and the video should now work!

Wayno

0

Ubuntu /etc/X11/xorg.conf from livecd fixes Debian Video Problems

by

I have been fighting video problems with Debian for a couple of weeks. I corrected the /etc/X11/xorg.conf file here.

If it looks familiar it should! This is the /etc/X11/xorg.conf file from the 64 bit Ubuntu 10.10 Livecd. I put it onto a usb flash drive, used sneaker net (which means I pulled it out of one machine, walked over, and put it into another), and copied it over. Restarted the gdm3 on 64 bit Debian Squeeze. I have full use of the hardware graphics capability and monitor sizes.

Using Ubuntu to fix Debian. Oh! I so love irony.

Thanks Joe for this crazy idea. But it worked!

Wayno

0

How to install the nvidia video driver in Debian

by

original post here

Thanks to @jelly-home on #debian for getting me unstuck.

Couple of steps involved. It’s not that hard, but the post above makes it harder then it needs to be.

Let’s make sure the device is NOT black listed first.

egrep -r -i “black” /etc/modprobe.d/* | grep -i “nv”

1. Go into the Synaptic Package Manager (System/Administration/Synaptic Package Manager) and add the Debian Non-Free Software as shown.

Debian Non-Free Software

NOTE: At this point I jump to command line, but the following could be done in Synaptic as well.

2. Install the nvidia Dynamic Kernel Module Support

Note: this assumes sudo works on your debian box, or you will have to su root


sudo apt-get install nvidia-kernel-dkms

Before we reboot, let’s fix X.

3. We need to change xorg.conf, so it loads the proper driver.

As always anything the begins with an octothorpe (#) is a comment and does NOT need to be coded.


cd /etc/X11 # change to the X directory
ls

if there IS an xorg.conf file (I did NOT have one) make a backup copy:


sudo cp xorg.conf xorg.conf.bkup

Now edit or create xorg.conf file:


sudo nano xorg.conf

and the contents need to be:


Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Control + o to write, control + x to exit.

NOTE: If this /etc/X11/xorg.conf file looks familiar, it should! This is the same file off of 64 bit Ubuntu 10.10 Livecd. (Ubuntu to fix Debian!)

And then reboot.

4. to confirm the correct driver:


grep -i glx /var/log/Xorg.0.log

and you should get output that looks like:

(II) “glx” will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: “glx”
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor=”NVIDIA Corporation”
(II) NVIDIA GLX Module 195.36.31 Thu Jun 3 08:59:25 PDT 2010
(II) Loading extension GLX
(II) Aug 21 14:27:19 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(==) Aug 21 14:27:20 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(II) Loading extension NV-GLX
(II) Initializing extension GLX

Enjoy video goodness!

Thanks jelly-home

Wayno

0

How to convert a dvd video for a Sandisk Sansa Fuse Player using Linux

by

Original post here.

The basic idea of how to convert a video for the Sansa Fuse Mp3/Video player is simple. What’s not so simple is directions.

1. You will need to make sure you Sansa Fuse is set correctly. Set it to MSC Mode.

2. If not installed already, you will need to install k9copy. You can do this simply by:


sudo apt-get install k9copy

Note this is a KDE application, so it may add the required KDE libraries to make this application work, and this may take some time. As Alton Brown says: “Your patience WILL BE rewarded. Your impatience, will be punished!”

3. Follow the directions give in the post above, to install fuzemux, and video4fuze.

4. Now the k9copy part. To change the settings, bring up k9copy, and find “configure k9copy”

Hit the MPEG-4 encoder and select the vido tab:

It should look like this: Encoder: mencoder

Width: 224 Height: 176

and I arbitrarily set the file size to 500 meg.

k9copy mpeg4 encoder options

Video part done!

5. Now to the audio. Select the Audio tab (still under MPEG-4) — codec is mp3 (lame) and bitrate: 128. The gain was preset to 7 (I did NOT change this)

It should look like this:

k9copy mpeg4 audio settings

6. If you have never used k9copy, it can be a bit intimidating. What you want to do, is to OPEN the DVD. All the title sets will be presented: (make sure you check ALL the title sets)

k9copy title set

Set you input/and output as shown in the image above. Your name is going to be different then: “SOUTH_PACIFIC”

7. Hit the COPY button, and then go do you favourite 30 minute activity: walking, biking, television, reading. You know: something other then watching k9copy work!

It will create an output file called .avi in your home directory.

NEXT!

8. While the directions say to start video4fuze on the command line, in reality, that didn’t work for me. Why? Because at least in Ubuntu 10.10 (64 bit), it installs it into /usr/share/video4fuze

And while that’s NOT in-correct, it’s probably NOT in your path either.

Two choices:

either manually navigate to the directory


cd /usr/share/video4fuze

or

create a launcher:

Video 4 Fuze Launcher

You will note, that this is a Python Script.

so to run it: python /usr/share/video4fuze/video4fuze.pyw

And the screen pops up. Select the input file. The output file will be called, /home/username/input_file2_fuze.avi

video 4 fuze setup

You will note, that video4fuze – is really a front end for mencoder.

Again, this is NOT fast. So yea, another 30 minute thing.

10. Plug in your Sansa Fuse to your usb port. My Sansa Fuze has 8 G internally, and a 16G external drive. So I put this on the external drive. Videos will be 300 – 500 meg.

You MIGHT need to create a VIDEOS folder on the Sansa Fuze. (mkdir or nautilus will do this).

11. Copy and Paste time. Simply copy the /home/username/input_file2_fuze.avi file video4fuze created to your mp3 player VIDEOS folder. This will take some time, depending on how fast your ram is. Mine isn’t so, this time a 15 minute break. (Who said any of this was fast?)

12. When it’s done copying:


sync

sync to flush the buffers to disc.

13. Unplug the usb cable, let the fuze refresh, and enjoy!

Wayno

0

HDMI connections and Analogue (analog) Closed Captioning

by

Nothing to do with Linux!

This information will be useful to those of us that are in the deaf/hard-of-hearing community:

At this link:

Find a DVD Recorder that does Closed Captioning

I learned that Analogue closed captioning is NOT necessarily passed along an HDMI connection. Although analogue captioning seems to function fine with my TIVO HD and an HDMI connection.

I bought this DVD recorder from Wally’s World (aka Walmart)

Magnavox MDR515H

And sure enough. No captioning!

I switched to component output instead of the HDMI cable, and I now have Analogue Closed Captioning goodness! Records and plays back as advertised!

This little tidbit was enough to make all the difference!

and so it goes….

Wayno