emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: brian powell <briangpowellms@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Audio/video file playback in org mode
Date: Fri, 10 Jun 2011 12:10:39 -0400	[thread overview]
Message-ID: <BANLkTina-LGZiqpqZEK+vK6s+8-PO6kYGg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikSJQAYxQfSsQeRvb3QXADWerQVaA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2722 bytes --]

* Something like this; respectively!?:

[[shell:mplayer -ss 00:03:21 -endpos 00:06:54 ~/some_podcast.mp3 &]]

[[shell:mplayer -ss 00:03:21 ~/some_podcast.mp3 &]]

[[shell:mplayer ~/some_podcast.mp3 &]]

VLC works great for this too.

[[file:...] works too of course, but you have to make a "file association"
(or like mentioned: 'org-file-apps') to mplayer or emacs OrgMode will just
open the file in a buffer.

Unclear about statement about earlier posts: "I would like to explicitly not
allow..."

P.S. Thanks for the link to BONGO--the EMACS "buffer media player".
I made my own "buffer media player" and have used it for many years; but,
BONGO.el is wayly kuul too!


On Fri, Jun 10, 2011 at 4:28 AM, Michael Brand
<michael.ch.brand@gmail.com>wrote:

> Hi Paul
>
> Thank you very much for sharing this, I will benefit a lot and the
> interactivity from within Emacs seems extremely useful. My recent
> searches for how to play an Org link to an audio file didn't find any
> result and I was about to work out something with mpg123. I planned to
> define a new link type for this but your solution with "file:" looks
> to me more like it should be and is also backwards compatible with
> links already made with "file:".
>
> And even better if "file:" could also cover my requirement to have an
> optional link search part that lets the player start and stop at a
> specified time. Let me define the format like this:
> - start to play in file at 00:03:21, stop at 00:06:54:
>  [[file:some_podcast.mp3::00:03:21-00:06:54]]
> - start to play in file at 00:03:21, play until end of file:
>  [[file:some_podcast.mp3::00:03:21]]
> - play the whole file:
>  [[file:some_podcast.mp3]]
>
> I would like to explicitly not allow [[file:some_podcast.mp3::03:21]]
> as a shorter option with MM:SS because I would like to see XX:XX being
> reserved for HH:MM without exception in Org. There was a recent
> discussion covering this in the context of time calculation:
> http://thread.gmane.org/gmane.emacs.orgmode/39487/focus=39840
>
> Michael
>
> On Thu, Jun 9, 2011 at 23:55, Paul Sexton <psexton@xnet.co.nz> wrote:
> > I have spent a few hours figuring this out so I thought I would post it
> for
> > the benefit of others.
> >
> > I am learning a language, and wanted to include hyperlinks to audio files
> > within my org document, and be able to play each file by clicking on the
> > link.
> >
> > I eventually discovered the variable 'org-file-apps' which allows you to
> > associate particular applications with particular file types.
> >
> > I am using Bongo (https://github.com/dbrock/bongo) as the media player.
> > EMMS is another actively developed media player, but setup looked too
> > complicated at first glance.
>

[-- Attachment #2: Type: text/html, Size: 3711 bytes --]

  reply	other threads:[~2011-06-10 16:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 21:55 Audio/video file playback in org mode Paul Sexton
2011-06-09 22:22 ` Eric Schulte
2011-06-10  8:28 ` Michael Brand
2011-06-10 16:10   ` brian powell [this message]
2011-06-11  4:57     ` Paul Sexton
2011-06-11 14:00       ` Memnon Anon
2011-06-11 23:55         ` Alan E. Davis
2011-06-12  8:23           ` Christian Moe
2011-06-12  9:34             ` Michael Brand
2011-06-11  4:53   ` Paul Sexton
     [not found]   ` <4DF2F3B6.2030400@xnet.co.nz>
2011-06-11  6:23     ` Michael Brand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTina-LGZiqpqZEK+vK6s+8-PO6kYGg@mail.gmail.com \
    --to=briangpowellms@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).