Conversion
From Linuxintro
Revision as of 18:20, 18 August 2014 by imported>ThorstenStaerk
Contents
Images
convert image formats
Use the command convert like this:
convert name.format name.jpg
Music files
wav to mp3
install laMe, e.g. for SUSE Linux:
yast -i lame
Then do the conversion like this:
tweedleburg:~/music # ls -l Various\ Artists\ -\ 04\ -\ Wer\ Hat\ Die\ Schönsten\ Schäfchen\?.wav -rw-r--r-- 1 root root 23682332 Aug 18 20:10 Various Artists - 04 - Wer Hat Die Schönsten Schäfchen?.wav tweedleburg:~/music # lame Various\ Artists\ -\ 04\ -\ Wer\ Hat\ Die\ Schönsten\ Schäfchen\?.wav LAME 3.99.5 64bits (http://lame.sf.net) Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz Encoding Various Artists - 04 - Wer Hat Die Schönsten Schäfchen?.wav to Various Artists - 04 - Wer Hat Die Schönsten Schäfchen?.mp3 Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 5141/5141 (100%)| 0:04/ 0:04| 0:04/ 0:04| 33.079x| 0:00 ------------------------------------------------------------------------------------------------------------ kbps LR MS % long switch short % 128.0 14.3 85.7 99.1 0.5 0.4 Writing LAME Tag...done ReplayGain: -6.3dB tweedleburg:~/music # ls -l Various\ Artists\ -\ 04\ -\ Wer\ Hat\ Die\ Schönsten\ Schäfchen\?.mp3 -rw-r--r-- 1 root root 2149145 Aug 18 20:19 Various Artists - 04 - Wer Hat Die Schönsten Schäfchen?.mp3
k3b cannot convert music files?
install "libk3b2-mp3"
Videos
Main article: Video Conversion
convert video to 3gp
mencoder INPUTFILE -nosound -ovc lavc -lavcopts vcodec=mpeg4 -vop expand=176:144,scale=176:-2 -o movie.avi -ofps 12
mplayer -vo null -ao pcm -af resample=8000,volume=+4db:sc INPUTFILE
ffmpeg -i movie.avi -i audiodump.wav -b 48 -ac 1 -ab 12 -map 0.0 -map 1.0 OUTPUTFILE
convert 3gp-Video to DivX
mencoder -ovc divx4 vid.3gp -o vid.avi
convert video for Palm
mencoder source.mpg -ofps 15 -srate 24000 -oac mp3lame -lameopts
cbr:br=32:vol=5:mode=3 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=96:vhq: keyint=300 -vop scale=480:320 -o target.avi
or
mencoder source.mpg -srate 24000 -oac mp3lame -lameopts cbr:br=32:vol5:mode=3\ -fps 30 -ofps 30 -ovc lavc -vop scale=320:240 -o target.avi
extract mpg from .bin
Problem: If you use file (command) on a .bin file, it outputs "data". Solution:
vcdgear -dat2mpg infile.bin outfile.mpg
Software packages
convert rpm to deb
alien --to-deb 123.rpm