Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 06:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
playflash.pet
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: 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! Wink
playflash.jpg
 Description   playflash in action
 Filesize   43.04 KB
 Viewed   1237 Time(s)

playflash.jpg

playflash.pet
Description  Play youtube videos in Mplayer
pet

 Download 
Filename  playflash.pet 
Filesize  2.56 KB 
Downloaded  478 Time(s) 

Last edited by Tman on Sun 09 Oct 2011, 21:26; edited 1 time in total
Back to top
View user's profile Send private message 
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: Sun 09 Oct 2011, 21:26    Post subject:  

I have discovered that you also need a pupsavefile for playflash to work.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: 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
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3398
Location: Oregon

PostPosted: 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
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: 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
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3398
Location: Oregon

PostPosted: 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
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Mon 10 Oct 2011, 04:15    Post subject:  

pemasu wrote:
http://groups.google.com/group/gecko-mediaplayer/browse_thread/thread/ff6cb708c99fe6de

I havent tested it...yet. But it sounds worth of a test.


Could not get FF7 to use it Sad

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: 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
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Mon 10 Oct 2011, 07:55    Post subject:  

pemasu wrote:
Found this post when searching more info of that script:
https://github.com/Rob-ot/Youtube-Without-Flash

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 Very Happy

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
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: 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
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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 Sad

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
View user's profile Send private message Visit poster's website 
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: 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
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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 Smile

Greets, Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: 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
View user's profile Send private message 
Tman


Joined: 22 Jan 2011
Posts: 814
Location: Toronto

PostPosted: 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/
FlashVideoReplacer.jpg
 Description   
 Filesize   37.61 KB
 Viewed   1252 Time(s)

FlashVideoReplacer.jpg

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0864s ][ Queries: 13 (0.0050s) ][ GZIP on ]