TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to embed a sound file inline into a beamer so i don't need to carry the sound file around with the pdf.

Currently I place sound files into my beamer with the multimedia package and this command:


For some reason the \sound command gives scrambled static. But the inlinesound option apparently doesn't work with \movie. QUESTION 1: Is there some inline option for \movie?

All the examples I see with media9 are of audio streams from online. QUESTION 2: How do I place a local file into a pdf with media9? This is not working:


Throws an Error #2032: Stream Error. URL: file://PDFMedia022077/invalid in Acrobat X

share|improve this question
Welcome to TeX.sx! This site works best if you ask one question at the time. – N.N. Apr 12 '12 at 7:46
up vote 7 down vote accepted

The only sound file format that can be played back is mp3. To embed local resource files (a sound file in the present case) into the PDF, use option addresource and adjust the source FlashVar accordingly.

Embedded sound file example:

%\usepackage[english]{babel} % no longer required as of media9-20120412 (v0.4)


\begin{frame}{Sound example}

share|improve this answer
What will be played, an mp3 file or swf file ? I am a bit confused. – truthseeker May 2 '15 at 12:26
@truthseeker APlayer is the App, igottafever.mp3 the media it will play. And Flash Player is the VM in which the App runs. – AlexG May 3 '15 at 7:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.