Web Projects Outsourcing

Problem Playing mp3-Encoded Files From Goldendict

When porting goldendict dictionary bases from my working laptop with Fedora 14 to a EeePC with Fedora 15, I have discovered that the sound files included with several dictionaries do not play at all.

goldendict uses mplayer to play them in the background, however, playing the same files from command line failed too.

The problem looks like the below:

Somehow, mplayer on Fedora 15 does not detect the most effective codec for mp3 in the system. We have to explicitly tell it which codec sequence must be used.

Please see articles on this site on how to install codecs.

Solution:

Cut and paste, save:

[text]
#!/bin/bash

mplayer -afm mp3lib,ffmpeg "$1"
[/text]

Make it executable:

Now tune goldendict to use mplayer-good for audio.

Fix mplayer to work correctly with mp3 format in goldendict

Fix mplayer to work correctly with mp3 format in goldendict

Enjoy!

3 thoughts on “Problem Playing mp3-Encoded Files From Goldendict

  1. Tbox

    hi,
    great tip !
    you can save this setting in the config file:
    ~/.mplayer/config

    add this line:
    afm=mp3lib,ffmpeg

    save, quit

    you dont need the warper anymore.

Leave a Reply

Your email address will not be published. Required fields are marked *

seven − six =