[O] Audio/video file playback in org mode

2011-06-09 Thread Paul Sexton
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-fi

Re: [O] Audio/video file playback in org mode

2011-06-09 Thread Eric Schulte
Very cool, Would you mind posting this to Worg to increase that chances that it will be found by future Orgers? The first place that comes to mind is the org-hacks page at http://orgmode.org/worg/org-hacks.html Cheers -- Eric Paul Sexton writes: > I have spent a few hours figuring this out so

Re: [O] Audio/video file playback in org mode

2011-06-10 Thread Michael Brand
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 lin

Re: [O] Audio/video file playback in org mode

2011-06-10 Thread brian powell
* 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 ass

Re: [O] Audio/video file playback in org mode

2011-06-10 Thread Paul Sexton
Thanks Michael, I'm glad you think it will be helpful. I have implemented something like what you have requested here. I have hived this code off into a separate file called org-player.el. You can get it at: http://bitbucket.org/eeeickythump/org-player/ I intend to add it to worg in the next li

Re: [O] Audio/video file playback in org mode

2011-06-10 Thread Paul Sexton
brian powell gmail.com> writes: > * 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 &]] The troubles with using shell commands in hyperlinks

Re: [O] Audio/video file playback in org mode

2011-06-10 Thread Michael Brand
Hi Paul On Sat, Jun 11, 2011 at 06:48, Paul Sexton wrote: > Thanks Michael, I'm glad you think it will be helpful. I have implemented > something like what you have requested here. I have hived this code off into > a separate file called org-player.el. > > You can get it at: > > http://bitbucket.

Re: [O] Audio/video file playback in org mode

2011-06-11 Thread Memnon Anon
Paul Sexton writes: > brian powell gmail.com> writes: > > >> * 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 &]] > > The troubles with

Re: [O] Audio/video file playback in org mode

2011-06-11 Thread Alan E. Davis
I'll jump in and mention a solution to an at least similar problem I hacked, albeit incompletely, some time ago. I baldly stole code from "dired-mplayer" at http://www.emacswiki.org/cgi-bin/wiki/EMMS#toc10 , and have been using the result, "dired-vlc" ever since. The main point of this was to pl

Re: [O] Audio/video file playback in org mode

2011-06-12 Thread Christian Moe
Hi, 1. write a few lines into this that would open another buffer, possibly through capture, starting the relative timer automagically. 2. figure out how to pause the video and the timer simultaneously. As it happens, I've been sitting on some code to do just that, meaning to post it

Re: [O] Audio/video file playback in org mode

2011-06-12 Thread Michael Brand
Hi Alan and Christian On Sun, Jun 12, 2011 at 01:55, Alan E. Davis wrote: > The main point of this > was to play videos asynchronously, so I could continue editing, taking notes > using the relative timer of org-mode. Thank you for this cool idea. On Sun, Jun 12, 2011 at 10:23, Christian Moe w