Hi Dick,
This sounded like an interesting problem so I took a quick peek at the
Totem code.
It turns out that it'll be pretty easy if you don't mind checking out
and building Totem from source.
There's source available here:
https://github.com/GNOME/totem
In the file, totem-private.h, on line 173, is where the "seek back"
amount is defined, as SEEK_BACKWARD_OFFSET. If you change that from -15
to -2 that should theoretically do what you want.
https://github.com/GNOME/totem/blob/master/src/totem-private.h
Regards,
Jason
On 03/13/2014 08:27 AM, Dick Steffens wrote:
I run Ubuntu 12.04 with Gnome.
When last I wrote to this list it was to find pointers to GUI
development tools so I could take a program written in Python that
plays audio files with features suitable for use in transcribing and
add the ability to look at video files with the same features. (The
principle feature is to automatically backspace a given amount when
pausing.) Most of my work is audio only, but occasionally I get a
video recording to transcribe. For those recordings I run avconv and
extract an mp3 file from the video file. But sometimes there's useful
information in the video. In those cases I also run Totem Movie Player.
As I was working along, looking for the right GUI environment to use,
I realized that Totem Movie Player already does what I want, with the
exception of auto backspace. It already responds to my foot pedal for
play/pause. It also has a backspace concept built in, but the values
are way too long to be useful for transcription (15 seconds for the
left arrow button, and 5 seconds for shift left arrow -- I need no
more than 2 seconds). I'm aware that plugins can be written for Movie
Player, and I have the documentation:
https://developer.gnome.org/totem/3.0/
and
http://asanka-abeyweera.blogspot.com/2012/03/writing-plugins-for-totem-movie-player.html
What I don't know is how to change the pause event so that I can add
an automatic backspace of a different amount from the defaults.
The other thought I had was to rewrite my foot pedal program so that
instead of sending <ctrl><space> I'd have it send something not used
by Movie Player, and write the plugin to handle that event.
In any case, what I need are some examples of plugins that handle
events in Movie Player. Has anyone written a plugin for Totem Movie
Player? Or, does anyone have any recommendations for samples of event
handling for a Movie Player plugin?
Thanks.
_______________________________________________
Portland mailing list
[email protected]
https://mail.python.org/mailman/listinfo/portland