General discussion

Here you can discuss everything related to MOC which doesn't fit other subforum.

glibc errors

I have moc 2.5.0_alpha4 compiled on gentoo with gcc 4.6.2, glibc is 2.13-r4. Sometimes it crashes with ** glibc detected *** mocp: free(): invalid next size (normal): 0x082b1c70 *** or similar error. I can't exactly catch the moment when it crashes. After showing this error and freezing interface moc continues to play. If I kill the interface and then start it, it freezes on getting playlist. The same problem was with previuos versions of moc and glibc.

Building moc RPMs for Fedora

Hello.

I've build some moc RPMs 32/64 bit for Fedora (14/15/16).
They are stored here: http://sagitter.fedorapeople.org/moc/

Now i'm trying to build the development version in wait of Fedora 17, however the dash ('-') of package name prevents me to use "rpmbuild" tool.
Can i do something to get over this problem ?

Regards.

FFmpeg Decoder Overhaul

I have today made a series of commits (r2383 to r2410) to SVN which represent a major overhaul of the FFmpeg/LibAV decoder. The decoder now supports a number of additional audio formats (including the requested WV and APE), and several video formats (AVI, FLV, MP4, REC and VOB) from which the audio will be played.

Seeking has also been added within the constraints of the FFmpeg/LibAV's libraries abilities to handle it. This varies by format and codec, and results in some discrepancies (e.g., WMA with MP2 is not seekable but WMA with WMAV1 or WMAV2 is seekable). The libraries are also unable to seek after reading of the input file
reaches the end, so seeking becomes disabled towards the end of the audio.

Streamed audio has not been added due to time constraints.

(I do have some ideas which may improve seeking and implementing streamed audio, but these will have to wait for another time.)

Downmixing to stereo (particularly of AC3 and DTS formats) has also been addressed.

Hopefully, more bugs have been fixed than have been introduced. For those who have unresolved issues with FFmpeg/LibAV and their related formats, it would be worthwhile investigating whether or not those issues still exist and posting the results (good or bad) on the original forum topic.

Of particular interest to developers is the new 'tools' directory which includes a test file generation tool and an MD5 checking tool. When debugging is enabled, MOC now computes the MD5 sum of the samples received from the decoders and these can be checked by the tool against an independant decoding to verify decoder fidelity. (And no, not all decoders currently pass these tests.)

A very large public thank you must go to MOC user "tomaszg" whose assistance has been invaluable throughout, and also to "zeddb" for additional testing.

FATAL_ERROR: Tried to get wrong option 'ModPlug_Oversampling'!

How do I solve this error?

I have MOC working before but it will not work now. It is giving me so many errors and this is the latest one.

I have all the files listed here:

http://packages.ubuntu.com/natty/amd64/moc/filelist

including ~/home/***/.moc/config

and all the dependencies listed here:

http://packages.ubuntu.com/natty/moc

but I get this:

$ mocp
Plugin uses different API version
Plugin uses different API version
Plugin uses different API version

FATAL_ERROR: Tried to get wrong option 'ModPlug_Oversampling'!

Compilation moc-2.5.0alpha4: ffmpeg error

Hello !

With my Fedora 16 64bit the moc-2.5.0alpha4 compilation stops with some errors.

