help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Noob dumb question (extending emacs)


From: Emanuel Berg
Subject: Re: Noob dumb question (extending emacs)
Date: Wed, 20 Oct 2021 10:20:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Louis wrote:

> M-x package-list-packages
>
> To see the available Emacs packages and browse within them
> to find anything you need or like.

You will see ELPA that way and with this MELPA as well:

  (push '("melpa" . "https://melpa.org/packages/";) package-archives)

But there are many more packages out there ...

>> File manager (like Midnight Commander)
>
> C-x C-f
>
> if you need Midnight Commander, then after C-x C-f:
>
> C-x 3

HA! Bravo ...

> M-x irc

That way you get Rcirc ... not recommended, use ERC.

>> random password generator
>
> https://gnu.support/gnu-emacs/packages/rcd-password-el.html

You can improve that code a lot ...

>> Speech recognition
>
> M-x doctor
>
> after a while it starts recognizing speech...

:)

> I use what I made, and I convert videos for Internet:
>
> First: https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
>
> (defun video-mime-type-p (file)
>   "Determines mime type of video"
>   (let ((mime-type (rcd-mime-type file)))
>     (if (string-match "video" mime-type) file nil)))
>
> (defun video2webm-dired ()
>   "Converts any video to webm"
>   (interactive)
>   (let* ((bitrate (read-number "Bitrate: " 300))
>        (videos (dired-get-marked-files))
>        (videos (mapcar 'video-mime-type-p videos))
>        (videos (seq-remove 'null videos))
>        (async-shell-command-buffer 'new-buffer)
>        (command (format "ffmpeg -y -i `?` -c:v libvpx-vp9 -b:v %sk -pass 1 
> -passlogfile `?` -speed 4 -c:a libopus -f webm /dev/null -async 1 -vsync 
> passthrough && ffmpeg -y -i `?` -c:v libvpx-vp9 -b:v %sk -pass 2 -passlogfile 
> `?` -speed 1 -c:a libopus \`?`.webm -async 1 -vsync passthrough && rm 
> `?`-0.log;" bitrate bitrate)))
>     (dired-do-async-shell-command command nil videos)))

:)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]