See a movie with Emacs

Source: Internet
Author: User

Most people use Emacs to listen to songs, but I like to use Emacs to watch movies. It's so convenient to watch a movie with Emms and MPlayer.

Do not install Emms from the source, it may give you to install other players, no need, we have mplayer enough. Download from Emms's home page, and then compile and install Emms.

Then add the following configuration in. Emacs:

( require ' Emms-setup) (Emms-standard) (setq emms-player-list ' (emms-player-mplayer) Emms-player-mplayer-command-name"MPlayer" Emms-player-mplayer-parameters ' ("-slave")) (setq emms-repeat-playlist nil emms-source-file-default-directory"/data/music/" Emms-lyrics-dir "/data/music/" Emms-lyrics-coding-system nil emms-playlist-buffer-name "*EMMS*") (Global-set-key (KBD"C-c e G") ' Emms-play-directory ' (Global-set-key (KBD"C-c e D") ' emms-play-dired ' (Global-set-key (KBD"C-c e V") ' Emms-playlist-mode-go ' (Global-set-key (KBD"C-c e X") ' Emms-start ' (Global-set-key (KBD"C-c e SPC") ' Emms-pause ' (Global-set-key (KBD"C-c e S") ' Emms-stop ' (Global-set-key (KBD"C-c e N") ' Emms-next ' (Global-set-key (KBD"C-c e P") ' Emms-previous)

My Emms setup is simple, I just pass it to tune with MPlayer listen to the movie, do not need to read the words and other functions. I would like to say that with Emms + MPlayer + dired can be very convenient to see the disc.

Through the dired to open video records, such as there is a folder Schindler name , inside there are 4 media documents: Schindler CD1.avi, Schindler name CD2.avi, Schindler List Cd3.avi, Schindler name Cd4.avi. All I need to do is stop the light on the Schindler 's List folder, press C-c e D, adjust the emms-play-dired function, and create the playlist automatically, MPlayer play the 4 files in order.

For example, there is a video clip of the player , there are 36 episodes, I would like to see 10-12 episodes today, using dired into the Mobile folder, with M in 10-12 sets to mark, and then press c-c e D, MPlayer will play 10-12 episodes.

See a movie with Emacs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.