Impromptu

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

Impromptu

#1 Post by Geoffrey »

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.
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_g ... _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






Image
Last edited by Geoffrey on Thu 14 Sep 2017, 05:43, edited 2 times in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

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: Select all

# ./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
#
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Laie
Posts: 318
Joined: Sun 20 Jan 2008, 18:42
Location: Germany

Re: Impromptu

#3 Post by Laie »

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...

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

Re: Impromptu

#4 Post by Geoffrey »

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.

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#5 Post by Geoffrey »

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 ... id_528.sfs

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

Here's what the readme with the source code says

Code: Select all

 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, 06:28, edited 2 times in total.

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#6 Post by Geoffrey »

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.

Image

Geoffrey

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#7 Post by Geoffrey »

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.

Image

Geoffrey

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#8 Post by Geoffrey »

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 :lol:

Image

Geoffrey

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#9 Post by seaside »

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

Cheers,
s

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#10 Post by Geoffrey »

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

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#11 Post by Geoffrey »

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.

Image

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#12 Post by Geoffrey »

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.

Image

Post Reply