Pagina 1 di 2
convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: dom 15 nov 2009, 14:20
da danix
Ciao a tutti,
qualcuno mi sa dire come faccio a convertire un file mpc in wav per masterizzarlo su un cd audio?? In alternativa potrei anche convertirlo in mp3 e poi successivamente in wav con k3b, ma se riesco a saltare questo passaggio intermedio sarebbe meglio...
Any ideas??
grazie mille a tutti in anticipo...
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: dom 15 nov 2009, 14:39
da gohanz
danix ha scritto:Ciao a tutti,
qualcuno mi sa dire come faccio a convertire un file mpc in wav per masterizzarlo su un cd audio?? In alternativa potrei anche convertirlo in mp3 e poi successivamente in wav con k3b, ma se riesco a saltare questo passaggio intermedio sarebbe meglio...
Any ideas??
grazie mille a tutti in anticipo...
Il pacchetto K3b presente su Slacky ha il decoder Musepack installato. Non l'ho mai usato, ma dovrebbe bastare quello.
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: dom 15 nov 2009, 15:53
da mohaa
MPC to WAV :
Codice: Seleziona tutto
$ ffmpeg -i file.mpc -acodec pcm_s16le -ar 44100 -ac 2 nuovo_file.wav
MPC to MP3 :
Codice: Seleziona tutto
$ ffmpeg -i file.mpc -acodec libmp3lame -ab 320000 -ac 2 nuovo_file.mp3
For more information (on ffmpeg options used here for example) please refer to ffmpeg manpage.
Online documentation can be found here :
http://ffmpeg.org/ffmpeg-doc.html.
There is a HOWTO on TuxRadar too :
http://www.tuxradar.com/content/ffmpeg-made-easy
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: lun 16 nov 2009, 9:05
da danix
grazie mille ad entrambi... ora devo vedere se ricompilare k3b o ffmpeg e dipendenze per la slackware64...

vado prima a vedere se ponce, conraid o alienbob hanno qualcosa di già pronto...
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: lun 16 nov 2009, 11:29
da shark1500
Usando solo pacchetti slackware puoi provare con mplayer, se non sbaglio l'opzione per salvare in wav e` "-dumpfile", ma dai un occhio al manuale e lo trovi di sicuro
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: lun 16 nov 2009, 11:36
da conraid
danix ha scritto:grazie mille ad entrambi... ora devo vedere se ricompilare k3b o ffmpeg e dipendenze per la slackware64...

