Love



Download Video:“MP4”

Source: Christina Grimmie youtube

And all I can think of is her…

Sticker Problems



Stickers

Source

W.



Download Video:“MP4”

Source: facebook


Interesting that he’s in front of a green screen…

.inputrc



Autocomplete greatly increase the speed at which I can perform tasks on a sever, however, not even autocomplete can compare to the time that the ability to ‘search’ through history with the up and down arrow has saved me.


I really wish I could recall where I got this from, but doing a search on “By default up/down are bound to previous-history” turns up more than just a few results…



# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
"\e[B": history-search-forward
"\e[A": history-search-backward

HTML5 Video Test



Download Video:“MP4”“WEBM”

Actually, it would be more accurate to say that I am testing the Video JS javascript-based video player.


It should be said that the most painful part of all this was encoding to WebM. I truly have no love for the format, mostly because of all the retarded statements that people make about it being a “free” format. Bull. Maybe there isn’t a patent pool put together by any group for WebM, but that doesn’t mean it’s any less liable to be “illegal” where you live.


Enough ranting for now…

Testing a new setup…



Here goes nothing… or something. We shall see.


In any case, so far webby is pretty freaking awesome.


I’m uncertain if I’m going to bring over all my old posts or not… if I find or write a script to do it the chances of the old posts coming over go way up, but again, we shall see.

FFmpeg, x264, Xvid, faac, faad, WebM etc… on Mac OS X 10.6.3



This is working for me on Mac OS X 10.6.3 however your results are likely to vary…

(And apologies for the crazy hi-lighting… still working on that)

Get sources

ffmpeg

mkdir -p ~/src
cd ~/src
git clone git://git.ffmpeg.org/ffmpeg/
cd ffmpeg
git clone git://git.ffmpeg.org/libswscale/

Get Required Libraries (for my needs anyhow)

cd ~/src
wget -c 'http://downloads.sourceforge.net/faac/faac-1.28.tar.gz'
wget -c 'http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz'
wget -c 'http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz'
wget -c 'http://www.tortall.net/projects/yasm/releases/yasm-1.0.0.tar.gz'
wget -c 'http://downloads.xiph.org/releases/ogg/libogg-1.2.0.tar.gz'
wget -c 'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.1.tar.bz2'
git clone git://git.videolan.org/x264.git
git clone git://review.webmproject.org/libvpx.git

Optional Tools

# libdca, for decoding DTS audio
svn co svn://svn.videolan.org/libdca/trunk libdca
# gpac, for MP4 file hinting
wget -c 'http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz'
# mediainfo, get useful info on media files
wget -c 'http://downloads.sourceforge.net/mediainfo/MediaInfo_CLI_0.7.32_GNU_FromSource.tar.bz2'

Extraction

# My xvidcore directory was worthless after each configure, so if you need to do a reconfigure
#    I found it best to just blow the directory away first.
rm -rf xvidcore
for file in *.tar.*; do tar -xf "$file"; done

Configure, Compile and Install

Build Required Libraries

# faac
cd ~/src/faac-1.28
./configure
make
sudo make install

# lame
cd ~/src/lame-3.98.4
./configure
make
sudo make install

# yasm
cd ~/src/yasm-1.0.0
./configure
make
sudo make install

# xvidcore
cd ~/src/xvidcore/build/generic
./configure --disable-assembly
make
sudo make install

# x264  -- NOTE: you might have to restart your terminal if x264 can't find yasm
cd ~/src/x264
./configure
make
sudo make install

# libogg
cd ~/src/libogg-1.2.0
./configure
make
sudo make install

# libvorbis
cd ~/src/libvorbis-1.3.1
./configure
make
sudo make install

# webm… as much as I hate VP8 and ogg...
cd ~/src/libvpx
./configure
make
sudo make install

Build ffmpeg

cd ~/src/ffmpeg
./configure --enable-libfaac --enable-libx264 --enable-libxvid --enable-nonfree \
    --enable-gpl --enable-libmp3lame --disable-ffplay --disable-ffserver --enable-pthreads \
    --enable-libvpx --enable-libvorbis
sudo make all
sudo make install

libdca (optional, only if you need dcadec, a DTS decoder)

cd ~/src/libdca
./bootstrap
./configure
make
sudo make install

gpac (optional, provides MP4Box)

MP4Box can be used to hint MP4 files for streaming.

cd ~/src/gpac
sh ./configure --disable-wx --disable-x11-xv --disable-x11-shm
make lib
make apps
sudo make install

mediainfo

cd ~/src/MediaInfo_CLI_GNU_FromSource
./CLI_Compile.sh
cd MediaInfo/Project/GNU/CLI
sudo make install

Extract DTS audio using mkvextract, and downmix to stereo using dcadec

Sometimes ffmpeg has issues downmixing DTS and sometimes this works better… (sometimes nothing works and it’s all a waste)

mkvextract tracks m-cloudy-720p.mkv 2:audio.dts
dcadec -o wav audio.dts > audio2ch.wav

Start encoding

Encode for iPod

ffmpeg -i input-file.avi -threads 0 -acodec libfaac -ab 128k -vcodec libx264 \
    -vpre hq -vpre ipod640 -b 500k -maxrate 1500k -f ipod output-ipod.m4v

Encode Video and Audio from separate files

ffmpeg -i m-cloudy-720p.mkv -i audio2ch.wav -threads 0 -acodec libfaac -ab 128k \
    -vcodec libx264 -vpre hq -vpre ipod640 -b 500k -s 640x480 -maxrate 1500k \
    -map 0:0 -map 1:0 -f ipod m-cloudy-480p.m4v

Hint MP4 files for streaming

MP4Box -hint videoFile.mp4

Encode for WebM (ick)

ffmpeg -i input-file.avi -threads 4 output-file.webm