[libreoffice-users] Persona: LibO 5.4.3.1

2017-11-09 Thread jonathon
All:

Is it just me, or do Persona not install with LibO 5.4.3.1?

Thus far I've tried:
* Registry modification: manually editing
"/home/toki/.config/libreoffice/4/user/registrymodifications.xcu";

* Expert Configuration Setup: ">Tools >Options >LibreOffice >Advanced
>Expert Configuration";

* Standard configuration: ">Tools >Options >LibreOffice
>Personalisation. Both Preinstalled, and Own Theme options;

LibO data:
Version: 5.4.3.1
Build ID: 32c8895c6cae21571f364dbb059f419a743ee44d
CPU threads: 2; OS: Linux 4.7; UI render: default; VCL: gtk2;
Locale: en-ZA (en_US.UTF-8); Calc: group
See Log:
https://hub.libreoffice.org/git-core/32c8895c6cae21571f364dbb059f419a743ee44d


jonathon


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: resolved (Re: getting LO source)

2017-11-09 Thread jonathon
On 11/09/2017 05:28 PM, Alexander Thurgood wrote:

> Errm, seriously, not really, other than perhaps just focussing on one area of 
> the code.

:(

> thereby making it difficult to have increasing in-depth knowledge and 
> insights. That knowledge kind of tends to be assumed.

Not to mention that there used to be a great set of developer
documentation.  I didn't grab it back when it was available, thinking it
would always be available, and today it is nowhere to be found.

> I would probably need several lifetimes to become proficient enough in 
> programming in C++

At least it isn't APL.

I'm delving into the "expert configuration" in ">Tools >LibreOffice
>Advanced >Open Expert Configuration", trying to figure out how to get
LibO to behave the way I want it to.
And to find out what those options do, I have to study the source.

jonathon


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: resolved (Re: getting LO source)

2017-11-09 Thread James Knott
On 11/09/2017 12:28 PM, Alexander Thurgood wrote:
> Le 09/11/2017 à 16:30, jonathon a écrit :
>
>  Any pointers on how to minimise the pain of reading the code?
>
> Aspirin ;-)

May the source be with you.  ;-)

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: video issue -- thinking out loud and could do with help please

2017-11-09 Thread Alexander Thurgood
Le 09/11/2017 à 15:36, Mike Scott a écrit :

> 
> 
> I think the code is badly structured - the grabFrame method has no way
> of specifying an offset. It should have, and whatever runs the slide
> displaying should pick the first or last as appropriate.
> 
> 
> 
> Is it really so simple? And do the dev's lurk here at all, or do I need
> to stick this on the dev list??
> 


Contributions gratefully received :-) It may be that no one ever really
looked at the problem or found the time to go back to that part of the code.

Best bet would be to introduce yourself on the dev list. They will ask
you to contribute the code via gerrit, the code submission tool that the
project uses and send in a mail about your contributions being released
under the relevant licenses the project uses. It will undergo a review
and if deemed acceptable and advantageous, which it seems to be from
what you relate, get accepted into the master source branch. If you're
up for introducing extra functionality to let the user choose where they
want to pick the frame from then even better :-)


Alex


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: resolved (Re: getting LO source)

2017-11-09 Thread Alexander Thurgood
Le 09/11/2017 à 16:30, jonathon a écrit :

 Any pointers on how to minimise the pain of reading the code?

Aspirin ;-)

Errm, seriously, not really, other than perhaps just focussing on one
area of the code. I tend to mostly focus on the database stuff, and have
recently started looking at memory leaks with the aid of Instruments.app
on MacOS, which does facilitate somewhat the fingerpointing and blaming
game for the bits of code it considers "wrong". Not that it always gets
it right mind.

With the database code, I started occasionally perusing the driver
classes when I was still using OpenOffice.org and trying to understand
how they were constructed and how they were intended to function. I held
the vain hope of developing my own driver class at the time (but for
which db backend I fail to recall now), realising very quickly that it
was out of my league, so I just kept opening up the cxx files and
scrolling through them, and then forgetting most of what I'd found
interesting as soon as I'd closed it. At the time, I was also subscribed
to the dba mailing list for OpenOffice.org where the devs from Sun
frequently intervened to explain this or that function, and parts of the
API. Unfortunately, the dba code side of things is heavily
undersubscribed in the behemoth project that is LibreOffice today in
terms of human investment, there is but one dba code caretaker who has a
dayjob other than helping out with LO, and a few other occasional
committers, mostly people working for Linux distros to fix bugs, or
GSOC-ing, thereby making it difficult to have increasing in-depth
knowledge and insights. That knowledge kind of tends to be assumed.


I would probably need several lifetimes to become proficient enough in
programming in C++ to be able to even dream of understanding each time
what is going on. I'd say, even with the amateur knowledge I have
currently, it has taken me more than 10 years of repeated blank staring
at lines of code to even start to comprehend, sadly...

Anyway, we are seriously digressing from the initial topic, so I'll stop
here...


Alex


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: resolved (Re: getting LO source)

2017-11-09 Thread jonathon
On 11/09/2017 09:04 AM, Alexander Thurgood wrote:

> As a non-developer trying to read the code for bug hunting, it has given me 
> migraines on many an occasion.

Any pointers on how to minimise the pain of reading the code?

jonathon



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: video issue -- thinking out loud and could do with help please

2017-11-09 Thread Mike Scott

On 09/11/17 10:12, Alexander Thurgood wrote:

Le 09/11/2017 à 10:02, Mike Scott a écrit :

Scott,

You might have better luck posting your question to the developer
mailing list, or directly on the dev IRC channel.

Alex




Maybe I'll go there, as I seem to have found a workable answer. Not that 
I understand fully why it works; nor is it a complete and proper solution.


It's all down to "magic numbers". Rule two of code writing - never, 
ever, embed literal numbers in the depths of your code.


Well, there's a file mediawindow.cxx that has a grabFrame method that (I 
assume) is what's called by whatever displays the static placeholder.


This has embedded within it a so-called default frame - which is at 3.0 
seconds or half the media length. With no way that the caller can 
request anything else.


So, on the basis that showing the first frame is better than a mid-media 
frame (make the video fade from/to black for example), I simply set the 
magic constant to 0 and recompiled.


Bingo.

The slide fades in to show the first frame, and the video starts from 
there. Exactly what the doctor ordered. What I don't understand is that 
when the video finishes, the last frame is now displayed. That too is 
exactly what's needed -- but I haven't a clue why: I expected it to jump 
back to the first.



I think the code is badly structured - the grabFrame method has no way 
of specifying an offset. It should have, and whatever runs the slide 
displaying should pick the first or last as appropriate.




Is it really so simple? And do the dev's lurk here at all, or do I need 
to stick this on the dev list??





--
Mike Scott (unet2  [deletethis] scottsonline.org.uk)
Harlow Essex England
"The only way is Brexit" -- anon.

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] video issue -- thinking out loud and could do with help please

2017-11-09 Thread Cley Faye
2017-11-09 10:02 GMT+01:00 Mike Scott :

> OK. I'm well out of my depth, but this problem has been around too long
> unfixed and it needs fixing. If I 'think out loud' here, maybe others could
> chip in? Sorry this is a bit lengthy.
>
> The problem: a video on an Impress slide starts and finishes with an
> inappropriate frame displayed. I've made a series of test videos, the
> frames simply containing the frame number from 0N-1, and in a selection
> of formats (.mp4, .flv and ".avi") using avconv. I then embed that video
> into a slide using Insert|Audio or Video.
>
>

> A placeholder frame from the video is displayed during editing. This is a
> frame from within the video, but it isn't always the same one.
>


> The big deal-breaker is that this placeholder frame is shown during the
> slide show when the slide appears and before the video plays (a long time
> if there's a slow transition), and also when the video has finished. This
> means at the very least an annoying flicker at the start, and a usually
> totally inappropriate ending.
>


> Sorry that's so long, but I think the symptoms need documenting somewhere.
> Any thoughts at all would be most welcome - thanks.


​Some thoughts about this.
Inserting video is finicky. At least your problem isn't that it randomly
stop working sometimes or that some formats are unsupported. These two
issues alone pushes a lot of people to simply have their video file at hand
during presentation, and switch to that instead of embeding it, which in
turns means that less people embed video, so issues are harder to diagnose,
etc.

About the thumbnail: on most of my (not so thorough) tests, LibreOffice
always showed the first frame as the preview, so it was not an issue. My
version is 5.3.1.2, but I'm afraid the preview picture is more a matter of
OS and media package than LibreOffice itself.
An "immediate" solution would be to surround your slides with video, with
slides with static images and no transition.

Here's what I did:
- Create a presentation with three slides: dummy1, video, dummy2
- Have long transitions on them. This shows that going from the video slide
to the dummy2 slide, the video preview image (in my case the first image of
the video) shows during the transition, which is not good
- Add a slide after the video with no transition. Place a capture of the
video's last frame at the exact same place the video should be (using
placement properties it's quite easy, even if tedious)

This way, when I move to the next slide after the video, the transition
looks smooth. I suppose the same thing could be done before the slide to
show the correct first frame in every case. One last issue I found there is
that the video flicker slightly when it starts playing; again, this is
probably OS/Library dependant.

This is obviously not an ideal solution. Ideally, you could specify on
which frame/timestamp the video should initially be, or simply just always
display the first frame one entering, and the current frame on exiting the
slide. Maybe there's even a suggestion about this, but obviously it' not
high priority since it's been around for so long.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: video issue -- thinking out loud and could do with help please

2017-11-09 Thread Alexander Thurgood
Le 09/11/2017 à 10:02, Mike Scott a écrit :

Scott,

You might have better luck posting your question to the developer
mailing list, or directly on the dev IRC channel.

Alex


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: resolved (Re: getting LO source)

2017-11-09 Thread Mike Scott

On 09/11/17 09:04, Alexander Thurgood wrote:

Le 08/11/2017 à 10:52, Mike Scott a écrit :

Hi Mike,


Having established it would build and run (with the same video problem,
incidentally), I finally looked at the sources. Now I begin to see why
changes take so long not a comment in sight for one thing, and a
spider's web of complexity. Sheesh! Nightmarish.



The lack of significant comments stems from the original source code of
OpenOffice.org when it was released, which itself came from StarOffice
(after Sun bought the code). Most of the existing comments at the time
were also in German, and particularly concise or absconse.

Unfortunately, at least for the occasional person wanting to dive into
the code, heavy commenting does not seem to be widely adopted amongst
the currently active open source developers contributing to the project.
One might also bear in mind that the LibreOffice code base is huge -
certainly larger in lines of code than any other current open source
project.

As a non-developer trying to read the code for bug hunting, it has given
me migraines on many an occasion.


Thanks. I'd forgotten the original would have been German (and 
StarOffice was actually my first foray into a 'proper' WP -- iirc Sun 
were giving it away at the time.)


