Skip to content

morningstar1/spdif-decoder

This branch is 15 commits ahead of corecode/spdif-loop:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3721869 · Dec 28, 2022

History

33 Commits
Jan 23, 2021
Jan 24, 2021
Apr 25, 2015
Apr 25, 2015
Apr 25, 2015
Apr 25, 2015
Apr 25, 2015
Apr 25, 2015
Jan 23, 2021
Apr 25, 2015
Apr 25, 2015
Dec 26, 2022

Repository files navigation

spdif-decoder

SPDIF to 5.1 software loop decoder. Use if you want to connect a digital surround signal (Dolby Digital), such as an Xbox 360 S or TV, via your PC to your 5.1 (analog) stereo. Like a digital receiver/decoder, just in software.

FFMPEG is licenced under the GNU Lesser General Public License version 2.1 and so is this piece of software.

Requirements

Build ffmpeg shared library with a minimal set for alsa and AC3 support

./configure --enable-shared --disable-static --disable-everything --enable-demuxer=spdif --enable-decoder=ac3 --enable-indev=alsa
make

Build spdif-decoder

Prepare CMakeLists.txt - set FFMPEG Var with Path to ffmpeg (if not in ../ffmpeg-4.3.1)

cmake .
make

Run

I run it like this:

./spdif-decoder -i hw:CARD=Device -d pulse -o alsa_output.usb-0d8c_USB_Sound_Device-00-Device.analog-surround51

Alsa's hw:CARD=Device is my SPDIF input. You can list your alsa devices with

aplay -l

I had to use amixer to set the capture source to SPIF. In this case Device is the alsa name of my SPDIF-in card:

amixer -c Device scontrols                   # show controls
amixer -c Device get 'PCM Capture Source'    # show options
amixer -c Device set 'PCM Capture Source' 'IEC958 In'    # set input

Thanks to

Sebastian Morgenstern [email protected] Simon Schubert [email protected]

About

SPDIF to 5.1 software loop decoder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.7%
  • CMake 3.3%