General discussion

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

wma file

hi all,

My moc cannot play .wma files. It says "no audio stream in file". Does anyone get the same problem?

I've got moc 2.4.4 and ffmpeg20081220 installed. My system is archlinux

Thanks in advance.

[PATCH] ogg/vorbis file can also be named *.oga

According to http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions, files with ogg/vorbis data can alo be found in .oga file. I have discovered this yesterday as sound-juicer create now by default .oga file for ogg/vorbis encoded music.

I have cooked a quick patch against latest svn ( 2138 ) on http://www.zarb.org/~misc/moc.oga_support.diff , and I have tested it, it work fine.

According to the wiki of xiph.org, we can also use .oga to store speex content and ogg/flac, but trying to share the extension between the various plugins doesn't work, I am looking at the issue.

I guess the proper solution would be to check the file with can_decode method before running the decoder ?

linux n00b question

Hi all and thanks for being here ... and the most exelent software MOC :-D
I'm kinda new to linux -only a few months now- and definately could use some help with installation, as i dont seem to have a clue on this one
I discovered MOC when i was using #!Crunchbang linux, (installed by default) but that OS is a bit too advanced for me so now i'm using PCLOS 2008 gnome edition.
can ne1 step me thru the install process or direct me to already existing instructions?
thanks
~g

2.4.4 interface issues OpenBSD 4.4

toshiba satellite 220cds laptop
p120mhz
32mb ram

OpenBSD chev 4.4 GENERIC#1021 i386
moc stable 2.4.4 compiled from source with gcc (GCC) 3.3.5
DECODER_PLUGINS=' mp3 vorbis flac sndfile ffmpeg'
netstreams also enabled with curl
dependencies were installed from the openbsd binary packages at ftp://ftp5.usa.openbsd.org/pub/OpenBSD/4.4/packages/i386/

First issue: All of the toggle elements remain bold even when disabled (SHUFFLE, REPEAT, NEXT). What i mean is that I can enable/disable them yet the text remains bold either way so if I look at the interface I have no way to know what is toggled.

Second issue: If I try to switch from pcm to the master mixer using the 'x' key, mocp interface just crashes. The mocp server continues to run and play the music, but even if i reattach to it it just crashes again with the same message. The only way to get the client interface to run again is to kill the server process and run mocp again. Here is the message after crash:

assertion "value >= 0 && value <= 100" failed: file "interface_elements.c", line 3325, function "iface_set_mixer_value" |
| || Abort trap (core dumped)

I'm not proficient with gdb.. but here is what we get:
chev# gdb mocp.core
GNU gdb 6.3
This GDB was configured as "i386-unknown-openbsd4.4"..."/root/mocp.core": not in executable format: File format not recognized

If it matters, this behavior remains the same whether ssh'd into the console or running locally and also whether using ksh or zsh. And yes, I know this system is old and slow but it really seems to work great with moc other than the client interface crash behavior. I have no trouble playing flac, mp3, ogg from a mounted nfs share. I tried to install 2.50-alpha3 just to see if therer were any difference but I could not get past make due to various compile errors which I am not knowledgable enough to troubleshoot.

Thanks for moc and for any help :)

How to change then background of mocp

Hello everybody, I'm using gentoo linux and mocp, but I had a question:
1. On console, my mocp's background color is blue
2. On terminal(urxvt), my mocp's background color is yellow.

How to configure mocp background color?

Thanks all!!

Manage MOC via browser ?

Manage MOC via browser - it is possible ? Some like phpMp ? Thanks for answer :)

Bug report: Playing wma files... inc. the solution!

Hi,

as seen before, I was having a problem with playing .wma files on gentoo. Following is all the information:

emerge --info:
Portage 2.1.6.5 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-60-with-glibc2.2.5
Timestamp of tree: Tue, 13 Jan 2009 11:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python: 2.5.2-r8
dev-util/ccache: 2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.1-r1
sys-apps/sandbox: 1.3.2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -msse3 -frename-registers -fweb -pipe -fomit-frame-pointer -fno-ident"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -msse3 -frename-registers -fweb -pipe -fomit-frame-pointer -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--hash-style=gnu"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/conrad /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa amd64 bash-completion berkdb bzip2 cdr cli cracklib crypt dbus dri dvd dvdr encode fam gdbm gif gpm gtk gtk2 hal iconv ipv6 isdnlog jpeg mad midi mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre perl png pppd python quicktime readline reflection session spell spl sse sse2 ssl sysfs tcpd truetype unicode vim-syntax vorbis xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="radeon vga vesa fbdev"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

ffmpeg version:
FFmpeg version SVN-r16238, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-debug --disable-ffplay --disable-network --disable-optimizations --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libxvid --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-x11grab --enable-libfaad --enable-libamr-nb --enable-libamr-wb --enable-nonfree --disable-ssse3 --disable-altivec --disable-mmx2 --cpu=athlon64 --disable-vhook --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-swscale --disable-stripping
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 7. 0 / 52. 7. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 1. 0 / 0. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jan 11 2009 07:49:40, gcc: 4.3.2

Changes to make it work:

Index: decoder_plugins/ffmpeg/ffmpeg.c
===================================================================
231d230
< int data_size;
236a236
> int data_size = sizeof(avbuf);
279c279
< len = avcodec_decode_audio (data->enc, (int16_t *)avbuf,
---
> len = avcodec_decode_audio2 (data->enc, (int16_t *)avbuf,

As it seems, the latest (or at least the version I have) version of ffmpeg doesn't have the avcodec_decode_audio function anymore, but a version avcodec_decode_audio2, which must be called with the data_size argument preset to the buffer size.

This way it works perfectly for me! I didn't find out since what version the original function isn't available anymore, so maybe there is the need for an ifdef depending on the ffmpeg version one has...

regards,

samuel

keymap issue: add_file and add_directory

Hello!
Is it possible to merge add_file and add_directory in one instruction (something like "add_media")?
Thank you :-)

Pages

Subscribe to RSS - General discussion