Re: [gentoo-user] Recommend a simple video editor?

2016-06-10 Thread Dale
Grant Edwards wrote:
> I've got a handful of mp4 video clips (a minute or two each).  All I
> want to do is 
>
>  1) Concatenate them with fade-in at beginning of each clip and fade-out
> at the end of each clip.
>
>  2) Superimpose a title at the beginning for a few seconds.
>
> Can anybody recomment a simple video editor?
>
>  
> So far I've tried Openshot and Cinelerra and niether is usable even
> for my trivial task.
>
> Openshot 2.07
>
>   The native amd64 build segfault a _lot_.  Any time you try to move
>   the "playback head" or whatever it's called it segfaults. Various
>   other GUI operations also cause a segfault.  Sometimes it gets the
>   project file into some broken state and then can't even start up and
>   load the project file without segfaulting.
>
>   Oh, and it "auto saves" periodically, so you can't even rely on it
>   not borking a working project file even though you never clicked
>   "save".
>
>   The AppImage binary at least allows the GUI to work, but it can't
>   render a 5 minute video.  It either aborts part-way through or just
>   locks up burning 100% CPU until you send it a SIGKILL.
>
>   I was finally able to set up the edits using the AppImage binary,
>   then open the project using the native Gentoo binary and render the
>   video.  The resulting video quality was terrible.  The video
>   stuttered, pixellated, and in some spots even appeared to jump
>   forward/backward repeatedly.  That was with the highest quality
>   setting (the output file size was acually significantly larger than
>   the sum of the input file sizes).  Even though the video quality was
>   severly degraded.
>   
>
> Cinelerra 2012 (stable).
>
>   I used Cinelerra for a small project once before, and though it
>   _worked_ I hated every second of it.  The GUI is a nightmare.  It
>   uses some home-made widget set that I find incomprehensible.
>
>   I could probably grit my teeth long enough for this simple task,
>   except Cinelerra seems unable to deal with AAC audio.  It
>   misidentifies as some other PCM format, and all of the imported
>   files just have a short burst of noise at the beginning followed by
>   silence.  Cinelerra also doesn't seem to be able to play the
>   imported.mp4 video files at the proper framerate it's bog-standard 
>   Android phone video: H264 1280x720 30fps, but Cinelerra insists on
>   playing at a some higher frame-rate.
>
> I may try Cinelerra 2014, but I'm not optimistic -- Cinelerra is known
> for it's slow rate of change.
>
>

Here is a couple more video editors that you may want to look into.

Kdenlive  kde-apps/kdenlive

Avidemux  media-video/avidemux 

The first one is KDE based.  Last time I used it, it was large but had
lots of fancy stuff it could do.  The second one has both a gtk and qt
based version.  I'm guessing that is controlled by USE flags.  I seem to
have both of them here.  :/

Maybe one of those will help.

Dale

:-)  :-)




[gentoo-user] Recommend a simple video editor?

2016-06-10 Thread Grant Edwards
I've got a handful of mp4 video clips (a minute or two each).  All I
want to do is 

 1) Concatenate them with fade-in at beginning of each clip and fade-out
at the end of each clip.

 2) Superimpose a title at the beginning for a few seconds.

Can anybody recomment a simple video editor?

 
So far I've tried Openshot and Cinelerra and niether is usable even
for my trivial task.

Openshot 2.07

  The native amd64 build segfault a _lot_.  Any time you try to move
  the "playback head" or whatever it's called it segfaults. Various
  other GUI operations also cause a segfault.  Sometimes it gets the
  project file into some broken state and then can't even start up and
  load the project file without segfaulting.

  Oh, and it "auto saves" periodically, so you can't even rely on it
  not borking a working project file even though you never clicked
  "save".

  The AppImage binary at least allows the GUI to work, but it can't
  render a 5 minute video.  It either aborts part-way through or just
  locks up burning 100% CPU until you send it a SIGKILL.

  I was finally able to set up the edits using the AppImage binary,
  then open the project using the native Gentoo binary and render the
  video.  The resulting video quality was terrible.  The video
  stuttered, pixellated, and in some spots even appeared to jump
  forward/backward repeatedly.  That was with the highest quality
  setting (the output file size was acually significantly larger than
  the sum of the input file sizes).  Even though the video quality was
  severly degraded.
  

