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 Sun 19 Nov 2017, 10:32
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Impromptu
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Sun 13 Nov 2011, 07:29    Post subject:  Impromptu
Subject description: Needs opengl, Python 2.6 scrolling Html viewer, can be used as a teleprompter
 

I threw this together after looking for some form of a teleprompter and not being able to find anything.

I'm using it with lucid 5.2.8

It was run from command line, so I made a small GUI to select the files.

It is only a small script, but it's just the dependencies that make it so large.

Needs python 2.6 and Opengl, the pet package has pyglet, read about it HERE

Download the pet package HERE size 1390k installed 6412k

Menu entry is located under Multimedia

Let me know how it go's, I haven't tried it on anything else, so it may not work for everyone.


Here is a copy of the help file that is in the GUI.
Quote:
Impromptu GUI

Is a simple frontend to manage HTML files for Impromptu.

Impromptu is a little Python script, which displays a pseudo-HTML file in a window
and scrolls the text in upwards or downwards direction.

You can use it, for example, as a teleprompter while recording a podcast or
an audiobook or for a presentation. You can use different fonts, colors and
sizes via a subset of the HTML4 standard [1]_ and control the scrolling speed
and direction via command line options and keyboard commands while the
application is running.

http://www.pyglet.org/doc/programming_guide/formatted_text.html

Usage

While in the main window, press F1 to show a list of supported keyboard
commands.

F1 = Open / Close help screen
F11 = Toggle fullscreen mode
ESCAPE = Close window and exit / Close help screen
SPACE = Pause / Resume scrolling
CONTROL = Pause scrolling momentarily (release key to resume)
RETURN = Set scrolling speed to default
UP = Increase scrolling speed (max. 250 pixels/second)
DOWN = Decrease scrolling speed (min. 1 pixel/second)
RIGHT = Change scrolling direction to up-/forwards
LEFT = Change scrolling direction to down-/backwards
PAGEUP = Scroll back one screen
PAGEDOWN = Scroll forward one screen
HOME = Jump to start
END = Jump to end
+ = Increase font size (max. 100 points)
- = Decrease font size (min. 6 points)
0 = Set font size to default
R = Show display framerate








Last edited by Geoffrey on Thu 14 Sep 2017, 01:43; edited 2 times in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15235
Location: Paradox Realm

PostPosted: Sun 13 Nov 2011, 10:08    Post subject:  

My hovercraft is full of eels

Tried it in Slacko with devx (for python)
The program came up but no teleprompting ensued
From command line:

Code:
# ./impromptu
Traceback (most recent call last):
  File "/usr/share/impromptu/impromptu.py", line 41, in <module>
    import pyglet.font
  File "/usr/lib/python2.6/site-packages/pyglet/font/__init__.py", line 79, in <module>
    from pyglet.gl import *
  File "/usr/lib/python2.6/site-packages/pyglet/gl/__init__.py", line 510, in <module>
    import pyglet.window
  File "/usr/lib/python2.6/site-packages/pyglet/window/__init__.py", line 1684, in <module>
    gl._create_shadow_window()
  File "/usr/lib/python2.6/site-packages/pyglet/gl/__init__.py", line 494, in _create_shadow_window
    _shadow_window = Window(width=1, height=1, visible=False)
  File "/usr/lib/python2.6/site-packages/pyglet/window/xlib/__init__.py", line 474, in __init__
    super(XlibWindow, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pyglet/window/__init__.py", line 641, in __init__
    raise NoSuchConfigException('No standard config is available.')
pyglet.window.NoSuchConfigException: No standard config is available.
^C
#

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
Laie

Joined: 20 Jan 2008
Posts: 319
Location: Germany

PostPosted: Sun 13 Nov 2011, 10:59    Post subject: Re: Impromptu
Subject description: Needs opengl, Python 2.6 scrolling Html viewer, can be used as a teleprompter
 

Geoffrey wrote:
I threw this together after looking for some form of a teleprompter and not being able to find anything.

Very good idea!! I was looking for such a thing for a long time.

Geoffrey wrote:
I'm using it with lucid 5.2.8

I am running it with dpup exprimo 5.X.9
Download an installation worked, the menu entry is ok.
Geoffrey wrote:
Let me know how it go's, I haven't tried it on anything else, so it may not work for everyone.

I start it, a dialog box says "Now playing Hungarian" but nothing else happens.
What a pity...
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Sun 13 Nov 2011, 11:50    Post subject: Re: Impromptu
Subject description: Needs opengl, Python 2.6 scrolling Html viewer, can be used as a teleprompter
 

Laie wrote:
Geoffrey wrote:
I threw this together after looking for some form of a teleprompter and not being able to find anything.

Very good idea!! I was looking for such a thing for a long time.

Geoffrey wrote:
I'm using it with lucid 5.2.8

I am running it with dpup exprimo 5.X.9
Download an installation worked, the menu entry is ok.
Geoffrey wrote:
Let me know how it go's, I haven't tried it on anything else, so it may not work for everyone.

I start it, a dialog box says "Now playing Hungarian" but nothing else happens.
What a pity...


I just did a fresh frugal install of lucid 5.2.8 to a usb flash drive, installed the NVIDIA drivers from quickpet and python2.6 from the package manager,

downloaded Impromptu from my link installed that and it all works fine, I thought I'd better try it from scratch to be sure that it wasn't something I missed.

But all seems good for lucid 5.2.8, I think it has to be python thats the problem, it does need glx opengl drivers to work, if you have those video drivers

installed maybe get the lucid python 2.6 pet and turn into a sfs so it can be loaded that way, just see if works without breaking anything.
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Sun 13 Nov 2011, 13:04    Post subject:  

Here is a python 2.6 sfs I made from the the lucid pet, you never know it might work http://dl.dropbox.com/s/gfnoh0dss4twt4q/Python-2.6-Lucid_528.sfs

I really hope it does, this app is not to bad, would be great for reading ebooks in full screen. Very Happy

Here's what the readme with the source code says
Code:
 Linux, with the following libraries (most recent distributions will have
  these in a default installation):
    * OpenGL and GLX
    * GDK 2.0 or later (required for loading images)
    * OpenAL or ALSA (required for playing audio)
   
pyglet requires either:

* Python 2.4 with ctypes installed
* Python 2.5 or 2.6

Installation
------------

If you're reading this README from a source distribution, install pyglet
with::

    python setup.py install

There are no compilation steps during the installation; if you prefer, you can
simply add this directory to your PYTHONPATH and use pyglet without
installing it.


it may also be just a matter of putting pyglet in the correct location to suit the version of python being used , there is no real install do it just has to be in the path.

Last edited by Geoffrey on Thu 14 Sep 2017, 02:28; edited 2 times in total
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Mon 14 Nov 2011, 03:02    Post subject:  

I have this working in Fluppy 013, running on an Acer Aspire 5310, it only needs the Python2.6-pygtk.sfs, the video drivers built into Fluppy 013 seem to be enough.



Geoffrey
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Mon 14 Nov 2011, 05:07    Post subject:  

I have this working in Dpup Exprimo version 5.X.9, running on an Acer Aspire 5310, it only needs the same Python as Fluppy 013, Python2.6-pygtk.sfs.

I tried the python from the package manager but had no luck with it, when Impromptu was run it couldn't find python.



Geoffrey
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Mon 14 Nov 2011, 09:17    Post subject:  

I have this working in Slacko Puppy version 5.3, running on an Acer Aspire 5310, I only updated the video driver with MESA and used the same Python as Fluppy 013, Python2.6-pygtk.sfs.

There seems to be a pattern emerging Laughing



Geoffrey
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 915

PostPosted: Tue 15 Nov 2011, 12:57    Post subject:  

Another approach is to use "Impress" as a teleprompter. You can select text objects and animate them with scrolling.

Cheers,
s
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Tue 15 Nov 2011, 21:23    Post subject:  

seaside wrote:
Another approach is to use "Impress" as a teleprompter. You can select text objects and animate them with scrolling.

Cheers,
s


"Impress" that's in OpenOffice isn't it, I don't have that so I can't check it out, would be a lot larger.

Impromptu is ok for displaying text, plain text files can be used instead of html's

I like this pyglet, the source code for it has examples that run 3d graphics and a game, if avbin ffmpeg wrapper is added,
then it can play video files and sound positioning, looks interesting.

Geoffrey
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Sun 20 Nov 2011, 09:52    Post subject:  

I have this working in Three-Headed Dog, running on my desktop computer using nvidia-285.05.09-k2.6.37.6-s.pet and Python from the package manager,
I think I read that the nvidia drivers don't work in the Three-Headed Dog, it seems that they do, the video card is a GeForce 8600 GT.

Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2307
Location: Queensland

PostPosted: Tue 06 Dec 2011, 08:44    Post subject:  

I have this working in Racy 5.2.2, running on my desktop computer using Python with the devx loaded, the video card is a GeForce 8600 GT using the NVIDIA-290.10-k3.0.7.pet from gray's Racy NOP which Impromptu also runs in.

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
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.1122s ][ Queries: 12 (0.0219s) ][ GZIP on ]