.

Tuesday, July 16, 2013

mp3 visualization

#!/usr/bin/bash
# Script created by Iip Umar Rifai
# email iip.umar.rifai@gmail.com

if [ $# -eq 2 ]
then
    gst-launch-0.10 filesrc location="$1" ! decodebin2 ! tee name=splitter splitter. ! queue ! audioconvert ! $2 ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv, width=320, height=240 ! videorate ! theoraenc ! muxer. splitter. ! queue ! audioconvert ! vorbisenc ! muxer. oggmux name=muxer ! filesink location="$1-$2.ogg"
else
    echo "parameter is: visualize [musicfile] visualization-type"
    echo "Sample of visualization is:"
    echo "      spectrascope"
    echo "      spacescope"
    echo "      synaescope"
    echo "      goom2k1"
    echo "      goom"
    echo "      libvisual_corona"
    echo "      libvisual_infinite"
    echo "      libvisual_jakdaw"
    echo "      libvisual_jess"
    echo "      libvisual_lv_analyzer"
    echo "      libvisual_lv_scope"
    echo "      libvisual_oinksie"
    echo "      monoscope"
    echo "      wavescope"
fi



No comments:

Setting DeepCool AK400 Digital CPU fan di Manjaro Linux

  Baru rakit PC dan pakai AK400 Digital untuk CPU fannya, setelah install linux ternyata tulisan digitalnya gak tampil, cari-cari di interne...