Probably time this thread died off, the 'source' issue being resolved 
and purely down to my failure.


I've started another thread on the particular video issue I'm concerned 
with. If anyone can shed light there to help getting it resolved, I 
think not a few users would be grateful!


Thanks again to all who've replied here.



--
Mike Scott (unet2  [deletethis] scottsonline.org.uk)
Harlow Essex England
"The only way is Brexit" -- anon.

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: resolved (Re: getting LO source)

2017-11-09 Thread Alexander Thurgood
Le 08/11/2017 à 10:52, Mike Scott a écrit :

Hi Mike,

> Having established it would build and run (with the same video problem,
> incidentally), I finally looked at the sources. Now I begin to see why
> changes take so long not a comment in sight for one thing, and a
> spider's web of complexity. Sheesh! Nightmarish.
> 

The lack of significant comments stems from the original source code of
OpenOffice.org when it was released, which itself came from StarOffice
(after Sun bought the code). Most of the existing comments at the time
were also in German, and particularly concise or absconse.

Unfortunately, at least for the occasional person wanting to dive into
the code, heavy commenting does not seem to be widely adopted amongst
the currently active open source developers contributing to the project.
One might also bear in mind that the LibreOffice code base is huge -
certainly larger in lines of code than any other current open source
project.

As a non-developer trying to read the code for bug hunting, it has given
me migraines on many an occasion.


Alex


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] video issue -- thinking out loud and could do with help please

2017-11-09 Thread Mike Scott
OK. I'm well out of my depth, but this problem has been around too long 
unfixed and it needs fixing. If I 'think out loud' here, maybe others 
could chip in? Sorry this is a bit lengthy.


The problem: a video on an Impress slide starts and finishes with an 
inappropriate frame displayed. I've made a series of test videos, the 
frames simply containing the frame number from 0N-1, and in a 
selection of formats (.mp4, .flv and ".avi") using avconv. I then embed 
that video into a slide using Insert|Audio or Video.


A placeholder frame from the video is displayed during editing. This is 
a frame from within the video, but it isn't always the same one. It 
depends on the length and format and frame-rate of the video. So, for 
example, using 15fps, a 50-frame flv video shows the frame #24 (the 25th 
frame, starting at #0), A 35-frame video shows #12, and a 25-framer 
shows #0. a long mp4 shows #30, a 10-frame mp4 shows #5, with a 
selection between. An avi just shows a question mark, presumably because 
something can't seek into the video (supposition!).


For comparison, a 1500-frame clip at 15fps starts on frame #30; at 
25fps, it starts on frame #75.


Much the same also applies to LO6's property page video preview - with 
the addition that when the seek slider is tweaked, the placeholder is 
also shown while the slider is being moved (it usually settles down to 
show a reasonable frame, not always.)




The big deal-breaker is that this placeholder frame is shown during the 
slide show when the slide appears and before the video plays (a long 
time if there's a slow transition), and also when the video has 
finished. This means at the very least an annoying flicker at the start, 
and a usually totally inappropriate ending.




Versions don't seem important - it's been there at least since LO3, and 
is still in LO6. (And, if I recall, even since OOo) FWIW I'm using 5.1.6.2


I'm using linux Mint; I can't check now, but from memory the same sort 
of issue used to arise on Windows. So presumably the issue lies 
somewhere in the LO source code, and not for example the gstreamer library.


So, I've been looking particularly at the avmedia directory; I have 
however failed miserably to find anything at all that might relate to 
the above observations. (Not helped by my decidedly dated experience of 
C++ :-{ ). If anyone has any experience/knowledge/insights into 
whereabouts to look, that would be great.


Sorry that's so long, but I think the symptoms need documenting 
somewhere. Any thoughts at all would be most welcome - thanks.




--
Mike Scott (unet2  [deletethis] scottsonline.org.uk)
Harlow Essex England
"The only way is Brexit" -- anon.

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted