Nautilus script with mencoder for convert mkv videos in android format with embedded srt subtitles

25 Giugno 2009


#!/bin/bash
for arg
do
mkvextract tracks "$arg" 3:"$arg.srt"
mencoder "$arg" -o "$arg".mp4 -vf scale=480:-10,harddup -lavfopts format=mp4 -faacopts mpeg=4:object=2:raw:br=128 -srate 16000 -oac faac -mc 0 -noskip -ovc x264 -sws 9 -x264encopts nocabac:level_idc=30:bframes=0:global_header:threads=auto:subq=1:turbo:frameref=6:partitions=all:trellis=1:chroma_me:me=umh:bitrate=1250 -sub "$arg".srt -ffactor 1 -fontconfig -font Arial -subfont-text-scale 4 -of lavf
done

This script copied in the .gnome2/nautilus-scripts folder can convert your mkv movies in a format suitable for the G1/G2 android device.
it extracts with mkvextract (you must install mkvtools in your system) the subtitles track .srt and then you can have the video .mp4 hardsubbed.
fps setted to 13 and audio rate 128:16000 (all for more speed conversion without loosing quality in a portable device!)
enjoy

Tags: , , , , , , , , ,

Lascia un commento