ffmpeg.c: In function ‘ffmpeg_info’:
ffmpeg.c:79:2: warning: ‘av_open_input_file’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
ffmpeg.c:89:9: error: ‘AVFormatContext’ has no member named ‘track’
ffmpeg.c:90:20: error: ‘AVFormatContext’ has no member named ‘track’
ffmpeg.c:91:9: error: ‘AVFormatContext’ has no member named ‘title’
ffmpeg.c:92:29: error: ‘AVFormatContext’ has no member named ‘title’
ffmpeg.c:93:9: error: ‘AVFormatContext’ has no member named ‘author’
ffmpeg.c:94:30: error: ‘AVFormatContext’ has no member named ‘author’
ffmpeg.c:95:9: error: ‘AVFormatContext’ has no member named ‘album’
ffmpeg.c:96:29: error: ‘AVFormatContext’ has no member named ‘album’
ffmpeg.c: In function ‘ffmpeg_open’:
ffmpeg.c:117:2: warning: ‘av_open_input_file’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1090) [-Wdeprecated-declarations]
ffmpeg.c:133:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ffmpeg.c:135:32: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
ffmpeg.c:135:32: note: each undeclared identifier is reported only once for each function it appears in
ffmpeg.c: In function ‘ffmpeg_seek’:
ffmpeg.c:189:6: warning: unused variable ‘err’ [-Wunused-variable]
ffmpeg.c:188:22: warning: unused variable ‘data’ [-Wunused-variable]
ffmpeg.c:186:45: warning: unused parameter ‘sec’ [-Wunused-parameter]
make[3]: *** [libffmpeg_decoder_la-ffmpeg.lo] Error 1
make[3]: Leaving directory `/home/sagitter/SoftwareCompilato/moc-2.5.0-alpha4/decoder_plugins/ffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sagitter/SoftwareCompilato/moc-2.5.0-alpha4/decoder_plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sagitter/SoftwareCompilato/moc-2.5.0-alpha4'
make: *** [all] Error 2

Info:

ffmpeg has been compiled following these istructions http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide
ffmpeg-devel(v. 0.8.8.1) requested package comes from Fedora 16 RPMFusion repository.

Please, can someone explain me how to resolve this problem ?

Regards.

OSS Can't read from mixer on Debian Sid

I am running Debian Unstable with OSS and cannot figure out how to get moc to use the mixer.

In moc I receive the error: (46766!) Can't read from mixer.

Also, I left moc running without a song playing and came back to find all my ram exausted and page file maxed out by the mocp process.

I have tried the following mixers against OSSMixerDevice in ~/.moc/config which I found.

/dev/mixer
/dev/mixer0 (/dev/mixer0 -> /dev/oss/oss_hdaudio0/mix0)

Currently the config is:

> grep OSS ~/.moc/config
# Sound driver - OSS, ALSA, JACK, SNDIO (on OpenBSD) or null (only for
SoundDriver = OSS:ALSA:JACK
# OSS output device.
OSSDevice = /dev/dsp
# OSS Mixer device.
OSSMixerDevice = /dev/oss/oss_hdaudio0/mix0
# OSS Mixer channel: pcm or master.
OSSMixerChannel = pcm
# Second OSS Mixer channel: pcm or master.
OSSMixerChannel2 = master

> apt-cache policy moc
moc:
Installed: 1:2.5.0~alpha4+svn20111012-1
Candidate: 1:2.5.0~alpha4+svn20111012-1

ossinfo and ossmix as follows:

Version info: OSS 4.2 (b 2005/201110151348) (0x00040100) GPL
Platform: Linux/x86_64 3.2.0-1-amd64 #1 SMP Tue Jan 24 05:01:45 UTC 2012 (damage.happytreasure.local)

Number of audio devices: 6
Number of audio engines: 10
Number of MIDI devices: 0
Number of mixer devices: 1

Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=378534 (378586)
HD Audio controller Intel HD Audio
Vendor ID 0x8086293e
Subvendor ID 0x17aa20f2
Codec 0: CX20561 (0x14f15051/0x17aa20fd)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio CX20561 (Mixer 0 of device object 1)

Audio devices
HD Audio play pcm1 /dev/oss/oss_hdaudio0/pcm0 (device index 0)
HD Audio play pcm2 /dev/oss/oss_hdaudio0/pcm1 (device index 1)
HD Audio play pcm3 /dev/oss/oss_hdaudio0/pcm2 (device index 2)
HD Audio rec rec1 /dev/oss/oss_hdaudio0/pcmin0 (device index 3)
HD Audio rec fp-mic /dev/oss/oss_hdaudio0/pcmin1 (device index 4)
HD Audio rec pcm3 /dev/oss/oss_hdaudio0/pcmin2 (device index 5)

Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0

> ossmix
Selected mixer 0/High Definition Audio CX20561
Known controls are:
jack.fp-green.mode (currently pcm1)
jack.fp-pink [:] (currently 39.9:39.9 dB)
jack.int-speaker.mode (currently pcm1)
jack.int-mic [:] (currently 9.9:9.9 dB)
jack.black.mode (currently pcm3)
record.rec1 [:] (currently 64.9:64.9 dB)
record.fp-mic [:] (currently 64.9:64.9 dB)
misc.pcm1 [:] (currently 65.9:65.9 dB)
misc.pcm2 [:] (currently 68.9:68.9 dB)
misc <-28.-8dB|-19.-2dB|-9.-6dB|0.0dB> (currently -28.-8dB)
vmix0-enable ON|OFF (currently ON)
vmix0-rate (currently 48000) (Read-only)
vmix0-channels (currently Stereo)
vmix0-src (currently Fast)
vmix0-outvol (currently 25.0 dB)
vmix0-invol (currently 19.1 dB)
vmix0.pcm6 [:] (currently 22.5:22.5 dB) ("mocp")
vmix0.pcm7 [:] (currently 25.0:25.0 dB)
vmix0.pcm8 [:] (currently 25.0:25.0 dB)
vmix0.pcm9 [:] (currently 25.0:25.0 dB)

Thanks

LastFm plugin

Hi there,

Some months ago i've written a little plugin for MOC player in order to properly scrobble my library to my LastFm account.

I think it will be usefull for some guys.

Simply follow few steps described here:

http://kompote.net/moc-lastfm-plugin/

enjoy!

Kompote

Problem playing very short WAV files

Hi, I'm trying to use MOC as a sample browser, unfortunately very short WAV files, like percussion hits, just create a kind of dull click sound - longer samples seem to work fine. I'm running Arch and installed MOC via pacman and copied the example config specifying ALSA as the only driver. I know ALSA is working correctly, using "aplay sample.wav" plays the WAV correctly.

Any ideas would be greatly appreciated.

Thanks, Paul

Pages

Subscribe to RSS - General discussion