vado prima a vedere se ponce, conraid o alienbob hanno qualcosa di già pronto...
prova a compilarti i tool musepack, quelli nuovi, hanno anche un tool (mpcdec mi sembra) che fa al caso tuo
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: lun 16 nov 2009, 18:21
da danix
corrado, quella suite è la prima cosa che ho guardato, solo che dovrei scrivere lo slackbuild da 0 e ho sempre paura di fare errori, sai se in giro ce n'è già uno pronto??
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: lun 16 nov 2009, 21:37
da conraid
no, quelli che ho visto sono solamente per la precedente versione (solo librerie)
Magari domani provo, comunque non è obbligatorio fare il pacchetto, puoi anche compilare con i metodi canonici e normali
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: mar 17 nov 2009, 15:14
da danix
Sto provando a scrivere lo slackbuild (cerco di tenere il sistema pulito e ordinato), e mi sto basando su quello prodotto dal template web di AST, il tool di Alien Bob...
il risultato è:
Codice: Seleziona tutto
#!/bin/sh
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
# Copyright 2009 Eric Hameleers <alien@slackware.com>, Eindhoven, Netherlands
# Copyright 2009 danix < danix@danixland.net >
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
# any purpose with or without fee is hereby granted, provided that
# the above copyright notice and this permission notice appear in all
# copies.
#
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
# -----------------------------------------------------------------------------
#
# Slackware SlackBuild script
# ===========================
# By: danix < danix@danixland.net >
# For: musepack
# Descr: This is the MusePack Toolkit
# URL: http://www.musepack.net
# Needs:
# Changelog:
# r435-1: 17/Nov/2009 by danix < danix@danixland.net >
# * Initial build.
#
# Run 'sh musepack.SlackBuild' to build a Slackware package.
# The package (.txz) and .txt file as well as build logs are created in /tmp .
# Install it using 'installpkg'.
#
# -----------------------------------------------------------------------------
# Set initial variables:
PRGNAM=musepack
VERSION=${VERSION:-r435}
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}
# 'make' can run jobs in parallel for added speed. The number should be higher
# than the number of cores/virtual CPU's in your system:
NUMJOBS=${NUMJOBS:" -j4 "}
# The TAG is a unique identifier for all your Slackware packages.
# Use your initials as the value for TAG for instance.
TAG=${TAG:-dx}
# This covers most filenames you'd want as documentation. Change if needed.
DOCS="ABOUT* AUTHORS BUGS ChangeLog* COPYING CREDITS FAQ GPL* HACKING \
LICENSE MAINTAINERS NEWS README* TODO"
# Where do we look for sources?
SRCDIR=$(pwd)
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
TMP=${TMP:-/tmp/build}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# Input URL: http://files.musepack.net/source/musepack_src_r435.tar.gz
SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz"
SRCURL="http://files.musepack.net/source/${PRGNAM}_src_${VERSION}.tar.gz"
##
## --- with a little luck, you won't have to edit below this point --- ##
##
# Exit the script on errors:
set -e
trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR
# Catch unitialized variables:
set -u
case "$ARCH" in
i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686"
SLKLDFLAGS=""; LIBDIRSUFFIX=""
;;
x86_64) SLKCFLAGS="-O2 -fPIC"
SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
;;
esac
# Create working directories:
mkdir -p $OUTPUT # place for the package to be saved
mkdir -p $TMP/tmp-$PRGNAM # location to build the source
mkdir -p $PKG # place for the package to be built
rm -rf $PKG/* # always erase old package's contents
rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build
rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log
# remove old log files
# --- PACKAGE BUILDING ---
echo "++"
echo "|| $PRGNAM-$VERSION"
echo "++"
if ! [ -f $SOURCE ];then
cd $SRCDIR
wget $SRCURL
fi
cd $TMP/tmp-$PRGNAM
echo "Extracting the source archive(s) for $PRGNAM..."
tar zxvf ${SRCDIR}/${PRGNAM}_src_${VERSION}.tar.gz
cd ${PRGNAM}_src_${VERSION}
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
echo Building ...
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_INSTALL_DIR=/usr/man \
-DSYSCONF_INSTALL_DIR=/etc \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
..
make $NUMJOBS 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
make DESTDIR=$PKG install 2>&1 | tee $OUTPUT/install-${PRGNAM}.log
cd -
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc -type f -exec chmod 644 {} \;
# Compress the man page(s):
if [ -d $PKG/usr/man ]; then
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
fi
# Compress info pages and remove the package's dir file:
if [ -d $PKG/usr/info ]; then
rm -f $PKG/usr/info/dir
gzip -9f $PKG/usr/info/*.info*
# If any info files are present, consider adding this to a doinst.sh:
# chroot . install-info /usr/info/XXXXX.info.gz /usr/info/dir 2> /dev/null
fi
# Strip binaries (if any):
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Add a package description:
mkdir -p $PKG/install
cat $SRCDIR/slack-desc > $PKG/install/slack-desc
if [ -f $SRCDIR/doinst.sh ]; then
cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh
fi
# Build the package:
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
cd $OUTPUT
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP
rm -rf $PKG
fi
Solo che mi da questo output di errore:
Codice: Seleziona tutto
[...]
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUEFILE_INCLUDE_DIR
used as include directory in directory /tmp/build/tmp-musepack/musepack_src_r435/mpcchap
CUEFILE_LIBRARY
linked by target "mpcchap" in directory /tmp/build/tmp-musepack/musepack_src_r435/mpcchap
REPLAY_GAIN_INCLUDE_DIR
used as include directory in directory /tmp/build/tmp-musepack/musepack_src_r435/mpcgain
REPLAY_GAIN_LIBRARY
linked by target "mpcgain" in directory /tmp/build/tmp-musepack/musepack_src_r435/mpcgain
-- Configuring incomplete, errors occurred!
musepack.SlackBuild FAILED at line 131
dove sto sbagliando questa volta??
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: mar 17 nov 2009, 15:57
da conraid
http://www.musepack.net/index.php?pg=src
sembra che ti mancano le varie librerie ReplayGain e CUE
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: mar 17 nov 2009, 16:37
da danix
io pensavo che fossero incluse nei sorgenti che ho preso... si chiamano
libs & tools...
vabbè, come ho tempo ricomincio...

Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: mer 18 nov 2009, 21:54
da danix
niente da fare, lamenta sempre lo stesso errore anche se ho pacchettizzato libcuefile e libreplaygain...
Codice: Seleziona tutto
ls /usr/lib64 |grep libreplay
-rw-r--r-- 1 root root 18K 2009-11-18 21:20 libreplaygain.a
lrwxrwxrwx 1 root root 18 2009-11-18 21:22 libreplaygain.so -> libreplaygain.so.1
lrwxrwxrwx 1 root root 22 2009-11-18 21:22 libreplaygain.so.1 -> libreplaygain.so.1.0.0
-rwxr-xr-x 1 root root 12K 2009-11-18 21:20 libreplaygain.so.1.0.0
Codice: Seleziona tutto
ls /usr/lib64 |grep libcue
-rw-r--r-- 1 root root 130K 2009-11-18 21:30 libcuefile.a
lrwxrwxrwx 1 root root 15 2009-11-18 21:30 libcuefile.so -> libcuefile.so.0
lrwxrwxrwx 1 root root 19 2009-11-18 21:30 libcuefile.so.0 -> libcuefile.so.0.0.0
-rwxr-xr-x 1 root root 73K 2009-11-18 21:30 libcuefile.so.0.0.0
ho pensato di dover passare le 2 variabili al cmake in qualche modo e allora ho messo prima del comando cmake queste 2 righe:
Codice: Seleziona tutto
CUEFILE_INCLUDE_DIR=/usr/lib64 \
REPLAY_GAIN_INCLUDE_DIR=/usr/lib64 \
cmake ...
ma niente, sempre lo stesso errore che ho postato in precedenza...
che mi consigliate??
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: gio 19 nov 2009, 12:10
da conraid
Danix perdonami, ma... leggere documentazione?
Codice: Seleziona tutto
cmake -DREPLAY_GAIN_LIBRARY:FILEPATH=/your/path/musepack/libreplaygain/src/libreplaygain.so
per passare le variabile a cmake non si chiamano prima
p.s.
sto provando a fare i pacchetti, ma per desso solo per la 32
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: gio 19 nov 2009, 12:13
da danix
conraid ha scritto:Danix perdonami, ma... leggere documentazione?
Codice: Seleziona tutto
cmake -DREPLAY_GAIN_LIBRARY:FILEPATH=/your/path/musepack/libreplaygain/src/libreplaygain.so
per passare le variabile a cmake non si chiamano prima
non ci faccio una bella figura, eh...
grazie Corrado, stasera ci riprovo... ma una domanda, devo passargli il path dei sorgenti della libreria??
Re: convertire mpc in mp3 (meglio ancora in wav)... come??
Inviato: gio 19 nov 2009, 12:23
da conraid
danix ha scritto: ma una domanda, devo passargli il path dei sorgenti della libreria??
non ho capito
da quel che vedo nella documentazione devi passare la libreria ai sorgenti di musepack
comunque poi ti dico, adesso provo a compilare
così dopo aggiorno anche kid3 e cmus che compilai con la vecchia libmpcdec