diff options
author | xengineering <me@xengineering.eu> | 2024-01-05 12:03:13 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-05 12:03:13 +0100 |
commit | 90286663aa293deeb91bed3ae2319bc77a461467 (patch) | |
tree | 0ea1215c9f7db60df25d346a4febd387f0713234 | |
parent | f2b47e8030fdfcd8c794d1e27ab1b35c7e87310c (diff) | |
download | soundbox-90286663aa293deeb91bed3ae2319bc77a461467.tar soundbox-90286663aa293deeb91bed3ae2319bc77a461467.tar.zst soundbox-90286663aa293deeb91bed3ae2319bc77a461467.zip |
doc: Add example for FFMpeg MP3 streaming
This allows more testing than only streaming sine waves.
-rw-r--r-- | doc/documentation.tex | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/documentation.tex b/doc/documentation.tex index e4ec97c..eea482a 100644 --- a/doc/documentation.tex +++ b/doc/documentation.tex @@ -59,9 +59,9 @@ devices.. For a simple audio streaming test the following commands from the FFmpeg streaming -guide\footnote{\href{https://trac.ffmpeg.org/wiki/StreamingGuide\#StreamingasimpleRTPaudiostreamfromFFmpeg}{ffmpeg -streaming guide}} can be used. The following command has to be executed on the -soundbox to start listening on port \texttt{1234} for incoming audio streams: +guide\footnote{\href{https://trac.ffmpeg.org/wiki/StreamingGuide\#StreamingasimpleRTPaudiostreamfromFFmpeg}{https://trac.ffmpeg.org/wiki/StreamingGuide\#StreamingasimpleRTPaudiostreamfromFFmpeg}} +can be used. The following command has to be executed on the soundbox to start +listening on port \texttt{1234} for incoming audio streams: \begin{verbatim} ffplay rtp://127.0.0.1:1234 @@ -76,6 +76,14 @@ computer in the same network with this command: \end{verbatim} It will send a simple sine wave with 400~Hz to the soundbox device. +Alternatively a mp3 file can be sent like this: + +\begin{verbatim} + ffmpeg -i '/path/to/file.mp3' -acodec libmp3lame -ar 11025 \ + -f rtp rtp://<soundbox-ip>:1234 +\end{verbatim} + +These commands allow to test the \texttt{soundbox} device setup. %\chapter{Production} %\section{Printing mechanical parts} |