ExplodingPenguin.TV Linux Love, Microsoft Frustrations, and Other Geekery

4May/11Off

Fix Ubuntu Flash Player Issues with a Great Firefox Add-on

Flash playback in Linux is often times not smooth, crashy, or just has some set of weird issues. Luckily, Flash-Aid is here to help  with smoother flash playback in Linux. This add-on in conjunction with the Flash 10.3 RC1 has fixed most of my issues.

To install, simply search the Firefox add-ons for "Flash Aid" and install. (Tools>Add-Ons)

After Restarting Firefox you will be greeted with a Flash Aid pop-up that will walk you through installing the correct and current version of Flash on your system. By default it removes whatever version of flash you have on your system and installs the beta version from the Adobe Labs site. This is the preferred method for me, as it fixed my problems. You could just as easily change this setting in the Flash-Aid preferences on the "Installation Options" tab.

Share
Filed under: Linux Desktop No Comments
20Mar/11Off

Play Flash Video in VLC, and Save, after Flash 10.2 update in Linux


The Adobe Flash player, in Linux, used to save the flv file in the /tmp directory while the video was still open. That made it easy to copy or play the file in another video player, which was useful since the flash player in Linux can often go a little awry, especially in full screen mode. When flash player updated to 10.2, the temporary directory for flash changed as well. Getting control of the file again is easy.

Enter this in the terminal:

sudo gedit /usr/local/bin/yt

 

Copy the following script into the text editor:

#!/bin/bash

FLASH_TMP=`ls /tmp | grep Flash*`

if [[ $FLASH_TMP ]]; then
     vlc /tmp/Flash*
else
     if [[ `ps x | awk '/libgcflashplayer.so\ /{print $1}'` ]]; then
          flashvids() { lsof -p `ps x | awk '/libgcflashplayer.so\ /{print $1}'` -n 2>/dev/null | perl -lne '@F = split(/ +/, $_, 9); print "/proc/$F[1]/fd/${\($F[3] =~ /(^\d+)/)[0]}" if $F[4] eq "REG" && $F[8] =~ /\(deleted\)$/'; }
     else
          flashvids() { lsof -p `ps x | awk '/libflashplayer.so\ /{print $1}'` -n 2>/dev/null | perl -lne '@F = split(/ +/, $_, 9); print "/proc/$F[1]/fd/${\($F[3] =~ /(^\d+)/)[0]}" if $F[4] eq "REG" && $F[8] =~ /\(deleted\)$/'; }
     fi

     vlc $(flashvids)
fi

 

Click save

Make the file you just created executable:

sudo chmod +x /usr/local/bin/yt

 

Now you can create a custom launcher and point it to the /usr/local/bin/yt. And all you have to do is click that launcher to play the video in VLC.

If you want to copy the file to more perminent location just create follow th steps appove, using a different file name. And change the lines that read:

vlc /tmp/Flash*

vlc $(flashvids)

 

To:

cp /tmp/Flash* Videos/

cp $(flashvids) Videos/

 

Running this script will copy the video to your Videos folder.

Share
Filed under: Linux Desktop No Comments