Cara Menampilkan Random Post / Artikel Acak Di Blogger

on Kamis, 26 Januari 2012



rip subtitle dari vob file (dvd)

on Sabtu, 21 Januari 2012

sudo apt-get install subtitleripper

arahkan terminal ke folder tempat vob berada
masukkan peintah panjang berikut ini ke dalam terminal

paste dan tekan enter2 gitu pokoknya :D


# NOTE: this script assumes there are no more than 9 subtitle tracks
# creates subtitle files for the 9 first languages
for lang in {0..9} ; do
(
# extract the given language and creates a subtitle file
tccat -i *.VOB | tcextract -x ps1 -t vob -a 0x2$lang > subs-$lang ;

# converts the subtitle file to an .srt file (if the file isn't empty)
if [[ -s subs-$lang ]] ; then

(
# convert the subtitle frames to seperate images
echo "LANGUAGE $lang: WILL NOW CREATE SUBTITLE FRAME IMAGES" ;
mkdir pgm-$lang ;
subtitle2pgm -o pgm-$lang/pgm-$lang- < subs-$lang ;

# use gocr to convert the subtitle frames to text
echo "LANGUAGE $lang: WILL START OCR ON SUBTITLE FRAME IMAGES" ;
pgm2txt pgm-$lang/pgm-$lang- ;

#convert the text to a .srt file
echo "LANGUAGE $lang: WILL NOW CONVERT THE TEXT TO AN SRT FILE" ;
srttool -s -w < pgm-$lang/pgm-$lang-.srtx > subs-$lang.srt ;
) ;

else
# removes the empty subtitle file (a languages that wasn't available)
rm subs-$lang ;
fi
) ;
done

 
© Geazzy Corner All Rights Reserved