General discussion

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

FTP Login?

Hi,

i want download a script for moc but the server ask me for login. i tried to type my name and password for this page but it doesn't work.

can someone tellme how i can get ftp access?

thanks

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.

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'!

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

mocp segmentation fault

I want to use mocp.
I build the mocp-2.4.4 successfully.
When I run mocp on my x-terminal, I rusulted the following.

[root@pear root]# mocp
Running the server...
Trying ALSA...

FATAL_ERROR: Server exited

[root@pear root]#
[root@pear .moc]# mocp -D -F -S
Loading plugins from /usr/local/lib/moc/decoder_plugins...
Loading plugin libffmpeg_decoder...
OK
Loading plugin libmp3_decoder...
OK
Trying ALSA...
Dec 26 11:46:08.499345: alsa.c:260 alsa_init_mixer_channel(): Opened mixer (PCM), volume range: 0-31
Dec 26 11:46:08.499982: alsa.c:260 alsa_init_mixer_channel(): Opened mixer (Master), volume range: 0-31
Dec 26 11:46:08.500258: alsa.c:180 handle_mixer_events(): Mixer event
Dec 26 11:46:08.500488: alsa.c:180 handle_mixer_events(): Mixer event
Dec 26 11:46:08.561502: audio.c:850 print_output_capabilities(): Sound driver capabilities: channels 1 - 10000, formats: 8-bit signed, 8-bit unsigned, 16-bit signed, 16-bit unsigned, 24-bit signed (as 32-bit samples), 24-bit unsigned (as 32-bit samples) little-endian (native)
Dec 26 11:46:08.581229: audio.c:864 audio_initialize(): Disabling 24bit modes because Allow24bitOutput is set to no.
Segmentation fault
[root@pear .moc]#
[root@pear .moc]#
[root@pear .moc]#
[root@pear .moc]# strace mocp -D -F -S
...
...
...open("/dev/snd/controlC0", O_RDONLY) = 9
fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
ioctl(9, 0x81785501, 0xbfffeb70) = 0
close(9) = 0
open("/dev/snd/controlC0", O_RDWR) = 9
fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
ioctl(9, USBDEVFS_CONTROL, 0xbfffef28) = 0
ioctl(9, USBDEVFS_CONNECTINFO, 0xbfffef60) = 0
close(9) = 0
close(7) = 0
semop(294912, 0xbffff610, 2) = 0
munmap(0x41252000, 65536) = 0
close(8) = 0
munmap(0x4042c000, 4096) = 0
munmap(0x4042d000, 4096) = 0
shmdt(0x41262000) = 0
shmctl(622593, IPC_64|IPC_STAT, 0xbffff5c0) = 0
shmctl(622593, IPC_64|IPC_RMID, 0) = 0
shmdt(0x4042b000) = 0
shmctl(589824, IPC_64|IPC_STAT, 0xbffff5a0) = 0
shmctl(589824, IPC_64|IPC_RMID, 0) = 0
semctl(294912, 0, IPC_64|IPC_RMID, 0xbffff5f8) = 0
gettimeofday({1324871034, 229950}, NULL) = 0
write(1, "Dec 26 12:43:54.229950: audio.c:"..., 277Dec 26 12:43:54.229950: audio.c:850 print_output_capabilities(): Sound driver capabilities: channels 1 - 10000, formats: 8-bit signed, 8-bit unsigned, 16-bit signed, 16-bit unsigned, 24-bit signed (as 32-bit samples), 24-bit unsigned (as 32-bit samples) little-endian (native)
) = 277
gettimeofday({1324871034, 230106}, NULL) = 0
write(1, "Dec 26 12:43:54.230106: audio.c:"..., 117Dec 26 12:43:54.230106: audio.c:864 audio_initialize(): Disabling 24bit modes because Allow24bitOutput is set to no.
) = 117
mmap2(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41252000
mmap2(NULL, 8392704, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x412d3000
mprotect(0x412d3000, 4096, PROT_NONE) = 0
clone(child_stack=0x41ad3a90, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED, [0], {entry_number:0, base_addr:0x41ad3b30, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 28810
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
[root@pear root]#
[root@pear root]# uname -a
Linux pear 2.4.37.11-6 #2 SMP Fri Dec 23 18:50:47 KST 2011 i686 i686 i386 GNU/Linux
[root@pear root]#

I can not run mocp because of the above "segmentation fault".

Please help me.
Any suggestion is welcome....

Pages

Subscribe to RSS - General discussion