Re: [gentoo-user] OT: Avi-player diplaying the current frame counter while playing ?
On 05/26 02:29, wabe wrote: > tu...@posteo.de wrote: > > > Hi, > > > > currentlu I am playing around with Blender animations. > > > > To sync certain movements of objects to other objects > > I need the exact frame number, at which "something > > happens" ;) > > > > The clips are of the avi-format but they are of non > > standard resultions. MPlayer does not play them > > ("no audio found" and that's it) but mpv has no > > problem with them. > > But mpv only prints the perceantage of how much > > is played already (I cant convice mpv otherwise...) > > > > Is there a way to instruct mpv to print the current > > frame count while playing? > > I read the mpv man page and found a solution. > > > Create a file ~/.mpv/input.conf with the content > > i show-text ${estimated-frame-number} > > When playing a video you can now press the i-key to see the > current framenumber. > > But manpage says about the estimated-frame-number property: > "This is only an estimate. (It's computed from two unreliable > quantities: fps and possibly rounded timestamps.) > > I've tested it with some videos that I recorded with my > smartphone and it seemed that the printed frame number was > always correct. > > > Another thing that it maybe useful: > > If you start mpv from command line with these two options > > --osd-level=3 --osd-fractions=yes > > then the OSD as well as the console output shows you the > current timestamp with milliseconds. > > If you don't wanna start mpv from command line then you can > also add these two options to ~/.mpv/config > If you do this you need a line for every option and you may > not include the double hyphens. > > > Btw.: If you press the . key while playing a video, mpv will > switch to single frame mode. Every time you press this key > again, mpv shows the next frame. > You can use the space bar to continue/pause the video. > > -- > Regards > wabe > Hi Wabe, thanks for your help and search!!! :) Before I sent my post I looked through the mpv manpages and searched for keywords like "frame counter", "frames", "position" etc. and either overlooked what you have found or it makes not "click" in my head since it seems now that I did not fully understood what I saw (I am no native speaker)... I will tryt out that! Cheers Meino
Re: [gentoo-user] OT: Avi-player diplaying the current frame counter while playing ?
tu...@posteo.de wrote: > Hi, > > currentlu I am playing around with Blender animations. > > To sync certain movements of objects to other objects > I need the exact frame number, at which "something > happens" ;) > > The clips are of the avi-format but they are of non > standard resultions. MPlayer does not play them > ("no audio found" and that's it) but mpv has no > problem with them. > But mpv only prints the perceantage of how much > is played already (I cant convice mpv otherwise...) > > Is there a way to instruct mpv to print the current > frame count while playing? I read the mpv man page and found a solution. Create a file ~/.mpv/input.conf with the content i show-text ${estimated-frame-number} When playing a video you can now press the i-key to see the current framenumber. But manpage says about the estimated-frame-number property: "This is only an estimate. (It's computed from two unreliable quantities: fps and possibly rounded timestamps.) I've tested it with some videos that I recorded with my smartphone and it seemed that the printed frame number was always correct. Another thing that it maybe useful: If you start mpv from command line with these two options --osd-level=3 --osd-fractions=yes then the OSD as well as the console output shows you the current timestamp with milliseconds. If you don't wanna start mpv from command line then you can also add these two options to ~/.mpv/config If you do this you need a line for every option and you may not include the double hyphens. Btw.: If you press the . key while playing a video, mpv will switch to single frame mode. Every time you press this key again, mpv shows the next frame. You can use the space bar to continue/pause the video. -- Regards wabe
Re: [gentoo-user] tmp on tmpfs
On Wed, 24 May 2017 15:45:45 +0300 Andrew Savchenkowrote: > - smaller CPU overhead: not every i/o is being compressed, e.g. if > there is sill enough RAM available it is used without compression > overhead as usual, but if memory is not enough, swapped out pages > are being compressed instead of swapping out to disk; I found the opposite problem somehow. CPU started becomming frequently pegged in zswap for no obvious reason, while the underlying IO that zswap was doing was only measurable in kb/s , far, far, far below the noise thresholds and by no means a strain on even my crappy spinning rust based swap. And to add to that, zswap introduced general protection faults and kernel panics. So nah, I'm glad I turned that off, it was a huge mistake. pgplFWP7n2s17.pgp Description: OpenPGP digital signature
Re: [gentoo-user] ...doubled updates?
On Thu, 25 May 2017 04:36:47 +0200 tu...@posteo.de wrote: > Thanks for any info in advance! If it helps ... "emerge" is the process of performing steps: - fetch - prepare - configure - compile - test - write staging image These steps can all happen independently without affecting other packages. the "install" is the process of deploying the staged image to your OS and updating the vdb. This process typically requires locking and multiple installation stages don't typically happen concurrently. But if it helps, pretend that "emerge" means "compiling", and it becomes much clearer. > Compiling (1 of 10) sys-apps/keyutils-1.5.10::gentoo > Installing (1 of 10) sys-apps/keyutils-1.5.10::gentoo :) pgpTkrY0PBgok.pgp Description: OpenPGP digital signature
Re: [gentoo-user] OT: Avi-player diplaying the current frame counter while playing ?
tu...@posteo.de wrote: > Hi, > > currentlu I am playing around with Blender animations. > > To sync certain movements of objects to other objects > I need the exact frame number, at which "something > happens" ;) > > The clips are of the avi-format but they are of non > standard resultions. MPlayer does not play them > ("no audio found" and that's it) but mpv has no > problem with them. > But mpv only prints the perceantage of how much > is played already (I cant convice mpv otherwise...) > > Is there a way to instruct mpv to print the current > frame count while playing? > Are there other players known to do that? Check out cinelerra. It is a non-linear video editor and so it also plays videos and shows the exact timestamp or framenumber (you can set this in preferences). But cinelerra is a very complex software and thus maybe not what you are looking for. Avidemux can also be used as a video player but IIRC it can't show framenumbers but only the exact timestamp. -- Regards wabe
[gentoo-user] Re: Puzzled by zswap [Was: tmp on tmpfs]
Ian Zimmermanwrote: > > 1. How does it know which swap device to use as backing store, if any? My understanding is that zswap is lower level: only in the moment when a page _would_ be stored, the zswap code is called. That's why activating zsawp has absolutely no effect if there is no swap device: it simply is never called in this case. Concerning your other questions: The interface has changed several times. I guess the documentation is simply not up-to-date anymore...
[gentoo-user] Puzzled by zswap [Was: tmp on tmpfs]
On 2017-05-24 19:05, Kai Krakow wrote: > To get in line with Rich Freeman: I didn't want to imply that zswap > only works with swap, neither that tmpfs only works with swap. Both > work without. But if you want to put some serious amount of data into > tmpfs, you need swap as a backing device sooner or later. Looking at zswap, I have several questions (even after reading linux/Documentation/vm/zswap.txt). 1. How does it know which swap device to use as backing store, if any? Clearly at boot time no swap configuration exists, even if initrd/initramfs is used, which here it is not. So when the kernel sees zswap.enable=1 in the command line, what happens? 2. The doc says it can be turned on at runtime by means of /sys/module/zswap/parameters/enabled. But kconfig doesn't make it possible to build the support as a module, only built-in, and so it is not surprising that this path doesn't exist. 3. It seems to require zbud to also be turned on, but this is not enforced by kconfig. Is this a bug or what? 4. Quoting: Zswap seeks to be simple in its policies. Sysfs attributes allow for one user controlled policy: * max_pool_percent - The maximum percentage of memory that the compressed pool can occupy. Does this mean this is another (hypothetical) node in /sys/module/zswap/parameters/ ? -- Please *no* private Cc: on mailing lists and newsgroups Personal signed mail: please _encrypt_ and sign Don't clear-text sign: http://primate.net/~itz/blog/the-problem-with-gpg-signatures.html
Re: [gentoo-user] [SOLVED] General ODF error
the...@sys-concept.com wrote: > On 05/24/2017 07:23 PM, Dale wrote: >> the...@sys-concept.com wrote: >>> I only get this error when try to open the file with Gnumeric. >>> LibraOffice is reading the file/spreadsheet OK, though slow. >>> >>> When I hit OK I can Gnumeric can read the file OK. >>> I went through the spreadsheet (deleted some) but still getting same >>> error with Gnumeric. >> Just a thought. Does this happen with only one file or any file created >> the same way? If it's just one file, could it be that the file is >> somehow corrupted? Maybe export then import it and save it as a new >> name and test? >> >> Just a thought. >> >> Dale >> >> :-) :-) > Thanks Dale, it was an excellent idea. > Exporting/saving the spreadsheet file as MS xls solved the problem. > > When I open the file again with Gnumeric it pointed out an error, to one > particular spreadsheet cell (specifically some http link). > > I save it back as "ods" extension and all errors are gone (fixed). > With Gnumeric I've noticed that the same file with xls - extension > (107kb files size) is much faster to open than ods (56kb size). > > -- > Thelma > > And to think, I thought about not posting my thoughts because it sort of sounded silly. One would think if it was corrupt; it wouldn't open at all, give some serious error that points to the problem or something else obvious. Guess not. I guess bit rot causes odd things to happen. ;-) It seems anytime I am considering unsubscribing from Gentoo mailing lists, I help someone which wants me want to hang around a while longer. Glad it helped. Dale :-) :-)
Re: [gentoo-user] Re: tmp on tmpfs
On Thu, May 25, 2017 at 12:28 PM, J. Roeleveldwrote: > > Not sure how long ago this was. I'm planning on redoing the whole laptop in > the near future anyway. > > If anyone knows of a better way (that works without TPM) I would like to hear > about it. > I'd read up on LUKS. That seems to be the way everybody is doing stuff like this today. It probably isn't much different in security but it is more standard, which means more convenience when booting from rescue disks and so on. I bet with something like dracut you can probably configure it more easily as well. However, I've not looked into the details. -- Rich
Re: [gentoo-user] [SOLVED] General ODF error
On 05/24/2017 07:23 PM, Dale wrote: > the...@sys-concept.com wrote: >> >> I only get this error when try to open the file with Gnumeric. >> LibraOffice is reading the file/spreadsheet OK, though slow. >> >> When I hit OK I can Gnumeric can read the file OK. >> I went through the spreadsheet (deleted some) but still getting same >> error with Gnumeric. > > Just a thought. Does this happen with only one file or any file created > the same way? If it's just one file, could it be that the file is > somehow corrupted? Maybe export then import it and save it as a new > name and test? > > Just a thought. > > Dale > > :-) :-) Thanks Dale, it was an excellent idea. Exporting/saving the spreadsheet file as MS xls solved the problem. When I open the file again with Gnumeric it pointed out an error, to one particular spreadsheet cell (specifically some http link). I save it back as "ods" extension and all errors are gone (fixed). With Gnumeric I've noticed that the same file with xls - extension (107kb files size) is much faster to open than ods (56kb size). -- Thelma
Re: [gentoo-user] Re: tmp on tmpfs
On May 25, 2017 6:06:45 PM GMT+02:00, Rich Freemanwrote: >On Thu, May 25, 2017 at 10:16 AM, J. Roeleveld >wrote: >> On May 25, 2017 1:04:07 PM GMT+02:00, Kai Krakow > wrote: >>>Am Thu, 25 May 2017 08:34:10 +0200 >>>schrieb "J. Roeleveld" : >>> It is possible. I have it set up like that on my laptop. Apart from a small /boot partition. The whole drive is encrypted. Decryption keys are stored encrypted in the initramfs, which is embedded in the kernel. >>> >>>And the kernel is on /boot which is unencrypted, so are your >encryption >>>keys. This is not much better, I guess... >> >> A file full of random characters is encrypted using GPG. >> Unencrypted, this is passed to cryptsetup. >> >> The passphrase to decrypt the key needs to be entered upon boot. >> How can this be improved? >> > >The need to enter a passphrase was the missing bit here. I thought >you were literally just storing the key in the clear. > >As far as I can tell gpg symmetric encryption does salting and >iterations by default, so you're probably fairly secure. I'm not sure >if the defaults were always set up this way - if you set up that file >a long time ago you might just want to check that, unless your >passphrase is really complex. Not sure how long ago this was. I'm planning on redoing the whole laptop in the near future anyway. If anyone knows of a better way (that works without TPM) I would like to hear about it. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Re: tmp on tmpfs
On Thu, May 25, 2017 at 10:16 AM, J. Roeleveldwrote: > On May 25, 2017 1:04:07 PM GMT+02:00, Kai Krakow wrote: >>Am Thu, 25 May 2017 08:34:10 +0200 >>schrieb "J. Roeleveld" : >> >>> It is possible. I have it set up like that on my laptop. >>> Apart from a small /boot partition. The whole drive is encrypted. >>> Decryption keys are stored encrypted in the initramfs, which is >>> embedded in the kernel. >> >>And the kernel is on /boot which is unencrypted, so are your encryption >>keys. This is not much better, I guess... > > A file full of random characters is encrypted using GPG. > Unencrypted, this is passed to cryptsetup. > > The passphrase to decrypt the key needs to be entered upon boot. > How can this be improved? > The need to enter a passphrase was the missing bit here. I thought you were literally just storing the key in the clear. As far as I can tell gpg symmetric encryption does salting and iterations by default, so you're probably fairly secure. I'm not sure if the defaults were always set up this way - if you set up that file a long time ago you might just want to check that, unless your passphrase is really complex. -- Rich
[gentoo-user] Re: tmp on tmpfs
Mickwrote: > Do either of these reduce the effect of (spinning) drive thrashing and > desktop latency increasing when swapping takes place? I never made any benchmarks. I just heard that some people are using the combination of both to avoid swap altogether (or only have an fallback swap which is used only in emergency situations although swappiness values are kept normal).
Re: [gentoo-user] Re: tmp on tmpfs
On May 25, 2017 1:04:07 PM GMT+02:00, Kai Krakowwrote: >Am Thu, 25 May 2017 08:34:10 +0200 >schrieb "J. Roeleveld" : > >> It is possible. I have it set up like that on my laptop. >> Apart from a small /boot partition. The whole drive is encrypted. >> Decryption keys are stored encrypted in the initramfs, which is >> embedded in the kernel. > >And the kernel is on /boot which is unencrypted, so are your encryption >keys. This is not much better, I guess... A file full of random characters is encrypted using GPG. Unencrypted, this is passed to cryptsetup. The passphrase to decrypt the key needs to be entered upon boot. How can this be improved? -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Re: tmp on tmpfs
On Thu, May 25, 2017 at 7:04 AM, Kai Krakowwrote: > Am Thu, 25 May 2017 08:34:10 +0200 > schrieb "J. Roeleveld" : > >> It is possible. I have it set up like that on my laptop. >> Apart from a small /boot partition. The whole drive is encrypted. >> Decryption keys are stored encrypted in the initramfs, which is >> embedded in the kernel. > > And the kernel is on /boot which is unencrypted, so are your encryption > keys. This is not much better, I guess... > Agree. There are only a few ways to do persistent encryption in a secure way: 1. Require entry of a key during boot, protected by lots of rounds to deter brute force. 2. Store the key on some kind of hardware token that the user keeps on their person. 3. Store the key in a TPM, protected either by: a. entry of a PIN/password of some sort with protections on attempt frequency/total b. verification of the boot path (which should be possible with existing software on linux, but I'm not aware of any distro that actually implements this) If you don't have hibernation then you can just generate a random key on boot, and that is very secure, but your swap is unrecoverable after power-off. Of the options above 3b is the only one that really lets you do this with the same level of convenience. This is how most full-drive encryption solutions work in the Windows world. Chromebooks use a variation on 3a I believe using your google account password as one component of the key and putting it through the TPM to have a hardware component and to throttle attempts. -- Rich
[gentoo-user] OT: Avi-player diplaying the current frame counter while playing ?
Hi, currentlu I am playing around with Blender animations. To sync certain movements of objects to other objects I need the exact frame number, at which "something happens" ;) The clips are of the avi-format but they are of non standard resultions. MPlayer does not play them ("no audio found" and that's it) but mpv has no problem with them. But mpv only prints the perceantage of how much is played already (I cant convice mpv otherwise...) Is there a way to instruct mpv to print the current frame count while playing? Are there other players known to do that? Thanks in advance for any help! Cheers Meino
[gentoo-user] Re: tmp on tmpfs
Am Thu, 25 May 2017 08:34:10 +0200 schrieb "J. Roeleveld": > It is possible. I have it set up like that on my laptop. > Apart from a small /boot partition. The whole drive is encrypted. > Decryption keys are stored encrypted in the initramfs, which is > embedded in the kernel. And the kernel is on /boot which is unencrypted, so are your encryption keys. This is not much better, I guess... > On May 25, 2017 12:40:12 AM GMT+02:00, Rich Freeman > wrote: > >On Wed, May 24, 2017 at 2:16 PM, Andrew Savchenko > > wrote: > >> > >> Apparently it is pointless to encrypt swap if unencrypted > >> hibernation image is used, because all memory is accessible through > >> that image (and even if it is deleted later, it can be restored > >> from hdd and in some cases from ssd). > >> > > > >Yeah, that was my main concern with an approach like that. I imagine > >you could use a non-random key and enter it on each boot and restore > >from the encrypted swap, though I haven't actually used hibernation > >on linux so I'd have to look into how to make that work. I imagine > >with an initramfs it should be possible. -- Regards, Kai Replies to list-only preferred.
Re: [gentoo-user] Re: Re: Qt-4.8.7 bug
On Wednesday 24 May 2017 08:58:53 Peter Humphrey wrote: > On Tuesday 23 May 2017 23:16:48 Frank Steinmetzger wrote: > > I, too, was affected by this. I did the libstdc++ rebuild after > > upgrading > > gcc (some 550 packages) a while back and now I was hit by the Qt > > problem, > > so another rebuild of 500 packages with --changed-deps world. > > > > > > Once finished, it left me with a new problem: > > KDE doesn’t find my beloved terminus font anymore, both on my PC and my > > laptop. It does not show up in any font selection dialog. The same goes > > for GTK applications such as gimp (GTK2) and firefox (GTK3). No Terminus > > anywhere. > > > > Does that ring a bell with anyone? > > Not with me, no, but on looking at System Settings to see, I found all the > icons missing. And the selected single-click-to-open setting was ignored > - not everywhere, just in System Settings. > > Remerging kde-plasma/systemsettings-5.8.6 hasn't helped. Neither has emerge -e world + reboot, so something's broken somewhere. -- Regards Peter
Re: [gentoo-user] Re: tmp on tmpfs
On Thursday 25 May 2017 04:45:24 Martin Vaeth wrote: > Andrew Savchenkowrote: > > For similar needs I found zswap the most suitable, it's so much > > > better than zram: > This sounds like one is an alternative to the other. > This is not the case. It can even make sense to use them together. > For instance, the swap device necessarily required for zswap > can be a zram device. Whether this is advantegous depends on your > usage pattern and swappiness value. Do either of these reduce the effect of (spinning) drive thrashing and desktop latency increasing when swapping takes place? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: tmp on tmpfs
On May 25, 2017 5:38:35 AM GMT+02:00, Kai Krakowwrote: >Am Wed, 24 May 2017 12:30:36 -0700 >schrieb Rich Freeman : > >> On Wed, May 24, 2017 at 11:34 AM, Ian Zimmerman >> wrote: >> > On 2017-05-24 08:00, Kai Krakow wrote: >> > >> >> Unix semantics suggest that /tmp is not expected to survive >reboots >> >> anyways (in contrast, /var/tmp is expected to survive reboots), so >> >> tmpfs is a logical consequence to use for /tmp. >> > >> > /tmp is wiped by the bootmisc init job anyway. >> > >> >> In general I haven't found anything that is bothered by /var/tmp >being >> lost on reboot, but obviously that is something you need to be >> prepared for if you put it on tmpfs. >> >> One thing that wasn't mentioned is that having /tmp in tmpfs might >> also have security benefits depending on what is stored there, since >> it won't be written to disk. If you have a filesystem on tmpfs and >> your swap is encrypted (which you should consider setting up since it >> is essentially "free") then /tmp also becomes a useful dumping ground >> for stuff that is decrypted for temporary processing. For example, >if >> you keep your passwords in a gpg-encrypted file you could copy it to >> /tmp, decrypt it there, do what you need to, and then delete it. >That >> wouldn't leave any recoverable traces of the file. > >Interesting point... How much performance impact does encrypted swap >have? I don't mean any benchmark numbers but real life experience from >your perspective when the system experiences memory pressure? I have my laptop encrypted. Has 16GB and occasionally it does use swap. With it all being on SSD. I am not noticing any slowdowns because of it. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Re: tmp on tmpfs
It is possible. I have it set up like that on my laptop. Apart from a small /boot partition. The whole drive is encrypted. Decryption keys are stored encrypted in the initramfs, which is embedded in the kernel. -- Joost On May 25, 2017 12:40:12 AM GMT+02:00, Rich Freemanwrote: >On Wed, May 24, 2017 at 2:16 PM, Andrew Savchenko >wrote: >> >> Apparently it is pointless to encrypt swap if unencrypted >> hibernation image is used, because all memory is accessible through >> that image (and even if it is deleted later, it can be restored >> from hdd and in some cases from ssd). >> > >Yeah, that was my main concern with an approach like that. I imagine >you could use a non-random key and enter it on each boot and restore >from the encrypted swap, though I haven't actually used hibernation on >linux so I'd have to look into how to make that work. I imagine with >an initramfs it should be possible. > >-- >Rich -- Sent from my Android device with K-9 Mail. Please excuse my brevity.