| Author |
Message |
Tman

Joined: 22 Jan 2011 Posts: 731 Location: Toronto
|
Posted: Sat 08 Oct 2011, 21:57 Post subject:
playflash.pet Subject description: Play youtube videos with Mplayer |
|
I recently came a across a fantastic script from stu90 when I stumbled across this thread:
http://www.murga-linux.com/puppy/viewtopic.php?t=70690
What the script does is it plays youtube videos from Mplayer, instead of the Adobe Flashplayer. This takes up less resources, allowing smoother playback on older machines.
I then decided to package stu90's script into a pet with an icon entry in the Multimedia folder. One can then link the play_flash.desktop file to the desktop or to a quick launch bar.
For this to work, you must have Mplayer installed. ( or Gnome-Mplayer )
Instructions:
1) Launch a youtube video from your favorite browser and pause the video once you see it begins to play.
2) Launch playflash from the menu and the video should open up in Mplayer
- alternatively, you can also type playflash in the terminal
enjoy!
| Description |
playflash in action |
| Filesize |
43.04 KB |
| Viewed |
1108 Time(s) |

|
| Description |
Play youtube videos in Mplayer
|

Download |
| Filename |
playflash.pet |
| Filesize |
2.56 KB |
| Downloaded |
341 Time(s) |
Last edited by Tman on Sun 09 Oct 2011, 21:26; edited 1 time in total
|
|
Back to top
|
|
 |
Tman

Joined: 22 Jan 2011 Posts: 731 Location: Toronto
|
Posted: Sun 09 Oct 2011, 21:26 Post subject:
|
|
I have discovered that you also need a pupsavefile for playflash to work.
|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 2421
|
Posted: Mon 10 Oct 2011, 02:01 Post subject:
|
|
You can also save the video by copying the /proc file, so it's helpful to create a log:
| Code: |
#!/bin/sh
var="$(stat -c %N /proc/*/fd/* 2>&1|awk -F[\`\'] '/lash/{print$2}')"
echo "$var" >/tmp/flash
mplayer -cache 1000 ${var}
|
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3012 Location: Oregon
|
Posted: Mon 10 Oct 2011, 02:27 Post subject:
|
|
Is it possible to plug playflash into a browser as an external application and remove flashplayer from the browser?
Or would flashplayer still be needed?
I know quite a few users would like to have an alternative to flashplayer and trying to keep up with security updates.
|
|
Back to top
|
|
 |
pemasu

Joined: 08 Jul 2009 Posts: 5169 Location: Finland
|
Posted: Mon 10 Oct 2011, 03:02 Post subject:
|
|
http://groups.google.com/group/gecko-mediaplayer/browse_thread/thread/ff6cb708c99fe6de
I havent tested it...yet. But it sounds worth of a test.
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3012 Location: Oregon
|
Posted: Mon 10 Oct 2011, 03:33 Post subject:
|
|
pemasu,
Thank you for the link. I run the latest version of SeaMonkey and will give it a try along with removal of flashplayer.
I am curious though as to how it would handle a flash file that tried to run bad code on a PC.
I normally have NoScript, Better Privacy, and ghost as well as flashblock installed in SeaMonkey as addons.
|
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3669 Location: UK
|
Posted: Mon 10 Oct 2011, 04:15 Post subject:
|
|
Could not get FF7 to use it
_________________ Spup Frugal HD and USB
Root forever!
|
|
Back to top
|
|
 |
pemasu

Joined: 08 Jul 2009 Posts: 5169 Location: Finland
|
Posted: Mon 10 Oct 2011, 07:38 Post subject:
|
|
Found this post when searching more info of that script:
https://github.com/Rob-ot/Youtube-Without-Flash
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Mon 10 Oct 2011, 07:55 Post subject:
|
|
Hi Pemasu,
The readme on there says the script is broken:
| Quote: | At the time of writing this the script is broken, sorry, its been broken for a while actually and I dont have time to hack on it anymore (same old story - finished college, got a fulltime job) so I am hoping by putting it on github you other hackers can apply your ideas and have at it.
If someone out there is interested in being a maintainer email me at dsmlover@gmail.com.
requirements: you must not suck at javascript, you must hate flash
I will also post a branch with my prototype for a full on flash replacing framework I started making although thats probably broken on youtube too. |
|
|
Back to top
|
|
 |
pemasu

Joined: 08 Jul 2009 Posts: 5169 Location: Finland
|
Posted: Mon 10 Oct 2011, 12:20 Post subject:
|
|
Yep. Thats why I posted the link. Just did it from work, so I didnt have time to quote.
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 10 Oct 2011, 13:08 Post subject:
|
|
for me the only reliable method is to run mplayer with the temporary flashfile in /tmp, like /tmp/FlashXxgrdt.
Unfortunately, new flashplayers no longer store it there
As I use opera as defaultbrowser, I placed the NEW flashplayer somewhere like /root/newflash/libflashplayer.so
Then in operas options, in the plugin settings, I have set the pluginpath to /root/newflash/.
To grab videos from youtube, I use firefox with the OLD flashplayer /root/.mozilla/plugins/libflashplayer.so (firefox uses the player there by default, it is version 10,0,15,3).
Like this I have two browsers, one with the new player for sites that need it, and one with the old player.
To view a video now in mplayer, I use the old playflash script I posted here:
http://www.murga-linux.com/puppy/viewtopic.php?t=34008
You'll need this old flashplayer:
http://noforum.de/files/libflashplayer.so-10.0.15.3.tar.gz
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
Tman

Joined: 22 Jan 2011 Posts: 731 Location: Toronto
|
Posted: Mon 10 Oct 2011, 15:37 Post subject:
|
|
Mu,
I had no idea your playflash.pet existed until today. Same name too .
Perhaps someone would be able to merge code from both playflash pets. We could have a utility that scans the new folder where flashplayer stores its temporary files and have Mplayer launch it.
An on/off function for it would be good as well, so it doesn't constantly scan for videos every few seconds when one isn't using the internet. My coding skills are weak, but I might be able to do this...might
The link that Pemasu posted, is an even better idea, but I wouldn't how to to implement it, as it is beyond my skills.
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 10 Oct 2011, 16:18 Post subject:
|
|
no problem about the name, it was just a simple script, as small utility.
Feel free to use it/extract what you need, and continue it as "playflash".
I'm currently too busy to continue it, so I'm happy if the fragments can help others in newer projects.
I had googled about the topic some weeks ago, and if I remember well, the new flashplayers do no longer store a single flashfile.
The file is splitted in parts, what makes it more difficult to grab it.
I found it too complicated to find out the exact mechanism, and so installed the old flashplayer instead.
Maybe meanwhile people found a solution that can be found with google though
Greets, Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6660 Location: lisbon
|
Posted: Mon 10 Oct 2011, 17:13 Post subject:
|
|
To save videos I use this script I googled:
| Code: | #!/usr/bin/env bash
for flashpid in $(pgrep -f flashplayer.so); do
cd "/proc/$flashpid/fd"
for video in $(file * | grep '/tmp/Flash' | sed 's/\(^[0-9]*\).*/\1/g'); do
echo "/proc/$flashpid/fd/$video"
cp "/proc/$flashpid/fd/$video" /mnt/home/vids/$1
done
done |
So if I call it savevid, run like savevid videoname.
Doesn't work with dailymotion now, as they changed something to stymie!
|
|
Back to top
|
|
 |
Tman

Joined: 22 Jan 2011 Posts: 731 Location: Toronto
|
Posted: Mon 10 Oct 2011, 18:11 Post subject:
|
|
muggins,
I use a Firefox plugin to save streaming video, but that's a great script for non-Firefox users.
| MU wrote: |
Feel free to use it/extract what you need, and continue it as "playflash".
|
Thank you MU, but it may not be necessary for me to continue modifying playflash.
After a bit of googling, I discovered a plugin for Firefox that will allow users to play flash videos with a stand-alone video player. I tried it with Gnome-mplayer, regular Mplayer and VLC. It was a bit slow to react with VLC but worked with all three players You just need to install the plugin and adjust the preferences.
Of course, this only helps Firefox users.
https://addons.mozilla.org/addon/flashvideoreplacer/
| Description |
|
| Filesize |
37.61 KB |
| Viewed |
979 Time(s) |

|
|
|
Back to top
|
|
 |
|