emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org and multimedia (tips?)
@ 2022-03-17 22:44 Juan Manuel Macías
  2022-03-18 14:40 ` Max Nikulin
  2022-05-05  1:14 ` TRS-80
  0 siblings, 2 replies; 4+ messages in thread
From: Juan Manuel Macías @ 2022-03-17 22:44 UTC (permalink / raw)
  To: orgmode

Hi all,

I've been trying for a while to use Org also to store and org-anize the
data of my music and video files, so that I can conveniently access them
via helm-org-ql and play them using EMMS. I was wondering if anyone is
trying this too, and thought maybe it would be nice to share tips and
hacks.

What I do is quite simple and rudimentary. For example, I have all my
music files stored on a hard drive on my Raspberry. As a media server I
use GNUMP3d, which is pretty clunky and outdated, but it works fine and
is very easy for me to administer. GNUMP3d serves a local web page with
the list of titles and artists. I convert that web to an Org node using
org-web-tools (https://github.com/alphapapa/org-web-tools), and some
extra elisp to clean up inconsistencies and format everything so that
each artist/title is a sub-tree. The process is not quite fine-tuned: I
have to see how labels and properties could be added automatically:
music gender, year, etc. I have also defined a new type of link to be
able to play the content (*.m3u) via EMMS[1], and I have also added a new
action to helm-org-ql. Finally, in another section I am also storing
links to radio stations, TV, single songs (captured with org-capture),
etc. I have also found 'sacad' useful for downloading the cover art
(https://github.com/desbma/sacad).

This is my system for organizing my media files in Org. If anyone is
interested, I can expand on specific details. And here, a couple of
screenshots:

https://i.imgur.com/NKybgPV.png

https://i.imgur.com/DtfoyZl.jpg

[1]
#+begin_src emacs-lisp
  (org-link-set-parameters
   "url-media"
   :follow (lambda (path) (emms-play-url path))
   :face '(:foreground "chocolate" :weight bold :underline t))
#+end_src

Best regards,

Juan Manuel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Org and multimedia (tips?)
  2022-03-17 22:44 Org and multimedia (tips?) Juan Manuel Macías
@ 2022-03-18 14:40 ` Max Nikulin
  2022-03-19 11:13   ` Juan Manuel Macías
  2022-05-05  1:14 ` TRS-80
  1 sibling, 1 reply; 4+ messages in thread
From: Max Nikulin @ 2022-03-18 14:40 UTC (permalink / raw)
  To: emacs-orgmode

On 18/03/2022 05:44, Juan Manuel Macías wrote:
> 
> What I do is quite simple and rudimentary. For example, I have all my
> music files stored on a hard drive on my Raspberry. As a media server I
> use GNUMP3d, which is pretty clunky and outdated, but it works fine and
> is very easy for me to administer. GNUMP3d serves a local web page with
> the list of titles and artists. I convert that web to an Org node using
> org-web-tools (https://github.com/alphapapa/org-web-tools), and some
> extra elisp to clean up inconsistencies and format everything so that
> each artist/title is a sub-tree. The process is not quite fine-tuned: I
> have to see how labels and properties could be added automatically:
> music gender, year, etc.
org-web-tools is an interesting project, but if you have access to files 
it should be easier to extract all meta information directly using e.g.

     exiftool -json file.mp3

or another tool suitable to particular format. It seems emms has 
interface to various tools.

P.S. You may try to adapt common LISP implementation of ID3 parser 
https://gigamonkeys.com/book/practical-an-id3-parser.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Org and multimedia (tips?)
  2022-03-18 14:40 ` Max Nikulin
@ 2022-03-19 11:13   ` Juan Manuel Macías
  0 siblings, 0 replies; 4+ messages in thread
From: Juan Manuel Macías @ 2022-03-19 11:13 UTC (permalink / raw)
  To: Max Nikulin; +Cc: orgmode

Max Nikulin writes:

> org-web-tools is an interesting project, but if you have access to
> files it should be easier to extract all meta information directly
> using e.g.
>
>     exiftool -json file.mp3
>
> or another tool suitable to particular format. It seems emms has
> interface to various tools.
>
> P.S. You may try to adapt common LISP implementation of ID3 parser
> https://gigamonkeys.com/book/practical-an-id3-parser.html

Maxim, thanks a lot for the ideas. I take note. The reason for using
org-web-tools is that the web page that GNUMP3d serves is extremely
simple, with an alphabetical list of artists, titles, and links to the
.m3u to stream. The list is easily reusable in Org. In the end I managed
to write a function to create in each node a property drawer with
album title, date and artist, accessing each m3u and obtaining the
information with ffprobe (screenshot: https://i.imgur.com/1ALe4Ah.png).

Best regards,

Juan Manuel 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Org and multimedia (tips?)
  2022-03-17 22:44 Org and multimedia (tips?) Juan Manuel Macías
  2022-03-18 14:40 ` Max Nikulin
@ 2022-05-05  1:14 ` TRS-80
  1 sibling, 0 replies; 4+ messages in thread
From: TRS-80 @ 2022-05-05  1:14 UTC (permalink / raw)
  To: emacs-orgmode

Juan Manuel Macías <maciaschain@posteo.net> writes:

> Hi all,
>
> I've been trying for a while to use Org also to store and org-anize the
> data of my music and video files, so that I can conveniently access them
> via helm-org-ql and play them using EMMS.

I mean, I love Org just as much as anyone else on this list, but it does
not strike me as the right tool for this job?

In my mind anyway, I think first -- especially since you are storing
your files on an SBC on the network -- about some network based music
player like mpd or Mopidy (there are others, too).

There are many interfaces to those, including some in Emacs (maybe even
within EMMS, if I am recalling correctly).

But then you can also access your music from outside Emacs, too.  And
without needing to hack something up / re-invent the wheel in Org.

However, if you like to hack something up in Org instead, by all means,
continue!  :)

Cheers,
TRS-80



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-05  1:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-17 22:44 Org and multimedia (tips?) Juan Manuel Macías
2022-03-18 14:40 ` Max Nikulin
2022-03-19 11:13   ` Juan Manuel Macías
2022-05-05  1:14 ` TRS-80

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).