Cinelerra 2012 (stable).

  I used Cinelerra for a small project once before, and though it
  _worked_ I hated every second of it.  The GUI is a nightmare.  It
  uses some home-made widget set that I find incomprehensible.

  I could probably grit my teeth long enough for this simple task,
  except Cinelerra seems unable to deal with AAC audio.  It
  misidentifies as some other PCM format, and all of the imported
  files just have a short burst of noise at the beginning followed by
  silence.  Cinelerra also doesn't seem to be able to play the
  imported.mp4 video files at the proper framerate it's bog-standard 
  Android phone video: H264 1280x720 30fps, but Cinelerra insists on
  playing at a some higher frame-rate.

I may try Cinelerra 2014, but I'm not optimistic -- Cinelerra is known
for it's slow rate of change.






Re: [gentoo-user] Recommended way to shut down akonadi

2016-06-10 Thread Mick
On Friday 10 Jun 2016 19:54:44 J. Roeleveld wrote:

> Kde and I would assume Gnome as well have a method of running a script when
> starting and stopping a login session.
> 
> This is usually used for ssh-agent and pgp-agent.

Yes, KDE uses /etc/plasma/shutdown/10-agent-shutdown.sh and I guess gnome 
would have its equivalent, but I think this is only for any daemonised 
services running on the desktop.

I suspect that:

/usr/bin/kdeinit4_shutdown
/usr/bin/kdeinit5_shutdown

are used to shutdown gracefully any KDE apps.


> You could try looking for something similar with the desktop/window manager
> of your choice.

I tried the above shutdown commands but they didn't work.  Unfortunately 
enlightenment does not have anything available to stop desktop applications at 
shutdown.  The dev's advice was to use .xinitrc or equivalent.


> I think .xsession is run only during start and will not 'pause' during the
> session.

Well my confusion is that my .xsession *was* working fine until a couple of 
weeks ago ... and all still works as expected when I run akonadictl stop in a 
terminal before I shut down.  I don't know why the same command behaves 
differently in .xsession now.  :-/

PS. When I just log out there is no delay.  The problem only arises when I 
shutdown.  I wonder if this is something to do with this darn sddm display 
manager ...

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Recommended way to shut down akonadi

2016-06-10 Thread J. Roeleveld
On June 10, 2016 6:05:56 PM GMT+02:00, Mick  wrote:
>On Tuesday 07 Jun 2016 10:13:12 J. Roeleveld wrote:
>
>> On Monday, June 06, 2016 07:22:09 PM Mick wrote:
>> > I do not have KDEPIM systray enabled and I shutdown Kmail before I
>> > shutdown
>> > the PC.
>> > 
>> > These are the relevant processes I see:
>> > 
>> > 29961 ? SNl 0:09 kmail -caption KMail
>> > 29968 ? SNl 0:00 /usr/bin/akonadi_control
>> > 29970 ? SNl 0:08 \_ akonadiserver
>> > 29998 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
>> > akonadi_akonotes_resource akonadi_akonotes_resource_0
>> > 2 ? SN 0:00 \_ /usr/bin/akonadi_archivemail_agent
>> > --identifier akonadi_archivemail_agent
>> > 3 ? SN 0:02 \_ /usr/bin/akonadi_baloo_indexer --identifier
>> > akonadi_baloo_indexer
>> > 30001 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
>> > akonadi_contacts_resource akonadi_contacts_resource_1
>> > 30002 ? SN 0:00 \_ /usr/bin/akonadi_followupreminder_agent --
>> > identifier akonadi_followupreminder_agent
>> > 30007 ? SNl 0:00 \_ /usr/bin/akonadi_imap_resource --identifier
>> > akonadi_imap_resource_0
>> > 30008 ? SNl 0:02 \_ /usr/bin/akonadi_imap_resource --identifier
>> > akonadi_imap_resource_1
>> > 30009 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
>> > akonadi_maildir_resource akonadi_maildir_resource_0
>> > 30010 ? SN 0:00 \_ /usr/bin/akonadi_maildispatcher_agent --
>> > identifier akonadi_maildispatcher_agent
>> > 30013 ? SN 0:00 \_ /usr/bin/akonadi_mailfilter_agent
>> > --identifier akonadi_mailfilter_agent
>> > 30014 ? SN 0:00 \_ /usr/bin/akonadi_migration_agent --identifier
>> > akonadi_migration_agent
>> > 30015 ? SN 0:00 \_ /usr/bin/akonadi_newmailnotifier_agent --
>> > identifier akonadi_newmailnotifier_agent
>> > 30016 ? SN 0:00 \_ /usr/bin/akonadi_sendlater_agent --identifier
>> > akonadi_sendlater_agent
>> > 30023 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
>> > akonadi_vcard_resource akonadi_vcard_resource_1
>> > 30024 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
>> > akonadi_vcard_resource akonadi_vcard_resource_2
>> > 29974 ? SNs 0:00 kdeinit4: kdeinit4 Runnin e
>> > 29976 ? SN 0:00 \_ kdeinit4: klauncher [kdei e
>> > 29979 ? SN 0:00 kdeinit4: kded4 [kdeinit]
>> > 29997 ? SNL 0:00 kdeinit4: kwalletd [kdein e
>> > 30101 ? SNl 0:00 /usr/bin/knotify4
>> > 
>> > after I login and start Kmail.
>> > 
>> > I did try 'killall kdeinit4' but from what I recall it made no
>difference.
>> > Happy to try any suggestions/syntax you may have.
>> 
>> Not able to test as I use KDE.
>> But, you could try:
>> # killall akonadi_control
>> or
>> # akonadictl stop
>> and then wait till akonadictl status shows it's actually stopped:
>> 
>> Akonadi Control: running
>> 
>> 
>> or you could try:
>> 
>> # killall --user
>> 
>> Kind regards,
>> 
>> Joost
>
>I've tried setting in .xsession:
>
>/usr/bin/akonadictl stop
>killall akonadi_control
>killall kdeinit4
>killall kded4
>
>and various combinations thereof, all of which do not fix the problem. 
>I 
>still have to wait for 90 sec on a black screen before X exits and
>shutdown 
>begins.  :-(
>
>If running first '/usr/bin/akonadictl stop' on a terminal allows X to
>exit, 
>why the same incantation in .xsession does not.  :-/
>
>Is there some other file I can add this command to run when I call for
>X to 
>exit?

Kde and I would assume Gnome as well have a method of running a script when 
starting and stopping a login session.

This is usually used for ssh-agent and pgp-agent.

You could try looking for something similar with the desktop/window manager of 
your choice.

I think .xsession is run only during start and will not 'pause' during the 
session.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Re: Change from udev to eudev?

2016-06-10 Thread waltdnes
On Thu, Jun 09, 2016 at 10:18:01PM -0400, Jonathan Callen wrote

> Actually, you no longer need a user-space device manager at all, unless
> you want to be able to access device nodes under /dev as a user that
> isn't UID=0 or has CAP_DAC_OVERRIDE.  The kernel provides a devtmpfs
> filesystem that will have every single device node that udev used to
> create (udev no longer even creates the devices -- it just relies on
> devtmpfs doing so), but most of them will be owned by 0:0 (root:root)
> with permissions 0600; excepting certain nodes like /dev/null or
> /dev/zero, which will be owned by 0:0 with permissions 0666.  One other
> thing that udev does that you might rely on is to create symlinks like
> /dev/disk/by-label/*, which can be used by mount(8) if you specify
> LABEL=foo in /etc/fstab.  The only other things that I'm aware of udev
> doing is to rename network devices and (possibly) to notify other
> applications of changes, somehow (but I'm not sure that it actually does
> that).
> 
> If you don't actually need any of that (you are working on an embedded
> system where you only need root anyway, for instance), then you can just
> use a bare devtmpfs without a device manager changing permissions,
> adding links, etc.

  Interesting.  In the initial panic after the announcement that udev
would be subsumed by systemd, I started what went on to become the
Gentoo wiki entries at...

 https://wiki.gentoo.org/wiki/Mdev
 https://wiki.gentoo.org/wiki/Mdev/Automount_USB
 https://wiki.gentoo.org/wiki/Mdev/Automount_USB/automount

  I wonder if it would be possible to set up a functional multi-user
devtempfs-based system with appropriate permissions being granted in
/etc/sudoers.d/  It would certainly be an interesting project.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Recommended way to shut down akonadi

2016-06-10 Thread Mick
On Tuesday 07 Jun 2016 10:13:12 J. Roeleveld wrote:

> On Monday, June 06, 2016 07:22:09 PM Mick wrote:
> > I do not have KDEPIM systray enabled and I shutdown Kmail before I
> > shutdown
> > the PC.
> > 
> > These are the relevant processes I see:
> > 
> > 29961 ? SNl 0:09 kmail -caption KMail
> > 29968 ? SNl 0:00 /usr/bin/akonadi_control
> > 29970 ? SNl 0:08 \_ akonadiserver
> > 29998 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
> > akonadi_akonotes_resource akonadi_akonotes_resource_0
> > 2 ? SN 0:00 \_ /usr/bin/akonadi_archivemail_agent
> > --identifier akonadi_archivemail_agent
> > 3 ? SN 0:02 \_ /usr/bin/akonadi_baloo_indexer --identifier
> > akonadi_baloo_indexer
> > 30001 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
> > akonadi_contacts_resource akonadi_contacts_resource_1
> > 30002 ? SN 0:00 \_ /usr/bin/akonadi_followupreminder_agent --
> > identifier akonadi_followupreminder_agent
> > 30007 ? SNl 0:00 \_ /usr/bin/akonadi_imap_resource --identifier
> > akonadi_imap_resource_0
> > 30008 ? SNl 0:02 \_ /usr/bin/akonadi_imap_resource --identifier
> > akonadi_imap_resource_1
> > 30009 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
> > akonadi_maildir_resource akonadi_maildir_resource_0
> > 30010 ? SN 0:00 \_ /usr/bin/akonadi_maildispatcher_agent --
> > identifier akonadi_maildispatcher_agent
> > 30013 ? SN 0:00 \_ /usr/bin/akonadi_mailfilter_agent
> > --identifier akonadi_mailfilter_agent
> > 30014 ? SN 0:00 \_ /usr/bin/akonadi_migration_agent --identifier
> > akonadi_migration_agent
> > 30015 ? SN 0:00 \_ /usr/bin/akonadi_newmailnotifier_agent --
> > identifier akonadi_newmailnotifier_agent
> > 30016 ? SN 0:00 \_ /usr/bin/akonadi_sendlater_agent --identifier
> > akonadi_sendlater_agent
> > 30023 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
> > akonadi_vcard_resource akonadi_vcard_resource_1
> > 30024 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
> > akonadi_vcard_resource akonadi_vcard_resource_2
> > 29974 ? SNs 0:00 kdeinit4: kdeinit4 Runnin e
> > 29976 ? SN 0:00 \_ kdeinit4: klauncher [kdei e
> > 29979 ? SN 0:00 kdeinit4: kded4 [kdeinit]
> > 29997 ? SNL 0:00 kdeinit4: kwalletd [kdein e
> > 30101 ? SNl 0:00 /usr/bin/knotify4
> > 
> > after I login and start Kmail.
> > 
> > I did try 'killall kdeinit4' but from what I recall it made no difference.
> > Happy to try any suggestions/syntax you may have.
> 
> Not able to test as I use KDE.
> But, you could try:
> # killall akonadi_control
> or
> # akonadictl stop
> and then wait till akonadictl status shows it's actually stopped:
> 
> Akonadi Control: running
> 
> 
> or you could try:
> 
> # killall --user
> 
> Kind regards,
> 
> Joost

I've tried setting in .xsession:

/usr/bin/akonadictl stop
killall akonadi_control
killall kdeinit4
killall kded4

and various combinations thereof, all of which do not fix the problem.  I 
still have to wait for 90 sec on a black screen before X exits and shutdown 
begins.  :-(

If running first '/usr/bin/akonadictl stop' on a terminal allows X to exit, 
why the same incantation in .xsession does not.  :-/

Is there some other file I can add this command to run when I call for X to 
exit?
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: Foss hardened router?

2016-06-10 Thread James
lee  yagibdah.de> writes:


> https://www.ubnt.com/edgemax/edgerouter-lite/
> 
> It lacks good documentation; otherwise it's a great product.

Huh?  I have one. It SUCKS. It arrived Borked right out of the box. Could
not use menus. It would not update the firmware (many attempts) and the
Vendor refused to RMA the box when it was new and had problems. I've setup
thousands of routers over a lifetime, from dozens of vendors. Never seen
shitty_er documentation in my life. Poor quality control on the low end
products The entire Vyatta code tree, that they use is a mystery, Poor user
documentation and they point you (their tech support) to open forums
and a variety of un-maintained vyatta documentation. Furthermore,
they have deviated from the vyatta tree and refuse to even qualify
how they have deviated. I'm not so sure any robust penetration
testing has occured on their products. Here's one 'gaping hole'::




"Ubiquiti Networks tried to do a good thing and bring Internet connection to
Third World regions this year. Unfortunately, it's just been discovered that
their routers are being actively exploited by hackers to field massive DDoS
attacks, due to an overlooked exploit." 

Google, there are tons of problems with ubnt


no thanks on ERL3. Besides, some gentoo devs, after months of work,
discovered that some of the hardware is unacessible, once your
install embedded linux and the processors is way under-powered, and thus
susceptible to a wide variety of DDoS attacks.


> It's surprising that there are so few routers to choose from, even when
> you don't limit your selection to FOSS.

> On a side note, never buy Cisco, not even used: They won't let you
> download or otherwise obtain a replacement for the damaged firmware
> image (not to mention an update) that came which the device, unless you
> have a support contract with them.  Without the firmware, the device is,
> of course, useless.

Cisco sucks for the small companies, as you have articulated. For large
projects @companies with deep pockets, Cisco cuts prices below 60%, will
write your configs, or tell you ha\ow to replace IOS with carrier grade
linux from a variety of sources. 2 faces of Cisco. Money talks and bulls---
walks as the cisco internal slogan goes.

> No other, not even a cheap manufacturer like TP-Link --- who also makes
> great products and has a responsive support --- doesn't give you any
> issues like that while Cisco simply does not stand behind their
> products and lets their customers down.

Cisco does not write most of their code anymore. Silicon vendors write
much of the code, in a thousand different methodologies based on the
personal prefferences of the overworked engineer that wrote the code.
It the good-old-days of cisco (when they have legions of excellent coders
they re-wrote most all vendor code to internal cisco standards; but that
mantra has vanished, and most of their older-excellent asm/C coders are 
long gone. Yep cisco is a well-spring of buggy/shitty codes written
mostly by hardware EEs. Dont believe me? Find a disgruntled cisco
coder and get them drunk at the Bar (and promise them a better job).


Yes there is an opportunity here for gentoo-hardened images, including
stage-4 for a default router setup and the user can just add a few
packages. It's a dam shame, the state of router affairs. I have quite a few
personal friends that code. Offense is where the money is
Defense sucks in the coding world, and the attrophy is getting worse.
Kids learn on defense and switch to offense, to make the big bucks.
YMMV.

James