Konwersja z mp3 do m4a
: 15 lut 2009, 10:31
jest jakiś program do konwersji plików formatu .mp3 do .m4a czy też .aac ?
Polskie forum użytkowników Ubuntu
https://ubuntu.pl/forum/
To jeszcze nie wiesz jakie ma mozliwości:P Z pewnością mplayerr będzie potrzebny.gramfan pisze:do konwersji nie odtwarzania....
MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.
Mencoder is included in the MPlayer distribution.
Kod: Zaznacz cały
,-[ 16:06:34 ]--[ pts/1 ]--[ ~ ]
`-[ Slawek ] >> aacplusenc
*************************************************************
* Enhanced aacPlus Encoder
* Build Jul 18 2008, 06:23:38
* Matteo Croce <rootkit85@yahoo.it>
*************************************************************
Usage: aacplusenc <source.wav> <destination.aac> <bitrate>
Use - as filename for stdin and/or stdout.
Kod: Zaznacz cały
man ffmpeg
Kod: Zaznacz cały
sudo apt-get install mplayer faac id3v2
Kod: Zaznacz cały
#!/bin/bash
# Azakus 2007
# Requires mplayer, faac, and id3v2
echo "Input name of mp3 file, excluding .mp3"
echo -n ">"
read IN
OUT="`ls | grep $IN.mp3`"
echo "Dumping mp3 to wav"
mplayer -vo null -vc null -ao pcm:fast:file=$IN.wav $OUT
echo "Converting id3v1 tags to id3v2 for easier transition to m4a tags"
id3v2 -C $OUT
#"Coverting id3 tag from mp3 to m4a tag" --requires id3v2 tags.
TITLE="`id3v2 -l $OUT | grep TIT2 | awk '{ORS=" "} {for (i = 4; i <= NF; i++) print $i}'`"
ARTIST="`id3v2 -l $OUT | grep TPE1 | awk '{ORS=" "} {for (i = 4; i <= NF; i++) print $i}'`"
ALBUM="`id3v2 -l $OUT | grep TALB | awk '{ORS=" "} {for (i = 4; i <= NF; i++) print $i}'`"
TRACK="`id3v2 -l $OUT | grep TRCK | awk '{ORS=" "} {for (i = 6; i <= NF; i++) print $i}'`"
YEAR="`id3v2 -l $OUT | grep TYER | awk '{ORS=" "} {for (i = 3; i <= NF; i++) print $i}'`"
faac -b 128 -c 44100 -w --title "$TITLE" --artist "$ARTIST" --year "$YEAR" --album "$ALBUM" --track "$TRACK" $IN.wav
rm $IN.wav
echo "AAC transcode complete!"
Kod: Zaznacz cały
sudo chmod+x skrypt.sh
Kod: Zaznacz cały
./skrypt.sh
Kod: Zaznacz cały
bash: ./skrypt.sh: No such file or directory
Kod: Zaznacz cały
cd Pulpit
sudo chmod +x skrypt.sh
./skrypt.sh
Kod: Zaznacz cały
man ffmpeg
Kod: Zaznacz cały
ffmpeg -i plik_wejsciowy plik_wyjsciowy.roz