Formatting code for MultiMedia


show source only

{{parent page="HomePage"}}

===MultiMedia Stuff===
===[[Imaging Imaging]]===
===[[MultimediaAlsa Alsa]]
-----
==ripping dvd==
AcidRip and HandBrake are excellent rippers. To rip dvd's with css encryption:

%%
aptitude install libdvdread
/usr/share/doc/libdvdread4/install-css.sh
%%

==Linux rip cd to wav/cue==
%%
cdrdao read-cd --read-raw --datafile chan.bin --device 3,0,0 chan.cue
%%

==Linux rip cd to flac==
%%
aptitude install mkcue
abcde -oflac -j2 -amove,cue
%%

==Linux rip cd to compressed format==
Use abcde - http://www.everyjoe.com/newlinuxuser/abcde-your-command-line-cd-ripper/

%%
aptitude install abcde id3v2
abcde -j2 -omp3 -qhigh
%%

Config file for using mp3 encoding - http://www.andrews-corner.org/abcde.html#mp3

==Linux flac to cd==
%%
aptitude install flac sox
for i in ./*.flac; do flac -c -d $i | sox - ${i//flac/cdr}; done

cdrecord -v dev=3,0,0 driveropts=burnfree -dao -pad -overburn -audio ./*.cdr

%%

==Convert MP2 to MP4==
This ffmpeg doesn't have mp3 / x264 support.. need to figure that part out someday..

%%
ffmpeg -i AVSEQ03.DAT -b 1500k -vcodec mpeg4 -ab 224k -acodec mp2 -threads 2 part3.avi
%%

Enable other encoders for ffmpeg:

Download ffmpeg source from http://ffmpeg.org/download.html
%%
./configure --enable-libfaac --enable-libfaad --enable-libmp3lame \
--enable-libvorbis --enable-libx264 --enable-libxvid --enable-libdc1394 \
--enable-vdpau --disable-ipv6 --enable-swscale --enable-avfilter \
--enable-pthreads --enable-x11grab --enable-libopenjpeg --enable-gpl
%%

After that, I can create x264/mp3 avi
%%
ffmpeg -i foo.mpg -b 1500k -vcodec libx264 -ab 224k -acodec libmp3lame -threads 2 foo.avi
%%

===Installing MonkeyAudio (mac) on Linux===
aptitude install yasm
Download mac from http://supermmx.org/download/linux/mac/mac-3.99-u4-b5.tar.gz

%%
src/MACLib/APELink.cpp
lines 66-69:
const char * pHeader = strstr(pData, APE_LINK_HEADER);
const char * pImageFile = strstr(pData, APE_LINK_IMAGE_FILE_TAG);
const char * pStartBlock = strstr(pData, APE_LINK_START_BLOCK_TAG);
const char * pFinishBlock = strstr(pData, APE_LINK_FINISH_BLOCK_TAG);

and the same on line 84:
const char * pImageCharacter = &pImageFile[strlen(APE_LINK_IMAGE_FILE_TAG)];

The change consisted on adding the “const ” keyword in front of each line, in order to avoid this:
error: invalid conversion from ‘const char*’ to ‘char*’
%%

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki